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.00143/0.00143, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.454/1.454, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009416/0.0009416, allocations: 90.61 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002427/0.0002428, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2283, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.292/6.52, allocations: 3.021 GB / 3.388 GB, free: 22.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0193/6.539, allocations: 11.06 MB / 3.398 GB, free: 11.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5217/7.061, allocations: 113 MB / 3.509 GB, free: 70.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.983e-06/7.061, allocations: 0 / 3.509 GB, free: 70.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/7.061, allocations: 4 kB / 3.509 GB, free: 70.54 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.006904/7.068, allocations: 1.142 MB / 3.51 GB, free: 69.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/7.068, allocations: 8.031 kB / 3.51 GB, free: 69.34 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.346e-05/7.068, allocations: 68.72 kB / 3.51 GB, free: 69.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/7.07, allocations: 175.6 kB / 3.51 GB, free: 69.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/7.07, allocations: 262.7 kB / 3.51 GB, free: 68.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/7.07, allocations: 20.44 kB / 3.511 GB, free: 68.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/7.07, allocations: 20 kB / 3.511 GB, free: 68.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002904/7.073, allocations: 0.8895 MB / 3.511 GB, free: 67.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/7.073, allocations: 0 / 3.511 GB, free: 67.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/7.073, allocations: 8 kB / 3.511 GB, free: 67.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/7.073, allocations: 4 kB / 3.511 GB, free: 67.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002691/7.076, allocations: 0.9618 MB / 3.512 GB, free: 66.88 MB / 426.7 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.001366/7.077, allocations: 1.339 MB / 3.514 GB, free: 65.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/7.079, allocations: 0.7097 MB / 3.514 GB, free: 64.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05806/7.137, allocations: 37.23 MB / 3.551 GB, free: 23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/7.137, allocations: 42.83 kB / 3.551 GB, free: 22.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.776e-06/7.137, allocations: 0 / 3.551 GB, free: 22.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004756/7.142, allocations: 1.316 MB / 3.552 GB, free: 21.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/7.142, allocations: 55.36 kB / 3.552 GB, free: 21.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.967e-05/7.142, allocations: 115 kB / 3.552 GB, free: 21.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-05/7.142, allocations: 33.7 kB / 3.552 GB, free: 21.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/7.143, allocations: 120.6 kB / 3.552 GB, free: 21.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/7.143, allocations: 114.4 kB / 3.552 GB, free: 21.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/7.143, allocations: 4 kB / 3.552 GB, free: 21.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.69e-05/7.143, allocations: 330.8 kB / 3.553 GB, free: 20.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/7.143, allocations: 327.8 kB / 3.553 GB, free: 20.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/7.144, allocations: 407.3 kB / 3.553 GB, free: 20.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/7.144, allocations: 336.1 kB / 3.554 GB, free: 19.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/7.144, allocations: 3.938 kB / 3.554 GB, free: 19.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001587/7.146, allocations: 0.8604 MB / 3.555 GB, free: 18.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/7.146, allocations: 12.41 kB / 3.555 GB, free: 18.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/7.146, allocations: 4 kB / 3.555 GB, free: 18.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/7.146, allocations: 4 kB / 3.555 GB, free: 18.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/7.147, allocations: 171.8 kB / 3.555 GB, free: 18.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/7.147, allocations: 11.92 kB / 3.555 GB, free: 18.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004507/7.147, allocations: 51.62 kB / 3.555 GB, free: 18.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.459e-05/7.147, allocations: 59.94 kB / 3.555 GB, free: 18.59 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 () * 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.0003112/7.148, allocations: 141.8 kB / 3.555 GB, free: 18.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.271e-05/7.148, allocations: 15.81 kB / 3.555 GB, free: 18.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00549/7.153, allocations: 7.806 MB / 3.563 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/7.153, allocations: 27.95 kB / 3.563 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/7.153, allocations: 0 / 3.563 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/7.153, allocations: 11.98 kB / 3.563 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/7.155, allocations: 3.506 MB / 3.566 GB, free: 6.809 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/7.155, allocations: 0 / 3.566 GB, free: 6.809 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007067/7.156, allocations: 119.8 kB / 3.566 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/7.156, allocations: 4 kB / 3.566 GB, free: 6.688 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/7.156, allocations: 11.98 kB / 3.566 GB, free: 6.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/7.156, allocations: 0 / 3.566 GB, free: 6.676 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/7.156, allocations: 0 / 3.566 GB, free: 6.676 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/7.158, allocations: 1.846 MB / 3.568 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.557e-05/7.158, allocations: 144.1 kB / 3.568 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/7.158, allocations: 8 kB / 3.568 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003429/7.159, allocations: 27.97 kB / 3.568 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.513e-05/7.159, allocations: 35.95 kB / 3.568 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/7.159, allocations: 12 kB / 3.568 GB, free: 4.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.886e-05/7.159, allocations: 95.2 kB / 3.568 GB, free: 4.477 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/7.159, allocations: 0 / 3.568 GB, free: 4.477 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004596/7.163, allocations: 1.007 MB / 3.569 GB, free: 3.469 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: 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.2475/7.411, allocations: 3.548 MB / 3.573 GB, free: 87.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/7.413, allocations: 0.8915 MB / 3.574 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/7.413, allocations: 6.906 kB / 3.574 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006177/7.413, allocations: 0.589 MB / 3.574 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/7.414, allocations: 79.12 kB / 3.574 GB, free: 87.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006941/7.421, allocations: 4.535 MB / 3.579 GB, free: 85.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/7.421, allocations: 0.8665 MB / 3.58 GB, free: 84.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001461/7.423, allocations: 1.746 MB / 3.581 GB, free: 84.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/7.423, allocations: 220.6 kB / 3.582 GB, free: 84.49 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/7.423, allocations: 0 / 3.582 GB, free: 84.49 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06542/7.489, allocations: 35.89 MB / 3.617 GB, free: 83.66 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/7.489, allocations: 188.2 kB / 3.617 GB, free: 83.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.308/10.8, allocations: 0 / 3.617 GB, free: 83.42 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