Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009447/0.0009449, allocations: 93.22 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.186e-05/4.218e-05, allocations: 4 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.418/8.546, allocations: 3.027 GB / 3.419 GB, free: 23.72 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02303/8.569, allocations: 11.27 MB / 3.43 GB, free: 12.46 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6484/9.218, allocations: 113.7 MB / 3.542 GB, free: 81.69 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.974e-06/9.218, allocations: 0 / 3.542 GB, free: 81.69 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.655e-05/9.218, allocations: 4 kB / 3.542 GB, free: 81.69 MB / 458.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.006856/9.225, allocations: 1.157 MB / 3.543 GB, free: 80.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/9.225, allocations: 8.031 kB / 3.543 GB, free: 80.59 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/9.225, allocations: 57.05 kB / 3.543 GB, free: 80.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/9.227, allocations: 180.1 kB / 3.543 GB, free: 80.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/9.227, allocations: 261.3 kB / 3.543 GB, free: 80.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/9.227, allocations: 15.69 kB / 3.543 GB, free: 80.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.917e-05/9.227, allocations: 22.56 kB / 3.543 GB, free: 80.19 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/9.23, allocations: 0.9034 MB / 3.544 GB, free: 79.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/9.23, allocations: 3.938 kB / 3.544 GB, free: 79.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.915e-05/9.23, allocations: 15.55 kB / 3.544 GB, free: 79.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/9.23, allocations: 4 kB / 3.544 GB, free: 79.72 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/9.233, allocations: 0.951 MB / 3.545 GB, free: 79.25 MB / 458.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.001716/9.235, allocations: 1.349 MB / 3.546 GB, free: 78.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/9.237, allocations: 0.7225 MB / 3.547 GB, free: 77.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/9.237, allocations: 150.6 kB / 3.547 GB, free: 77.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07494/9.312, allocations: 41.97 MB / 3.588 GB, free: 33.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/9.312, allocations: 38.84 kB / 3.588 GB, free: 33.24 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 3.607e-06/9.312, allocations: 0 / 3.588 GB, free: 33.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004683/9.317, allocations: 1.241 MB / 3.589 GB, free: 32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/9.317, allocations: 59.36 kB / 3.589 GB, free: 31.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/9.317, allocations: 114.4 kB / 3.59 GB, free: 31.81 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.241e-05/9.317, allocations: 29.7 kB / 3.59 GB, free: 31.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/9.317, allocations: 116.5 kB / 3.59 GB, free: 31.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/9.317, allocations: 118.3 kB / 3.59 GB, free: 31.54 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/9.318, allocations: 4 kB / 3.59 GB, free: 31.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/9.318, allocations: 326.8 kB / 3.59 GB, free: 31.21 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/9.318, allocations: 315.9 kB / 3.59 GB, free: 30.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/9.319, allocations: 375.4 kB / 3.591 GB, free: 30.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/9.319, allocations: 319.7 kB / 3.591 GB, free: 30.19 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/9.319, allocations: 0 / 3.591 GB, free: 30.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001391/9.32, allocations: 0.8214 MB / 3.592 GB, free: 29.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/9.32, allocations: 9.719 kB / 3.592 GB, free: 29.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/9.32, allocations: 1.875 kB / 3.592 GB, free: 29.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/9.321, allocations: 8 kB / 3.592 GB, free: 29.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000718/9.321, allocations: 179.8 kB / 3.592 GB, free: 29.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/9.321, allocations: 4 kB / 3.592 GB, free: 29.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/9.322, allocations: 50.75 kB / 3.592 GB, free: 29.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/9.322, allocations: 63.92 kB / 3.592 GB, free: 29.06 MB / 458.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.0001878/9.322, allocations: 128.8 kB / 3.592 GB, free: 28.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/9.322, allocations: 11.91 kB / 3.592 GB, free: 28.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/9.327, allocations: 6.501 MB / 3.599 GB, free: 22.43 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.611e-05/9.328, allocations: 19.97 kB / 3.599 GB, free: 22.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/9.328, allocations: 8 kB / 3.599 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/9.328, allocations: 7.969 kB / 3.599 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/9.33, allocations: 2.894 MB / 3.602 GB, free: 19.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/9.33, allocations: 0.6562 kB / 3.602 GB, free: 19.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006558/9.33, allocations: 131.8 kB / 3.602 GB, free: 19.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/9.33, allocations: 4 kB / 3.602 GB, free: 19.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.789e-05/9.33, allocations: 19.98 kB / 3.602 GB, free: 19.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/9.33, allocations: 0 / 3.602 GB, free: 19.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/9.33, allocations: 3.938 kB / 3.602 GB, free: 19.14 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/9.332, allocations: 1.755 MB / 3.603 GB, free: 17.37 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/9.333, allocations: 142.7 kB / 3.604 GB, free: 17.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.349e-05/9.333, allocations: 8 kB / 3.604 GB, free: 17.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/9.333, allocations: 23.98 kB / 3.604 GB, free: 17.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/9.333, allocations: 35.94 kB / 3.604 GB, free: 17.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/9.333, allocations: 28.05 kB / 3.604 GB, free: 17.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.363e-05/9.333, allocations: 91.27 kB / 3.604 GB, free: 17.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/9.333, allocations: 0 / 3.604 GB, free: 17.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005243/9.339, allocations: 1.015 MB / 3.605 GB, free: 16.02 MB / 458.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.01228/9.351, allocations: 3.464 MB / 3.608 GB, free: 12.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/9.352, allocations: 0.8528 MB / 3.609 GB, free: 11.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/9.352, allocations: 0 / 3.609 GB, free: 11.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006717/9.353, allocations: 0.5672 MB / 3.609 GB, free: 11.11 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/9.354, allocations: 79.89 kB / 3.61 GB, free: 11.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005198/9.359, allocations: 1.469 MB / 3.611 GB, free: 9.531 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/9.359, allocations: 0.8455 MB / 3.612 GB, free: 8.656 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002371/9.361, allocations: 2.738 MB / 3.614 GB, free: 5.938 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004464/9.362, allocations: 219.2 kB / 3.615 GB, free: 5.723 MB / 458.7 MB Notification: Performance of SimCode: time 9.81e-07/9.362, allocations: 0 / 3.615 GB, free: 5.723 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3769/9.739, allocations: 36.77 MB / 3.651 GB, free: 81.12 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/9.739, allocations: 163.8 kB / 3.651 GB, free: 80.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.441/13.18, allocations: 0.875 kB / 3.651 GB, free: 80.9 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat