Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009459/0.0009458, allocations: 99.39 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001056, allocations: 192.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002206/0.0002207, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09543, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0144/0.1099, allocations: 12.42 MB / 370.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2025/0.3124, allocations: 14.36 MB / 385.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.3127, allocations: 5.094 kB / 385.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.313, allocations: 58.22 kB / 385.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003418/0.3134, allocations: 103.6 kB / 385.3 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0167/0.3301, allocations: 4.55 MB / 389.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005245/0.3306, allocations: 336.5 kB / 390.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.848e-05/0.3307, allocations: 14.53 kB / 390.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.3312, allocations: 199.8 kB / 390.3 MB, free: 5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.3314, allocations: 105.1 kB / 390.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.3314, allocations: 7.344 kB / 390.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01538/0.3468, allocations: 6.49 MB / 396.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.347, allocations: 45.59 kB / 397 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.3472, allocations: 60.8 kB / 397 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007024/0.3542, allocations: 2.634 MB / 399.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.3543, allocations: 0 / 399.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.3543, allocations: 0 / 399.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3543, allocations: 0 / 399.7 MB, free: 0.5273 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.004869/0.3592, allocations: 0.9642 MB / 400.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3592, allocations: 9.719 kB / 400.7 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.069e-05/0.3593, allocations: 53.23 kB / 400.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.3607, allocations: 184.3 kB / 400.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.361, allocations: 258.6 kB / 401.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.361, allocations: 15.19 kB / 401.2 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.406e-05/0.3611, allocations: 24.34 kB / 401.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.3639, allocations: 0.9038 MB / 402.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3639, allocations: 4 kB / 402.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.3639, allocations: 10.5 kB / 402.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.3639, allocations: 5.594 kB / 402.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002861/0.3668, allocations: 0.9942 MB / 403.1 MB, free: 14.24 MB / 318.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.001793/0.3686, allocations: 1.348 MB / 404.4 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/0.3709, allocations: 0.7295 MB / 405.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.3712, allocations: 156 kB / 405.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07574/0.4469, allocations: 42.37 MB / 447.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.447, allocations: 48.14 kB / 447.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.086e-06/0.447, allocations: 0 / 447.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004726/0.4517, allocations: 1.364 MB / 449.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.4518, allocations: 59.34 kB / 449.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.4519, allocations: 125.9 kB / 449.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.452, allocations: 37.7 kB / 449.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.671e-05/0.4521, allocations: 112.8 kB / 449.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.4522, allocations: 114.3 kB / 449.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.4522, allocations: 4 kB / 449.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4524, allocations: 326.8 kB / 449.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000574/0.453, allocations: 343.6 kB / 450.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/0.4536, allocations: 411.5 kB / 450.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005788/0.4542, allocations: 340.1 kB / 450.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4542, allocations: 0 / 450.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001596/0.4558, allocations: 0.8797 MB / 451.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.4558, allocations: 7.984 kB / 451.8 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.4558, allocations: 4 kB / 451.8 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.4558, allocations: 7.953 kB / 451.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006333/0.4565, allocations: 176 kB / 452 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.4565, allocations: 8 kB / 452 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.4569, allocations: 47.61 kB / 452.1 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.457, allocations: 63.92 kB / 452.1 MB, free: 8.496 MB / 366.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.0002086/0.4572, allocations: 139.6 kB / 452.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.4573, allocations: 15.81 kB / 452.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007456/0.4648, allocations: 7.986 MB / 460.3 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.504e-05/0.4649, allocations: 27.95 kB / 460.3 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.4649, allocations: 7.953 kB / 460.3 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.4649, allocations: 0 / 460.3 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/0.4687, allocations: 3.597 MB / 463.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.4688, allocations: 0 / 463.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.4694, allocations: 111.8 kB / 464 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/0.4694, allocations: 7.984 kB / 464 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/0.4695, allocations: 12.86 kB / 464 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4695, allocations: 0 / 464 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4695, allocations: 3.953 kB / 464 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.4721, allocations: 1.854 MB / 465.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.4723, allocations: 148.1 kB / 466 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.602e-05/0.4723, allocations: 8.062 kB / 466 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.4726, allocations: 20.86 kB / 466.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-05/0.4727, allocations: 31.95 kB / 466.1 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/0.4728, allocations: 19.94 kB / 466.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.703e-05/0.4729, allocations: 87.28 kB / 466.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4729, allocations: 0 / 466.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003989/0.4769, allocations: 1.003 MB / 467.2 MB, free: 9.113 MB / 382.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.009566/0.4865, allocations: 3.44 MB / 470.6 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.4883, allocations: 0.904 MB / 471.5 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.4884, allocations: 0 / 471.5 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009078/0.4893, allocations: 0.5952 MB / 472.1 MB, free: 4.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007376/0.49, allocations: 83.91 kB / 472.2 MB, free: 4.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007462/0.4975, allocations: 3.315 MB / 475.5 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.498, allocations: 0.8614 MB / 476.4 MB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00212/0.5001, allocations: 1.78 MB / 478.2 MB, free: 14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.5007, allocations: 223.3 kB / 478.4 MB, free: 13.78 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5007, allocations: 0 / 478.4 MB, free: 13.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07553/0.5762, allocations: 45.45 MB / 0.5116 GB, free: 412 kB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.5765, allocations: 195 kB / 0.5117 GB, free: 164 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.134/4.711, allocations: 3.375 kB / 0.5117 GB, free: 164 kB / 430.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat