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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 94.72 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 183.1 kB / 17.2 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002851/0.0002855, allocations: 4 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09701, allocations: 50.42 MB / 351.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01384/0.1109, allocations: 11.44 MB / 362.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2198/0.3308, allocations: 13.13 MB / 375.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.331, allocations: 1.062 kB / 375.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003332/0.3314, allocations: 65.22 kB / 375.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.3317, allocations: 106.4 kB / 376 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01637/0.3481, allocations: 4.609 MB / 380.6 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000521/0.3486, allocations: 214.8 kB / 380.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.868e-05/0.3487, allocations: 16.11 kB / 380.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005848/0.3493, allocations: 240.5 kB / 381 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.3495, allocations: 93.27 kB / 381.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.3495, allocations: 7.375 kB / 381.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01755/0.367, allocations: 6.66 MB / 387.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.3672, allocations: 38.08 kB / 387.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.3674, allocations: 64.02 kB / 387.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006544/0.374, allocations: 2.626 MB / 390.5 MB, free: 7.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.374, allocations: 0 / 390.5 MB, free: 7.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.374, allocations: 0 / 390.5 MB, free: 7.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.374, allocations: 0 / 390.5 MB, free: 7.223 MB / 302.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.003356/0.3774, allocations: 0.9522 MB / 391.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.3774, allocations: 8.688 kB / 391.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.898e-05/0.3775, allocations: 58.61 kB / 391.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001325/0.3788, allocations: 177.8 kB / 391.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.3791, allocations: 258.5 kB / 392 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.3791, allocations: 20.61 kB / 392 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.3792, allocations: 20.38 kB / 392 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/0.3819, allocations: 0.9054 MB / 392.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.382, allocations: 5.219 kB / 392.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.382, allocations: 9.625 kB / 392.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.382, allocations: 9.438 kB / 392.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002934/0.385, allocations: 0.9832 MB / 393.9 MB, free: 5.652 MB / 302.1 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.001324/0.3863, allocations: 1.347 MB / 395.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.3886, allocations: 0.7378 MB / 396 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07351/0.4621, allocations: 37.77 MB / 433.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.4622, allocations: 42.84 kB / 433.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.4622, allocations: 0 / 433.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004881/0.4671, allocations: 1.366 MB / 435.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.4671, allocations: 59.41 kB / 435.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.4672, allocations: 125.9 kB / 435.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.292e-05/0.4673, allocations: 29.7 kB / 435.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.4674, allocations: 108.8 kB / 435.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.4675, allocations: 121.7 kB / 435.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.4676, allocations: 4 kB / 435.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4677, allocations: 330.2 kB / 435.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005897/0.4683, allocations: 343.8 kB / 436.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000622/0.469, allocations: 407.3 kB / 436.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/0.4695, allocations: 342.4 kB / 437 MB, free: 9.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.4696, allocations: 4 kB / 437 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001653/0.4712, allocations: 0.8719 MB / 437.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.4713, allocations: 8 kB / 437.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.4713, allocations: 256 / 437.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.4713, allocations: 11.94 kB / 437.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.4719, allocations: 181.6 kB / 438.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.4719, allocations: 4 kB / 438.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.4723, allocations: 44.05 kB / 438.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.4724, allocations: 63.92 kB / 438.2 MB, free: 8.203 MB / 350.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 () * 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.0002325/0.4727, allocations: 149.4 kB / 438.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-05/0.4728, allocations: 19.75 kB / 438.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007715/0.4805, allocations: 7.978 MB / 446.3 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.893e-05/0.4806, allocations: 23.95 kB / 446.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.4806, allocations: 0 / 446.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4806, allocations: 3.984 kB / 446.4 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003109/0.4837, allocations: 3.602 MB / 450 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4837, allocations: 0 / 450 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006176/0.4844, allocations: 111.8 kB / 450.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.848e-06/0.4844, allocations: 4 kB / 450.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.4844, allocations: 8 kB / 450.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4844, allocations: 7.984 kB / 450.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4845, allocations: 0 / 450.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.4868, allocations: 1.858 MB / 451.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.487, allocations: 144.1 kB / 452.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/0.487, allocations: 8 kB / 452.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.4873, allocations: 23.98 kB / 452.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.4875, allocations: 27.95 kB / 452.1 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.4875, allocations: 15.98 kB / 452.2 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.495e-05/0.4876, allocations: 95.33 kB / 452.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4876, allocations: 3.938 kB / 452.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003748/0.4913, allocations: 0.9838 MB / 453.2 MB, free: 8.84 MB / 366.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: 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.009651/0.501, allocations: 3.423 MB / 456.7 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.5027, allocations: 0.9155 MB / 457.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5027, allocations: 0 / 457.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007321/0.5035, allocations: 0.5957 MB / 458.2 MB, free: 3.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005832/0.504, allocations: 79.97 kB / 458.3 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006897/0.511, allocations: 4.511 MB / 462.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.5114, allocations: 0.8692 MB / 463.6 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001948/0.5133, allocations: 1.786 MB / 465.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/0.5138, allocations: 215.3 kB / 465.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.5138, allocations: 0 / 465.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07357/0.5874, allocations: 45.29 MB / 0.4989 GB, free: 15.2 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.5876, allocations: 189.8 kB / 0.4991 GB, free: 14.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.102/4.689, allocations: 4 kB / 0.4991 GB, free: 14.95 MB / 430.1 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