Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002136/0.002136, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.227/2.227, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2905/0.2905, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.647e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1199, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.273, allocations: 316.6 MB / 0.7821 GB, free: 107 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/1.273, allocations: 92.09 kB / 0.7822 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.3603/1.633, allocations: 97.54 MB / 0.8775 GB, free: 16.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.753e-06/1.633, allocations: 4 kB / 0.8775 GB, free: 16.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.441e-05/1.633, allocations: 16 kB / 0.8775 GB, free: 16.33 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002133/1.636, allocations: 0.8323 MB / 0.8783 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/1.636, allocations: 8.031 kB / 0.8783 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001381/1.636, allocations: 70.52 kB / 0.8784 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003639/1.636, allocations: 67.28 kB / 0.8784 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/1.637, allocations: 459.9 kB / 0.8789 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/1.638, allocations: 24.55 kB / 0.8789 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.19e-05/1.638, allocations: 28 kB / 0.8789 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/1.639, allocations: 0.5202 MB / 0.8794 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.639, allocations: 0 / 0.8794 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.591e-05/1.639, allocations: 12 kB / 0.8794 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-05/1.639, allocations: 28.55 kB / 0.8795 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/1.64, allocations: 450.1 kB / 0.8799 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/1.645, allocations: 2.258 MB / 0.8821 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006092/1.646, allocations: 222.5 kB / 0.8823 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002998/1.646, allocations: 136.7 kB / 0.8824 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001863/1.648, allocations: 1.064 MB / 0.8835 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/1.649, allocations: 208.4 kB / 0.8837 GB, free: 9.535 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=18): time 3.557e-06/1.649, allocations: 4 kB / 0.8837 GB, free: 9.531 MB / 0.4948 GB Notification: Performance of matching and sorting (n=18): time 0.0008648/1.65, allocations: 306.7 kB / 0.884 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/1.65, allocations: 235.3 kB / 0.8842 GB, free: 8.934 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008122/1.651, allocations: 467.7 kB / 0.8846 GB, free: 8.469 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/1.651, allocations: 33.7 kB / 0.8847 GB, free: 8.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/1.651, allocations: 316.9 kB / 0.885 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.709e-05/1.651, allocations: 63.17 kB / 0.885 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/1.651, allocations: 8 kB / 0.885 GB, free: 8.051 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.156e-05/1.651, allocations: 330.8 kB / 0.8854 GB, free: 7.719 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003171/1.651, allocations: 120.4 kB / 0.8855 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/1.652, allocations: 295.9 kB / 0.8858 GB, free: 7.234 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/1.652, allocations: 202.5 kB / 0.886 GB, free: 7.027 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/1.652, allocations: 3.953 kB / 0.886 GB, free: 7.023 MB / 0.4948 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001132/1.653, allocations: 474.1 kB / 0.8864 GB, free: 6.551 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003752/1.654, allocations: 1.688 MB / 0.8881 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/1.654, allocations: 4 kB / 0.8881 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.459e-05/1.654, allocations: 8 kB / 0.8881 GB, free: 4.715 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/1.655, allocations: 79.84 kB / 0.8881 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/1.655, allocations: 7.984 kB / 0.8882 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/1.655, allocations: 63.36 kB / 0.8882 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-05/1.656, allocations: 23.95 kB / 0.8882 GB, free: 4.543 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/1.656, allocations: 4 kB / 0.8882 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001084/1.657, allocations: 465 kB / 0.8887 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/1.657, allocations: 4 kB / 0.8887 GB, free: 4.074 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/1.657, allocations: 8.562 kB / 0.8887 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/1.657, allocations: 79.84 kB / 0.8888 GB, free: 3.988 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/1.657, allocations: 8 kB / 0.8888 GB, free: 3.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/1.658, allocations: 35.77 kB / 0.8888 GB, free: 3.945 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.385e-05/1.658, allocations: 23.98 kB / 0.8888 GB, free: 3.922 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002014/1.658, allocations: 166.5 kB / 0.889 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/1.658, allocations: 55.3 kB / 0.889 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009276/1.659, allocations: 358.6 kB / 0.8894 GB, free: 3.332 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/1.659, allocations: 4 kB / 0.8894 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.659, allocations: 0 / 0.8894 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.659, allocations: 0 / 0.8894 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/1.66, allocations: 409.2 kB / 0.8898 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/1.66, allocations: 0 / 0.8898 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/1.66, allocations: 23.94 kB / 0.8898 GB, free: 2.855 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.66, allocations: 3.953 kB / 0.8898 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/1.66, allocations: 15.98 kB / 0.8898 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/1.66, allocations: 4 kB / 0.8898 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.66, allocations: 0 / 0.8898 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007795/1.661, allocations: 355.3 kB / 0.8902 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/1.661, allocations: 136.4 kB / 0.8903 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/1.661, allocations: 7.953 kB / 0.8903 GB, free: 2.301 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004964/1.662, allocations: 24.05 kB / 0.8903 GB, free: 2.277 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/1.662, allocations: 11.98 kB / 0.8903 GB, free: 2.266 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/1.662, allocations: 15.94 kB / 0.8904 GB, free: 2.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006079/1.663, allocations: 369.5 kB / 0.8907 GB, free: 1.891 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/1.663, allocations: 3.938 kB / 0.8907 GB, free: 1.887 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00187/1.664, allocations: 471.4 kB / 0.8912 GB, free: 1.426 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002609/1.667, allocations: 1.309 MB / 0.8924 GB, free: 88 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.34/2.007, allocations: 0.6252 MB / 0.893 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/2.007, allocations: 0.9062 kB / 0.893 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003538/2.008, allocations: 179.8 kB / 0.8932 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/2.009, allocations: 184.3 kB / 0.8934 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/2.012, allocations: 0.7986 MB / 0.8942 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/2.012, allocations: 0.8521 MB / 0.895 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003735/2.013, allocations: 155 kB / 0.8952 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.102e-06/2.013, allocations: 3.25 kB / 0.8952 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.893/4.906, allocations: 12.59 MB / 0.9075 GB, free: 132.2 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat