Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 103.6 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2077/0.2077, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.826e-05/1.838e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1412, allocations: 61.91 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.147/1.289, allocations: 353 MB / 0.8395 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004548/1.289, allocations: 93.44 kB / 0.8396 GB, free: 36.49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.5622/1.851, allocations: 132.3 MB / 0.9688 GB, free: 126 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.336e-06/1.851, allocations: 0 / 0.9688 GB, free: 126 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.153e-05/1.851, allocations: 20.31 kB / 0.9688 GB, free: 126 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001709/1.853, allocations: 0.8995 MB / 0.9697 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/1.853, allocations: 11.98 kB / 0.9697 GB, free: 125 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003405/1.854, allocations: 83.16 kB / 0.9698 GB, free: 125 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009347/1.854, allocations: 0.5425 MB / 0.9703 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.425e-05/1.855, allocations: 84.72 kB / 0.9704 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/1.855, allocations: 35.89 kB / 0.9704 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007681/1.855, allocations: 0.5297 MB / 0.971 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008986/1.856, allocations: 0.7379 MB / 0.9717 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/1.856, allocations: 7.844 kB / 0.9717 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.406e-05/1.856, allocations: 4 kB / 0.9717 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.462e-05/1.857, allocations: 37.3 kB / 0.9717 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003739/1.86, allocations: 4.172 MB / 0.9758 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/1.861, allocations: 274.8 kB / 0.9761 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/1.861, allocations: 140.8 kB / 0.9762 GB, free: 118 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001325/1.862, allocations: 1.439 MB / 0.9776 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/1.862, allocations: 30.56 kB / 0.9776 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/1.862, allocations: 0 / 0.9776 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002193/1.864, allocations: 0.8696 MB / 0.9785 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/1.864, allocations: 132.5 kB / 0.9786 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000621/1.865, allocations: 0.5108 MB / 0.9791 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/1.865, allocations: 25.7 kB / 0.9791 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/1.865, allocations: 429.6 kB / 0.9795 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/1.866, allocations: 94.75 kB / 0.9796 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/1.866, allocations: 0 / 0.9796 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001654/1.866, allocations: 370.8 kB / 0.98 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/1.866, allocations: 157.5 kB / 0.9801 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/1.866, allocations: 0.5007 MB / 0.9806 GB, free: 113 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/1.867, allocations: 273.3 kB / 0.9809 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/1.867, allocations: 4 kB / 0.9809 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001178/1.868, allocations: 0.6796 MB / 0.9816 GB, free: 112 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/1.868, allocations: 11.98 kB / 0.9816 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/1.868, allocations: 12 kB / 0.9816 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/1.868, allocations: 80.83 kB / 0.9817 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006129/1.869, allocations: 176.2 kB / 0.9818 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005889/1.87, allocations: 0.681 MB / 0.9825 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005986/1.87, allocations: 28.05 kB / 0.9825 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-05/1.87, allocations: 36 kB / 0.9826 GB, free: 111 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001735/1.871, allocations: 140.6 kB / 0.9827 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004671/1.871, allocations: 289 kB / 0.983 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.161e-05/1.871, allocations: 55.34 kB / 0.983 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006151/1.872, allocations: 307 kB / 0.9833 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/1.872, allocations: 4 kB / 0.9833 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.872, allocations: 0 / 0.9833 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.872, allocations: 11.97 kB / 0.9833 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/1.873, allocations: 0.8493 MB / 0.9842 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.873, allocations: 4.094 kB / 0.9842 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/1.873, allocations: 51.91 kB / 0.9842 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.178e-05/1.873, allocations: 24.84 kB / 0.9842 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/1.873, allocations: 7.953 kB / 0.9842 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003039/1.874, allocations: 0.5524 MB / 0.9848 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.874, allocations: 0 / 0.9848 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006483/1.874, allocations: 0.5229 MB / 0.9853 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/1.875, allocations: 180.3 kB / 0.9855 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.138e-05/1.875, allocations: 4.062 kB / 0.9855 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/1.875, allocations: 19.92 kB / 0.9855 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/1.875, allocations: 15.94 kB / 0.9855 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/1.875, allocations: 15.98 kB / 0.9855 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003899/1.876, allocations: 379.2 kB / 0.9859 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.876, allocations: 4 kB / 0.9859 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008846/1.877, allocations: 203.9 kB / 0.9861 GB, free: 107.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001389/1.878, allocations: 1.483 MB / 0.9875 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006976/1.879, allocations: 393.4 kB / 0.9879 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.879, allocations: 0 / 0.9879 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/1.879, allocations: 109.5 kB / 0.988 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/1.88, allocations: 224 kB / 0.9882 GB, free: 105 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/1.882, allocations: 0.9216 MB / 0.9891 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/1.882, allocations: 0.9409 MB / 0.99 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0006043/1.883, allocations: 192.8 kB / 0.9902 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/1.883, allocations: 215.4 kB / 0.9904 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of SimCode: time 2.8e-07/1.883, allocations: 0 / 0.9904 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04078/1.924, allocations: 15.82 MB / 1.006 GB, free: 86.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/1.924, allocations: 223.7 kB / 1.006 GB, free: 86.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.569/4.493, allocations: 0 / 1.006 GB, free: 86.64 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat