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.001559/0.001559, allocations: 181.3 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009999/0.001, allocations: 95.47 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002544, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2597, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.366/6.626, allocations: 3.026 GB / 3.418 GB, free: 63.61 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01919/6.645, allocations: 11.3 MB / 3.429 GB, free: 54.86 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5086/7.154, allocations: 114.1 MB / 3.541 GB, free: 104.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/7.154, allocations: 0 / 3.541 GB, free: 104.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.412e-05/7.154, allocations: 3.875 kB / 3.541 GB, free: 104.9 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.005347/7.159, allocations: 1.156 MB / 3.542 GB, free: 104.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/7.159, allocations: 7.75 kB / 3.542 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.625e-05/7.159, allocations: 55.05 kB / 3.542 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/7.161, allocations: 180.8 kB / 3.542 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/7.161, allocations: 254.6 kB / 3.542 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/7.161, allocations: 22.09 kB / 3.542 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/7.161, allocations: 24.52 kB / 3.542 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/7.164, allocations: 0.8835 MB / 3.543 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/7.164, allocations: 4 kB / 3.543 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/7.164, allocations: 9.344 kB / 3.543 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/7.164, allocations: 7.281 kB / 3.543 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00274/7.167, allocations: 0.9586 MB / 3.544 GB, free: 103.8 MB / 458.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.001547/7.168, allocations: 1.34 MB / 3.545 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/7.17, allocations: 0.7169 MB / 3.546 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06104/7.232, allocations: 37.23 MB / 3.583 GB, free: 74.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/7.232, allocations: 42.16 kB / 3.583 GB, free: 74.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 3.507e-06/7.232, allocations: 0 / 3.583 GB, free: 74.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004769/7.236, allocations: 1.329 MB / 3.584 GB, free: 73.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/7.236, allocations: 55.41 kB / 3.584 GB, free: 73.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/7.237, allocations: 112.9 kB / 3.584 GB, free: 73.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/7.237, allocations: 33.64 kB / 3.584 GB, free: 73.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/7.237, allocations: 112.6 kB / 3.584 GB, free: 72.92 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/7.237, allocations: 117.9 kB / 3.584 GB, free: 72.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/7.237, allocations: 8 kB / 3.584 GB, free: 72.81 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/7.237, allocations: 322.5 kB / 3.585 GB, free: 72.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/7.238, allocations: 338.1 kB / 3.585 GB, free: 72.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/7.238, allocations: 401.5 kB / 3.585 GB, free: 71.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/7.239, allocations: 337 kB / 3.586 GB, free: 71.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/7.239, allocations: 3.953 kB / 3.586 GB, free: 71.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001573/7.24, allocations: 0.8591 MB / 3.586 GB, free: 70.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/7.24, allocations: 8 kB / 3.586 GB, free: 70.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/7.24, allocations: 4.25 kB / 3.586 GB, free: 70.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/7.241, allocations: 7.25 kB / 3.586 GB, free: 70.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007033/7.241, allocations: 182.9 kB / 3.587 GB, free: 70.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/7.241, allocations: 4 kB / 3.587 GB, free: 70.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/7.242, allocations: 49.48 kB / 3.587 GB, free: 70.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.824e-05/7.242, allocations: 63.03 kB / 3.587 GB, free: 70.55 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 () * 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.0001941/7.242, allocations: 139.5 kB / 3.587 GB, free: 70.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-05/7.242, allocations: 19.77 kB / 3.587 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0059/7.248, allocations: 7.816 MB / 3.595 GB, free: 63.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.403e-05/7.248, allocations: 26.5 kB / 3.595 GB, free: 63.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/7.248, allocations: 384 / 3.595 GB, free: 63.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/7.248, allocations: 3.797 kB / 3.595 GB, free: 63.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/7.25, allocations: 3.496 MB / 3.598 GB, free: 60.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/7.25, allocations: 3.953 kB / 3.598 GB, free: 60.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006722/7.251, allocations: 121.6 kB / 3.598 GB, free: 59.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/7.251, allocations: 0 / 3.598 GB, free: 59.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/7.251, allocations: 15.19 kB / 3.598 GB, free: 59.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/7.251, allocations: 4 kB / 3.598 GB, free: 59.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/7.251, allocations: 0 / 3.598 GB, free: 59.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/7.253, allocations: 1.843 MB / 3.6 GB, free: 58.19 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.054e-05/7.253, allocations: 152.1 kB / 3.6 GB, free: 58.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/7.253, allocations: 11.66 kB / 3.6 GB, free: 58.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/7.254, allocations: 19.66 kB / 3.6 GB, free: 58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/7.254, allocations: 32.28 kB / 3.6 GB, free: 57.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/7.254, allocations: 19.62 kB / 3.6 GB, free: 57.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.953e-05/7.254, allocations: 90.84 kB / 3.6 GB, free: 57.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/7.254, allocations: 0 / 3.6 GB, free: 57.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004636/7.258, allocations: 1.008 MB / 3.601 GB, free: 56.89 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: 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.008719/7.267, allocations: 3.555 MB / 3.605 GB, free: 53.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/7.268, allocations: 0.8996 MB / 3.606 GB, free: 52.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/7.269, allocations: 3.656 kB / 3.606 GB, free: 52.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005751/7.269, allocations: 0.5928 MB / 3.606 GB, free: 52.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/7.27, allocations: 75.84 kB / 3.606 GB, free: 52.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006595/7.276, allocations: 4.56 MB / 3.611 GB, free: 47.89 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/7.277, allocations: 0.8683 MB / 3.612 GB, free: 47.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001562/7.278, allocations: 1.749 MB / 3.613 GB, free: 46.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/7.279, allocations: 224.4 kB / 3.613 GB, free: 45.83 MB / 458.7 MB Notification: Performance of SimCode: time 8.22e-07/7.279, allocations: 0 / 3.613 GB, free: 45.83 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06139/7.34, allocations: 35.93 MB / 3.649 GB, free: 16.05 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/7.34, allocations: 194.8 kB / 3.649 GB, free: 15.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.325/10.66, allocations: 0 / 3.649 GB, free: 15.8 MB / 458.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