Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_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.00196/0.00196, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 90.88 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.675e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4127, allocations: 47.55 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.126/9.538, allocations: 3.02 GB / 3.374 GB, free: 29.1 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03381/9.572, allocations: 10.89 MB / 3.384 GB, free: 20.96 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8693/10.44, allocations: 110.5 MB / 3.492 GB, free: 85.91 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.743e-06/10.44, allocations: 0 / 3.492 GB, free: 85.91 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/10.44, allocations: 4 kB / 3.492 GB, free: 85.9 MB / 427.1 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.0059/10.45, allocations: 1.145 MB / 3.494 GB, free: 84.79 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/10.45, allocations: 11.92 kB / 3.494 GB, free: 84.78 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0019/10.45, allocations: 180.8 kB / 3.494 GB, free: 84.65 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/10.45, allocations: 261.4 kB / 3.494 GB, free: 84.38 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/10.45, allocations: 8 kB / 3.494 GB, free: 84.38 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.916e-05/10.45, allocations: 16 kB / 3.494 GB, free: 84.36 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007529/10.45, allocations: 345.2 kB / 3.494 GB, free: 84.06 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005566/10.45, allocations: 276.8 kB / 3.495 GB, free: 83.81 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/10.45, allocations: 0 / 3.495 GB, free: 83.81 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/10.45, allocations: 0 / 3.495 GB, free: 83.81 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/10.45, allocations: 4 kB / 3.495 GB, free: 83.8 MB / 427.1 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.001929/10.45, allocations: 1.315 MB / 3.496 GB, free: 82.52 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005271/10.45, allocations: 246.4 kB / 3.496 GB, free: 82.28 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/10.45, allocations: 137.3 kB / 3.496 GB, free: 82.14 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1244/10.58, allocations: 37.35 MB / 3.533 GB, free: 40.79 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/10.58, allocations: 38.83 kB / 3.533 GB, free: 40.74 MB / 427.1 MB Notification: Performance of pre-optimization done (n=33): time 3.887e-06/10.58, allocations: 0 / 3.533 GB, free: 40.74 MB / 427.1 MB Notification: Performance of matching and sorting (n=33): time 0.0044/10.58, allocations: 0.7845 MB / 3.533 GB, free: 39.95 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/10.58, allocations: 55.41 kB / 3.534 GB, free: 39.89 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/10.58, allocations: 113.1 kB / 3.534 GB, free: 39.77 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/10.58, allocations: 25.7 kB / 3.534 GB, free: 39.74 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/10.58, allocations: 190.8 kB / 3.534 GB, free: 39.55 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/10.58, allocations: 110.3 kB / 3.534 GB, free: 39.44 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.353e-05/10.58, allocations: 0 / 3.534 GB, free: 39.44 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.541e-05/10.58, allocations: 328.3 kB / 3.534 GB, free: 39.11 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006567/10.58, allocations: 307.9 kB / 3.535 GB, free: 38.81 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000733/10.59, allocations: 371.7 kB / 3.535 GB, free: 38.42 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/10.59, allocations: 423.9 kB / 3.535 GB, free: 38.01 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/10.59, allocations: 4 kB / 3.535 GB, free: 38 MB / 427.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00447/10.59, allocations: 0.8955 MB / 3.536 GB, free: 37.1 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/10.59, allocations: 4 kB / 3.536 GB, free: 37.1 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/10.59, allocations: 4 kB / 3.536 GB, free: 37.09 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/10.59, allocations: 4 kB / 3.536 GB, free: 37.09 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/10.59, allocations: 175.8 kB / 3.536 GB, free: 36.92 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/10.59, allocations: 7.938 kB / 3.536 GB, free: 36.91 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000772/10.6, allocations: 43.97 kB / 3.536 GB, free: 36.87 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/10.6, allocations: 55.94 kB / 3.536 GB, free: 36.81 MB / 427.1 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.000263/10.6, allocations: 124.6 kB / 3.537 GB, free: 36.69 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00443/10.6, allocations: 0.8682 MB / 3.537 GB, free: 35.81 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/10.6, allocations: 15.81 kB / 3.537 GB, free: 35.8 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008896/10.61, allocations: 6.52 MB / 3.544 GB, free: 29.27 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.903e-05/10.61, allocations: 23.97 kB / 3.544 GB, free: 29.25 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/10.61, allocations: 3.984 kB / 3.544 GB, free: 29.24 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/10.61, allocations: 3.953 kB / 3.544 GB, free: 29.24 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/10.61, allocations: 2.82 MB / 3.547 GB, free: 26.24 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/10.61, allocations: 4 kB / 3.547 GB, free: 26.23 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/10.61, allocations: 123.8 kB / 3.547 GB, free: 26.11 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/10.61, allocations: 4 kB / 3.547 GB, free: 26.11 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.088e-05/10.61, allocations: 19.97 kB / 3.547 GB, free: 26.09 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/10.61, allocations: 4 kB / 3.547 GB, free: 26.09 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/10.61, allocations: 0 / 3.547 GB, free: 26.09 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003625/10.62, allocations: 1.755 MB / 3.548 GB, free: 24.31 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.383e-05/10.62, allocations: 136.3 kB / 3.549 GB, free: 24.16 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.64e-05/10.62, allocations: 0 / 3.549 GB, free: 24.16 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006311/10.62, allocations: 20.8 kB / 3.549 GB, free: 24.14 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/10.62, allocations: 39.94 kB / 3.549 GB, free: 24.1 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.589e-05/10.62, allocations: 27.97 kB / 3.549 GB, free: 24.07 MB / 427.1 MB Notification: Performance of sorting global known variables: time 5.429e-05/10.62, allocations: 91.59 kB / 3.549 GB, free: 23.98 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.413e-06/10.62, allocations: 0 / 3.549 GB, free: 23.98 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.005194/10.62, allocations: 0.9909 MB / 3.55 GB, free: 23 MB / 427.1 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.01392/10.64, allocations: 3.476 MB / 3.553 GB, free: 19.55 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001861/10.64, allocations: 0.8335 MB / 3.554 GB, free: 18.72 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/10.64, allocations: 0 / 3.554 GB, free: 18.72 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009143/10.64, allocations: 0.5518 MB / 3.554 GB, free: 18.17 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/10.64, allocations: 72.52 kB / 3.555 GB, free: 18.11 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00634/10.65, allocations: 1.452 MB / 3.556 GB, free: 16.6 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/10.65, allocations: 0.8464 MB / 3.557 GB, free: 15.73 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000859/10.65, allocations: 227.3 kB / 3.557 GB, free: 15.51 MB / 427.1 MB Notification: Performance of SimCode: time 1.623e-06/10.65, allocations: 0 / 3.557 GB, free: 15.51 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.783/14.43, allocations: 28.3 MB / 3.585 GB, free: 77.83 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat