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.001706/0.001706, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008984/0.0008982, allocations: 94.22 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.247e-05, allocations: 7.984 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.905/9.021, allocations: 3.02 GB / 3.375 GB, free: 81.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02257/9.043, allocations: 10.9 MB / 3.385 GB, free: 80.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6492/9.693, allocations: 110.5 MB / 3.493 GB, free: 81.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.014e-06/9.693, allocations: 0 / 3.493 GB, free: 81.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.598e-05/9.693, allocations: 3.906 kB / 3.493 GB, free: 81.57 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.006621/9.699, allocations: 1.139 MB / 3.494 GB, free: 80.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/9.699, allocations: 7.906 kB / 3.494 GB, free: 80.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/9.701, allocations: 178.8 kB / 3.495 GB, free: 80.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/9.701, allocations: 261.6 kB / 3.495 GB, free: 80.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/9.701, allocations: 7.812 kB / 3.495 GB, free: 80.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/9.701, allocations: 18.72 kB / 3.495 GB, free: 80.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005207/9.702, allocations: 340.4 kB / 3.495 GB, free: 80.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004024/9.702, allocations: 281.4 kB / 3.496 GB, free: 80.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/9.702, allocations: 0.75 kB / 3.496 GB, free: 80.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/9.702, allocations: 0.75 kB / 3.496 GB, free: 80.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/9.702, allocations: 7.75 kB / 3.496 GB, free: 80.62 MB / 426.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.001405/9.704, allocations: 1.304 MB / 3.497 GB, free: 79.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/9.704, allocations: 249.9 kB / 3.497 GB, free: 79.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/9.704, allocations: 136.5 kB / 3.497 GB, free: 79.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07326/9.777, allocations: 37.35 MB / 3.534 GB, free: 56.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/9.778, allocations: 38.03 kB / 3.534 GB, free: 56.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.456e-06/9.778, allocations: 3.281 kB / 3.534 GB, free: 56.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.002973/9.781, allocations: 0.7898 MB / 3.534 GB, free: 56.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/9.781, allocations: 55.19 kB / 3.534 GB, free: 56.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/9.781, allocations: 113.2 kB / 3.535 GB, free: 56.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.225e-05/9.781, allocations: 25.7 kB / 3.535 GB, free: 56.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/9.781, allocations: 112.2 kB / 3.535 GB, free: 56.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/9.781, allocations: 114.2 kB / 3.535 GB, free: 56.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/9.781, allocations: 0 / 3.535 GB, free: 56.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.322e-05/9.781, allocations: 333.6 kB / 3.535 GB, free: 56.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/9.781, allocations: 306.3 kB / 3.535 GB, free: 56.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/9.782, allocations: 369.4 kB / 3.536 GB, free: 55.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00196/9.784, allocations: 426.8 kB / 3.536 GB, free: 55.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/9.784, allocations: 0 / 3.536 GB, free: 55.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002811/9.787, allocations: 0.903 MB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/9.787, allocations: 3.281 kB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/9.787, allocations: 3.938 kB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/9.787, allocations: 4.156 kB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006919/9.787, allocations: 180.3 kB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/9.788, allocations: 7.219 kB / 3.537 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/9.788, allocations: 34.25 kB / 3.537 GB, free: 55.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/9.788, allocations: 66.72 kB / 3.537 GB, free: 55.91 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 () * 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.0001846/9.788, allocations: 119.3 kB / 3.537 GB, free: 55.8 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002737/9.791, allocations: 0.8698 MB / 3.538 GB, free: 55.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-05/9.791, allocations: 15.34 kB / 3.538 GB, free: 55.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006491/9.798, allocations: 6.511 MB / 3.545 GB, free: 55.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.962e-05/9.798, allocations: 24.16 kB / 3.545 GB, free: 55.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/9.798, allocations: 0 / 3.545 GB, free: 55.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/9.798, allocations: 3.953 kB / 3.545 GB, free: 55.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/9.8, allocations: 2.818 MB / 3.547 GB, free: 54.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/9.8, allocations: 9.938 kB / 3.548 GB, free: 54.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/9.801, allocations: 131.5 kB / 3.548 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/9.801, allocations: 5.75 kB / 3.548 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-05/9.801, allocations: 18.25 kB / 3.548 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/9.801, allocations: 0 / 3.548 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/9.801, allocations: 3.938 kB / 3.548 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/9.804, allocations: 1.751 MB / 3.549 GB, free: 54.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/9.804, allocations: 135.8 kB / 3.549 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.003e-05/9.804, allocations: 4.062 kB / 3.549 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/9.804, allocations: 15.47 kB / 3.55 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.441e-05/9.804, allocations: 42.36 kB / 3.55 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.386e-05/9.804, allocations: 27.02 kB / 3.55 GB, free: 53.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.969e-05/9.804, allocations: 86.94 kB / 3.55 GB, free: 53.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/9.804, allocations: 3.969 kB / 3.55 GB, free: 53.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005705/9.81, allocations: 0.9843 MB / 3.551 GB, free: 53.66 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: 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.01095/9.821, allocations: 3.467 MB / 3.554 GB, free: 52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/9.822, allocations: 0.8354 MB / 3.555 GB, free: 51.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/9.822, allocations: 0 / 3.555 GB, free: 51.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006002/9.823, allocations: 0.5569 MB / 3.555 GB, free: 51.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006926/9.824, allocations: 70.09 kB / 3.555 GB, free: 51.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/9.829, allocations: 1.432 MB / 3.557 GB, free: 50.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/9.829, allocations: 0.8509 MB / 3.558 GB, free: 49.96 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002903/9.832, allocations: 2.741 MB / 3.56 GB, free: 49.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004455/9.832, allocations: 210.3 kB / 3.561 GB, free: 49.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/9.832, allocations: 0 / 3.561 GB, free: 49.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07866/9.911, allocations: 33.9 MB / 3.594 GB, free: 41.13 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/9.911, allocations: 145.5 kB / 3.594 GB, free: 40.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.711/13.62, allocations: 0 / 3.594 GB, free: 40.94 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