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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 177.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009984/0.0009984, allocations: 85.84 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.628e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1307, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.614/8.745, allocations: 3.025 GB / 3.404 GB, free: 52.74 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0206/8.766, allocations: 11.12 MB / 3.415 GB, free: 41.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5987/9.364, allocations: 111.6 MB / 3.524 GB, free: 90.83 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.894e-06/9.364, allocations: 0 / 3.524 GB, free: 90.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.641e-05/9.364, allocations: 3.469 kB / 3.524 GB, free: 90.83 MB / 442.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.00697/9.371, allocations: 1.136 MB / 3.525 GB, free: 90.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/9.371, allocations: 11.19 kB / 3.525 GB, free: 90.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00135/9.373, allocations: 176.5 kB / 3.525 GB, free: 90.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/9.373, allocations: 262.7 kB / 3.525 GB, free: 89.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/9.373, allocations: 11.62 kB / 3.525 GB, free: 89.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/9.373, allocations: 15.52 kB / 3.525 GB, free: 89.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005261/9.374, allocations: 344.1 kB / 3.526 GB, free: 89.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004152/9.374, allocations: 281.1 kB / 3.526 GB, free: 89.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/9.374, allocations: 0 / 3.526 GB, free: 89.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/9.374, allocations: 0 / 3.526 GB, free: 89.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/9.374, allocations: 7.625 kB / 3.526 GB, free: 89.52 MB / 442.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.001499/9.376, allocations: 1.303 MB / 3.527 GB, free: 88.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/9.376, allocations: 257.7 kB / 3.527 GB, free: 88.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/9.376, allocations: 126.8 kB / 3.527 GB, free: 88.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06783/9.444, allocations: 37.37 MB / 3.564 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/9.444, allocations: 34.78 kB / 3.564 GB, free: 55.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.475e-06/9.444, allocations: 0 / 3.564 GB, free: 55.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.002811/9.447, allocations: 0.7876 MB / 3.565 GB, free: 54.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/9.447, allocations: 55.41 kB / 3.565 GB, free: 54.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/9.447, allocations: 109.3 kB / 3.565 GB, free: 54.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.456e-05/9.447, allocations: 29.7 kB / 3.565 GB, free: 54.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/9.447, allocations: 116 kB / 3.565 GB, free: 54.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/9.448, allocations: 113.6 kB / 3.565 GB, free: 54.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/9.448, allocations: 0 / 3.565 GB, free: 54.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.256e-05/9.448, allocations: 326.8 kB / 3.566 GB, free: 53.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/9.448, allocations: 307 kB / 3.566 GB, free: 53.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/9.448, allocations: 374 kB / 3.566 GB, free: 53.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001962/9.45, allocations: 428.9 kB / 3.567 GB, free: 52.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/9.45, allocations: 3.938 kB / 3.567 GB, free: 52.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002845/9.453, allocations: 0.91 MB / 3.567 GB, free: 51.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/9.453, allocations: 4 kB / 3.567 GB, free: 51.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/9.453, allocations: 4 kB / 3.567 GB, free: 51.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/9.453, allocations: 4 kB / 3.567 GB, free: 51.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/9.454, allocations: 177.7 kB / 3.568 GB, free: 51.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/9.454, allocations: 4 kB / 3.568 GB, free: 51.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/9.455, allocations: 31.52 kB / 3.568 GB, free: 51.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.855e-05/9.455, allocations: 64.11 kB / 3.568 GB, free: 51.69 MB / 442.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.0001857/9.455, allocations: 116.9 kB / 3.568 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002808/9.458, allocations: 0.873 MB / 3.569 GB, free: 50.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.515e-05/9.458, allocations: 19.66 kB / 3.569 GB, free: 50.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006123/9.464, allocations: 6.52 MB / 3.575 GB, free: 44.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/9.464, allocations: 19.55 kB / 3.575 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/9.464, allocations: 0 / 3.575 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/9.464, allocations: 3.562 kB / 3.575 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/9.466, allocations: 2.818 MB / 3.578 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/9.466, allocations: 0 / 3.578 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006962/9.467, allocations: 128.2 kB / 3.578 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/9.467, allocations: 0 / 3.578 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/9.467, allocations: 19.83 kB / 3.578 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/9.467, allocations: 8 kB / 3.578 GB, free: 42.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/9.467, allocations: 4 kB / 3.578 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/9.47, allocations: 1.756 MB / 3.58 GB, free: 40.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/9.47, allocations: 144.2 kB / 3.58 GB, free: 40.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/9.47, allocations: 0 / 3.58 GB, free: 40.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/9.47, allocations: 19.77 kB / 3.58 GB, free: 40.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/9.47, allocations: 42.86 kB / 3.58 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/9.47, allocations: 23.36 kB / 3.58 GB, free: 40.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.599e-05/9.47, allocations: 87.28 kB / 3.58 GB, free: 40.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/9.47, allocations: 0 / 3.58 GB, free: 40.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005927/9.476, allocations: 0.9969 MB / 3.581 GB, free: 39.2 MB / 442.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.01146/9.488, allocations: 3.473 MB / 3.584 GB, free: 35.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001426/9.489, allocations: 0.8292 MB / 3.585 GB, free: 35.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/9.489, allocations: 0 / 3.585 GB, free: 35.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005691/9.49, allocations: 0.5507 MB / 3.586 GB, free: 34.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/9.491, allocations: 75.55 kB / 3.586 GB, free: 34.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/9.497, allocations: 1.427 MB / 3.587 GB, free: 33.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/9.497, allocations: 0.8498 MB / 3.588 GB, free: 32.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002599/9.5, allocations: 2.742 MB / 3.591 GB, free: 30.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004537/9.5, allocations: 216.3 kB / 3.591 GB, free: 30.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.392e-06/9.5, allocations: 4 kB / 3.591 GB, free: 30.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4049/9.905, allocations: 33.95 MB / 3.624 GB, free: 88.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/9.905, allocations: 142.4 kB / 3.624 GB, free: 88.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.298/13.2, allocations: 5.953 kB / 3.624 GB, free: 88.3 MB / 442.7 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