Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009505, allocations: 98.81 kB / 16.95 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 183.6 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004326/0.0004327, allocations: 11.98 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09159, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01395/0.1056, allocations: 12.36 MB / 340.8 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.1221, allocations: 14.35 MB / 355.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.1224, allocations: 0 / 355.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.1227, allocations: 75.59 kB / 355.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003224/0.1231, allocations: 87.36 kB / 355.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01539/0.1385, allocations: 4.539 MB / 359.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005301/0.139, allocations: 326.6 kB / 360.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.361e-05/0.1391, allocations: 9.688 kB / 360.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005014/0.1396, allocations: 211.1 kB / 360.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.1398, allocations: 99.66 kB / 360.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.1398, allocations: 11.94 kB / 360.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0127/0.1525, allocations: 6.469 MB / 367 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.656e-05/0.1527, allocations: 39.83 kB / 367 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.1528, allocations: 61.64 kB / 367.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00495/0.1578, allocations: 2.627 MB / 369.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1578, allocations: 0 / 369.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1578, allocations: 0 / 369.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1578, allocations: 0 / 369.7 MB, free: 10.62 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002425/0.1602, allocations: 0.9438 MB / 370.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1603, allocations: 12.02 kB / 370.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.97e-05/0.1603, allocations: 62.44 kB / 370.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.1616, allocations: 175.6 kB / 370.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.1619, allocations: 254.7 kB / 371.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.1619, allocations: 16.44 kB / 371.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.162, allocations: 24 kB / 371.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.1647, allocations: 0.9167 MB / 372.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1648, allocations: 0 / 372.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.1648, allocations: 8 kB / 372.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1648, allocations: 11.95 kB / 372.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002798/0.1676, allocations: 0.9812 MB / 373.1 MB, free: 7.105 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.169, allocations: 1.351 MB / 374.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.1711, allocations: 0.7214 MB / 375.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.1714, allocations: 173.3 kB / 375.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2592/0.4307, allocations: 37.74 MB / 413.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.4307, allocations: 36.41 kB / 413.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.405e-06/0.4307, allocations: 3.062 kB / 413.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004266/0.435, allocations: 1.367 MB / 414.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.4351, allocations: 58.45 kB / 414.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.58e-05/0.4352, allocations: 133.2 kB / 414.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/0.4352, allocations: 32.64 kB / 414.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.4353, allocations: 110.5 kB / 414.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.4354, allocations: 118.2 kB / 414.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.4355, allocations: 3.438 kB / 414.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.4355, allocations: 326.2 kB / 415.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.4361, allocations: 345.7 kB / 415.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000583/0.4367, allocations: 415.4 kB / 416 MB, free: 4.719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00052/0.4372, allocations: 340.5 kB / 416.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4372, allocations: 1.625 kB / 416.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001408/0.4386, allocations: 0.8748 MB / 417.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4386, allocations: 7.25 kB / 417.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4387, allocations: 0 / 417.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.4387, allocations: 9.875 kB / 417.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/0.4393, allocations: 181.2 kB / 417.4 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.4393, allocations: 8 kB / 417.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.4396, allocations: 39.23 kB / 417.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.4397, allocations: 68.05 kB / 417.5 MB, free: 4.367 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001755/0.4399, allocations: 136.4 kB / 417.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.758e-05/0.44, allocations: 19.81 kB / 417.6 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005948/0.4459, allocations: 7.98 MB / 425.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/0.446, allocations: 26.45 kB / 425.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.446, allocations: 8.828 kB / 425.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.446, allocations: 0 / 425.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.449, allocations: 3.601 MB / 429.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.449, allocations: 0 / 429.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005974/0.4496, allocations: 116.5 kB / 429.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.4497, allocations: 4 kB / 429.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.4497, allocations: 9.625 kB / 429.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.4497, allocations: 0 / 429.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4497, allocations: 3.953 kB / 429.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.4521, allocations: 1.856 MB / 431.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.4523, allocations: 136.3 kB / 431.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.4523, allocations: 13.06 kB / 431.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.4526, allocations: 28.72 kB / 431.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.4527, allocations: 30.52 kB / 431.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.4528, allocations: 19.94 kB / 431.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.4528, allocations: 93.77 kB / 431.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4528, allocations: 0 / 431.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00296/0.4558, allocations: 0.9785 MB / 432.5 MB, free: 10.46 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.008013/0.4638, allocations: 3.435 MB / 436 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.4656, allocations: 0.8989 MB / 436.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4656, allocations: 0.5 kB / 436.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007949/0.4664, allocations: 0.6008 MB / 437.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006428/0.4671, allocations: 81.23 kB / 437.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006533/0.4736, allocations: 3.291 MB / 440.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.4742, allocations: 0.8536 MB / 441.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002109/0.4763, allocations: 1.783 MB / 443.5 MB, free: 140 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.4769, allocations: 219.3 kB / 443.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of SimCode: time 1.093e-06/0.4769, allocations: 0 / 443.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07309/0.55, allocations: 45.26 MB / 489 MB, free: 2.68 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/0.5502, allocations: 195.1 kB / 489.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.281/4.831, allocations: 0 / 489.2 MB, free: 2.438 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat