Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_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.001031/0.001031, allocations: 91.33 kB / 16.31 MB, free: 5.621 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.001207/0.001207, allocations: 180.6 kB / 17.21 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002746, allocations: 9.406 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09728, allocations: 50.41 MB / 351.3 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01401/0.1113, allocations: 12.36 MB / 363.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2062/0.3176, allocations: 14.35 MB / 378 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/0.3179, allocations: 1.375 kB / 378 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004005/0.3183, allocations: 70.3 kB / 378.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004082/0.3187, allocations: 91.34 kB / 378.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02038/0.3391, allocations: 4.544 MB / 382.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006065/0.3397, allocations: 338 kB / 383.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.427e-05/0.3398, allocations: 15.86 kB / 383.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004346/0.3402, allocations: 199.3 kB / 383.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.3404, allocations: 105.5 kB / 383.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.3404, allocations: 6.469 kB / 383.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0137/0.3542, allocations: 6.484 MB / 389.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.777e-05/0.3543, allocations: 36.78 kB / 389.9 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.3544, allocations: 65.77 kB / 390 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005616/0.36, allocations: 2.626 MB / 392.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3601, allocations: 0 / 392.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3601, allocations: 2.594 kB / 392.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3601, allocations: 2.078 kB / 392.6 MB, free: 6.402 MB / 302.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.003272/0.3634, allocations: 0.9555 MB / 393.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.3635, allocations: 10.03 kB / 393.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.241e-05/0.3635, allocations: 53.95 kB / 393.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.3649, allocations: 181.4 kB / 393.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.3652, allocations: 256.7 kB / 394.1 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3652, allocations: 19.5 kB / 394.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.3652, allocations: 20.19 kB / 394.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.3679, allocations: 0.9083 MB / 395 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.3679, allocations: 0.6875 kB / 395 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.368, allocations: 9.375 kB / 395 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.368, allocations: 5.5 kB / 395 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002769/0.3707, allocations: 0.9901 MB / 396 MB, free: 4.75 MB / 302.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.00126/0.372, allocations: 1.351 MB / 397.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.3742, allocations: 0.7327 MB / 398.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.3744, allocations: 157 kB / 398.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07016/0.4446, allocations: 37.76 MB / 436 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4447, allocations: 42.77 kB / 436 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 3.005e-06/0.4447, allocations: 0 / 436 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004832/0.4495, allocations: 1.37 MB / 437.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4496, allocations: 59.34 kB / 437.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.4497, allocations: 129.9 kB / 437.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.15e-05/0.4498, allocations: 29.7 kB / 437.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.4499, allocations: 116.7 kB / 437.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.45, allocations: 113.8 kB / 437.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.4501, allocations: 12 kB / 437.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4502, allocations: 322.8 kB / 438.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006017/0.4508, allocations: 343.8 kB / 438.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006777/0.4515, allocations: 415.2 kB / 438.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.4522, allocations: 335.9 kB / 439.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.882e-06/0.4522, allocations: 0 / 439.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00169/0.4539, allocations: 0.877 MB / 440.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.454, allocations: 11.98 kB / 440.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.454, allocations: 0 / 440.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.454, allocations: 4 kB / 440.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.4546, allocations: 175.8 kB / 440.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.4546, allocations: 7.938 kB / 440.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.455, allocations: 47.86 kB / 440.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.4552, allocations: 63.92 kB / 440.4 MB, free: 5.836 MB / 350.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.0002278/0.4554, allocations: 142.4 kB / 440.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.431e-05/0.4555, allocations: 15.81 kB / 440.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007794/0.4633, allocations: 7.978 MB / 448.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-05/0.4634, allocations: 31.89 kB / 448.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.4634, allocations: 3.938 kB / 448.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.4634, allocations: 0 / 448.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.4666, allocations: 3.602 MB / 452.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.4667, allocations: 4 kB / 452.2 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000595/0.4673, allocations: 107.9 kB / 452.3 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.4673, allocations: 3.938 kB / 452.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.4674, allocations: 15.98 kB / 452.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.4674, allocations: 384 / 452.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4674, allocations: 0 / 452.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.47, allocations: 1.858 MB / 454.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.4701, allocations: 144.1 kB / 454.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.63e-05/0.4702, allocations: 11.94 kB / 454.3 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.4705, allocations: 28.05 kB / 454.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.256e-05/0.4706, allocations: 27.95 kB / 454.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/0.4707, allocations: 15.98 kB / 454.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.409e-05/0.4707, allocations: 87.28 kB / 454.5 MB, free: 7.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4707, allocations: 0 / 454.5 MB, free: 7.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004196/0.4749, allocations: 0.9877 MB / 455.5 MB, free: 6.473 MB / 366.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.00934/0.4843, allocations: 3.429 MB / 458.9 MB, free: 3.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.486, allocations: 0.9149 MB / 459.8 MB, free: 2.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.486, allocations: 0 / 459.8 MB, free: 2.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008104/0.4869, allocations: 0.5919 MB / 460.4 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007002/0.4876, allocations: 80.42 kB / 460.5 MB, free: 1.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007053/0.4946, allocations: 3.306 MB / 463.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.4951, allocations: 0.8575 MB / 464.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002215/0.4974, allocations: 1.787 MB / 466.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004673/0.4979, allocations: 223.3 kB / 466.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4979, allocations: 480 / 466.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07684/0.5747, allocations: 45.32 MB / 0.5 GB, free: 14.01 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/0.575, allocations: 195 kB / 0.5002 GB, free: 13.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.269/4.844, allocations: 0 / 0.5002 GB, free: 13.77 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat