Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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) 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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",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.002355/0.002355, allocations: 181.7 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.101/2.101, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.0021/0.0021, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.528e-05/3.539e-05, allocations: 7.938 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.576/9.68, allocations: 3.021 GB / 3.381 GB, free: 54.73 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03258/9.712, allocations: 10.99 MB / 3.392 GB, free: 49.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8026/10.51, allocations: 112.9 MB / 3.502 GB, free: 89.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/10.52, allocations: 0 / 3.502 GB, free: 89.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.809e-05/10.52, allocations: 7 kB / 3.502 GB, free: 89.33 MB / 426.7 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.00683/10.52, allocations: 1.135 MB / 3.503 GB, free: 88.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/10.52, allocations: 7.125 kB / 3.503 GB, free: 88.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/10.52, allocations: 59.61 kB / 3.503 GB, free: 88.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/10.52, allocations: 180.1 kB / 3.503 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/10.52, allocations: 261.6 kB / 3.504 GB, free: 88.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/10.52, allocations: 15.53 kB / 3.504 GB, free: 88.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/10.52, allocations: 24 kB / 3.504 GB, free: 88.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004749/10.53, allocations: 0.9071 MB / 3.505 GB, free: 88.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/10.53, allocations: 0 / 3.505 GB, free: 88.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.233e-05/10.53, allocations: 9.031 kB / 3.505 GB, free: 88.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/10.53, allocations: 3.656 kB / 3.505 GB, free: 88.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004712/10.53, allocations: 0.9517 MB / 3.505 GB, free: 88.25 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.002241/10.54, allocations: 1.361 MB / 3.507 GB, free: 87.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/10.54, allocations: 0.722 MB / 3.507 GB, free: 87.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/10.54, allocations: 139 kB / 3.508 GB, free: 87.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1175/10.66, allocations: 37.35 MB / 3.544 GB, free: 56.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/10.66, allocations: 38.84 kB / 3.544 GB, free: 56.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.727e-06/10.66, allocations: 0 / 3.544 GB, free: 56.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.007321/10.67, allocations: 1.231 MB / 3.545 GB, free: 55.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/10.67, allocations: 63.36 kB / 3.545 GB, free: 55.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/10.67, allocations: 108.8 kB / 3.545 GB, free: 55.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/10.67, allocations: 37.7 kB / 3.546 GB, free: 55.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/10.67, allocations: 194.5 kB / 3.546 GB, free: 55.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/10.67, allocations: 113.9 kB / 3.546 GB, free: 55.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/10.67, allocations: 8 kB / 3.546 GB, free: 55.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.172e-05/10.67, allocations: 326.6 kB / 3.546 GB, free: 54.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007745/10.67, allocations: 310.9 kB / 3.546 GB, free: 54.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008227/10.67, allocations: 388.9 kB / 3.547 GB, free: 54.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/10.67, allocations: 314.8 kB / 3.547 GB, free: 53.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/10.67, allocations: 0 / 3.547 GB, free: 53.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002474/10.67, allocations: 0.8157 MB / 3.548 GB, free: 53.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/10.67, allocations: 8 kB / 3.548 GB, free: 53.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/10.67, allocations: 0 / 3.548 GB, free: 53.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/10.67, allocations: 4 kB / 3.548 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/10.67, allocations: 183.9 kB / 3.548 GB, free: 53.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/10.67, allocations: 4 kB / 3.548 GB, free: 53.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/10.67, allocations: 39.36 kB / 3.548 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/10.67, allocations: 66.8 kB / 3.548 GB, free: 52.93 MB / 426.7 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 () * 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.0002562/10.67, allocations: 120.9 kB / 3.548 GB, free: 52.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/10.67, allocations: 19.81 kB / 3.548 GB, free: 52.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00814/10.68, allocations: 6.51 MB / 3.555 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.237e-05/10.68, allocations: 23.34 kB / 3.555 GB, free: 46.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/10.68, allocations: 0 / 3.555 GB, free: 46.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/10.68, allocations: 0 / 3.555 GB, free: 46.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003087/10.69, allocations: 2.898 MB / 3.558 GB, free: 44.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/10.69, allocations: 0 / 3.558 GB, free: 44.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/10.69, allocations: 126.5 kB / 3.558 GB, free: 44.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/10.69, allocations: 4 kB / 3.558 GB, free: 44.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.307e-05/10.69, allocations: 31.55 kB / 3.558 GB, free: 44.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.473e-06/10.69, allocations: 0 / 3.558 GB, free: 44.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/10.69, allocations: 3.938 kB / 3.558 GB, free: 44.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/10.69, allocations: 1.744 MB / 3.559 GB, free: 42.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/10.69, allocations: 136.3 kB / 3.56 GB, free: 42.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.412e-05/10.69, allocations: 12 kB / 3.56 GB, free: 42.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000687/10.69, allocations: 27.61 kB / 3.56 GB, free: 42.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/10.69, allocations: 42.77 kB / 3.56 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.241e-05/10.69, allocations: 31.22 kB / 3.56 GB, free: 42.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 9.113e-05/10.69, allocations: 90.75 kB / 3.56 GB, free: 42.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.5e-07/10.69, allocations: 0 / 3.56 GB, free: 42.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005419/10.7, allocations: 0.9998 MB / 3.561 GB, free: 41.11 MB / 426.7 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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01295/10.71, allocations: 3.438 MB / 3.564 GB, free: 37.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/10.71, allocations: 0.8482 MB / 3.565 GB, free: 37.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/10.71, allocations: 0 / 3.565 GB, free: 37.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009847/10.71, allocations: 0.5636 MB / 3.565 GB, free: 36.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/10.71, allocations: 77.2 kB / 3.566 GB, free: 36.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/10.72, allocations: 1.492 MB / 3.567 GB, free: 35.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/10.72, allocations: 0.8519 MB / 3.568 GB, free: 34.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008017/10.72, allocations: 232.3 kB / 3.568 GB, free: 34.08 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/10.72, allocations: 3.938 kB / 3.568 GB, free: 34.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.515/14.24, allocations: 27.59 MB / 3.595 GB, free: 8.234 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat