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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008333/0.0008332, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.747e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08674, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.885/6.972, allocations: 3.021 GB / 3.382 GB, free: 58.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01874/6.991, allocations: 10.99 MB / 3.393 GB, free: 52.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5039/7.495, allocations: 112.9 MB / 3.503 GB, free: 87.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.294e-06/7.495, allocations: 0 / 3.503 GB, free: 87.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.883e-05/7.495, allocations: 3.969 kB / 3.503 GB, free: 87.77 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.00546/7.5, allocations: 1.135 MB / 3.504 GB, free: 87.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/7.501, allocations: 9.938 kB / 3.504 GB, free: 87.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.06e-05/7.501, allocations: 53.98 kB / 3.504 GB, free: 87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/7.502, allocations: 187 kB / 3.504 GB, free: 86.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/7.502, allocations: 266 kB / 3.504 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/7.502, allocations: 16.62 kB / 3.505 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.032e-05/7.503, allocations: 21.12 kB / 3.505 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002689/7.505, allocations: 0.9048 MB / 3.505 GB, free: 86.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/7.505, allocations: 1.5 kB / 3.505 GB, free: 86.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/7.505, allocations: 16.81 kB / 3.505 GB, free: 86.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/7.505, allocations: 3.844 kB / 3.505 GB, free: 86.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002593/7.508, allocations: 0.9484 MB / 3.506 GB, free: 86.7 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.001481/7.509, allocations: 1.36 MB / 3.508 GB, free: 85.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/7.512, allocations: 0.7228 MB / 3.508 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/7.512, allocations: 141.5 kB / 3.509 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0627/7.574, allocations: 37.35 MB / 3.545 GB, free: 59.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/7.574, allocations: 37.22 kB / 3.545 GB, free: 59.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.386e-06/7.574, allocations: 1.688 kB / 3.545 GB, free: 59.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004438/7.579, allocations: 1.239 MB / 3.546 GB, free: 58.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/7.579, allocations: 59.36 kB / 3.546 GB, free: 58.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.94e-05/7.579, allocations: 109 kB / 3.546 GB, free: 58.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/7.579, allocations: 33.7 kB / 3.546 GB, free: 58.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/7.579, allocations: 120.3 kB / 3.547 GB, free: 58.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/7.579, allocations: 117.1 kB / 3.547 GB, free: 57.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/7.579, allocations: 8 kB / 3.547 GB, free: 57.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/7.58, allocations: 322.8 kB / 3.547 GB, free: 57.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/7.58, allocations: 311.1 kB / 3.547 GB, free: 57.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/7.58, allocations: 385.8 kB / 3.548 GB, free: 56.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004487/7.581, allocations: 313.2 kB / 3.548 GB, free: 56.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/7.581, allocations: 0 / 3.548 GB, free: 56.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001373/7.582, allocations: 0.8231 MB / 3.549 GB, free: 55.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/7.582, allocations: 4 kB / 3.549 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/7.582, allocations: 4 kB / 3.549 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/7.582, allocations: 4 kB / 3.549 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/7.583, allocations: 175.3 kB / 3.549 GB, free: 55.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/7.583, allocations: 9.328 kB / 3.549 GB, free: 55.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/7.584, allocations: 53.05 kB / 3.549 GB, free: 55.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/7.584, allocations: 61.2 kB / 3.549 GB, free: 55.74 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.0002035/7.584, allocations: 128.8 kB / 3.549 GB, free: 55.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.296e-05/7.584, allocations: 11.91 kB / 3.549 GB, free: 55.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005631/7.59, allocations: 6.503 MB / 3.556 GB, free: 49.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/7.59, allocations: 25.28 kB / 3.556 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/7.59, allocations: 0 / 3.556 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/7.59, allocations: 2.766 kB / 3.556 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002961/7.593, allocations: 2.898 MB / 3.558 GB, free: 47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/7.593, allocations: 0 / 3.558 GB, free: 47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006961/7.593, allocations: 127 kB / 3.559 GB, free: 46.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/7.593, allocations: 0 / 3.559 GB, free: 46.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.399e-05/7.594, allocations: 26.97 kB / 3.559 GB, free: 46.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/7.594, allocations: 8 kB / 3.559 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/7.594, allocations: 0 / 3.559 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/7.596, allocations: 1.748 MB / 3.56 GB, free: 45.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/7.596, allocations: 136.3 kB / 3.56 GB, free: 45.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/7.596, allocations: 10.69 kB / 3.56 GB, free: 45.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/7.596, allocations: 26.81 kB / 3.56 GB, free: 45.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/7.597, allocations: 45.84 kB / 3.56 GB, free: 45.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/7.597, allocations: 22.05 kB / 3.56 GB, free: 45.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.956e-05/7.597, allocations: 89.91 kB / 3.561 GB, free: 44.92 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/7.597, allocations: 0 / 3.561 GB, free: 44.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004999/7.602, allocations: 1.003 MB / 3.562 GB, free: 43.94 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.008817/7.611, allocations: 3.445 MB / 3.565 GB, free: 40.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00117/7.612, allocations: 0.8485 MB / 3.566 GB, free: 39.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/7.612, allocations: 4 kB / 3.566 GB, free: 39.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/7.612, allocations: 0.5566 MB / 3.566 GB, free: 39.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/7.613, allocations: 75.64 kB / 3.566 GB, free: 39.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/7.617, allocations: 1.462 MB / 3.568 GB, free: 37.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/7.617, allocations: 0.8491 MB / 3.569 GB, free: 37.13 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002169/7.619, allocations: 2.743 MB / 3.571 GB, free: 35.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004323/7.62, allocations: 216.6 kB / 3.571 GB, free: 35.33 MB / 426.7 MB Notification: Performance of SimCode: time 9.11e-07/7.62, allocations: 4 kB / 3.572 GB, free: 35.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05351/7.673, allocations: 36.61 MB / 3.607 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001229/7.674, allocations: 162.9 kB / 3.607 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.027/10.7, allocations: 4 kB / 3.607 GB, free: 0.7656 MB / 426.7 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) 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