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.001546/0.001546, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001833/0.001833, allocations: 98.78 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003819/0.000382, allocations: 11.98 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02092/0.1226, allocations: 11.44 MB / 386.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2936/0.4163, allocations: 13.12 MB / 399.2 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.4165, allocations: 1.094 kB / 399.2 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003971/0.4169, allocations: 72.31 kB / 399.3 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.4173, allocations: 102.4 kB / 399.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02136/0.4387, allocations: 4.599 MB / 404 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.4392, allocations: 212.6 kB / 404.2 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.384e-05/0.4393, allocations: 20.05 kB / 404.2 MB, free: 7.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007252/0.4401, allocations: 238.1 kB / 404.4 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.4403, allocations: 87.42 kB / 404.5 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.408e-05/0.4403, allocations: 8.312 kB / 404.5 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0208/0.4611, allocations: 6.652 MB / 411.2 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.4613, allocations: 36.14 kB / 411.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.4614, allocations: 70.33 kB / 411.3 MB, free: 4.785 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007894/0.4694, allocations: 2.617 MB / 413.9 MB, free: 3.293 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4694, allocations: 0 / 413.9 MB, free: 3.293 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4694, allocations: 0 / 413.9 MB, free: 3.293 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.4694, allocations: 0 / 413.9 MB, free: 3.293 MB / 282.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.004036/0.4735, allocations: 0.949 MB / 414.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4736, allocations: 13.62 kB / 414.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.215e-05/0.4737, allocations: 55.03 kB / 414.9 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/0.4756, allocations: 185.3 kB / 415.1 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.476, allocations: 252.8 kB / 415.3 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.4761, allocations: 18.22 kB / 415.4 MB, free: 2.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.508e-05/0.4761, allocations: 20.41 kB / 415.4 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004803/0.4809, allocations: 0.9072 MB / 416.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.481, allocations: 0 / 416.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.4811, allocations: 13.12 kB / 416.3 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.4811, allocations: 5 kB / 416.3 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005248/0.4864, allocations: 0.9914 MB / 417.3 MB, free: 1.012 MB / 282.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.002426/0.4888, allocations: 1.34 MB / 418.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004352/0.4932, allocations: 0.7336 MB / 419.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1375/0.6308, allocations: 37.76 MB / 457.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.6309, allocations: 34.84 kB / 457.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 3.517e-06/0.6309, allocations: 0 / 457.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.008964/0.6399, allocations: 1.378 MB / 458.5 MB, free: 3.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.64, allocations: 59.34 kB / 458.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.6402, allocations: 121.9 kB / 458.7 MB, free: 3.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.6404, allocations: 29.7 kB / 458.7 MB, free: 3.641 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.6405, allocations: 187.2 kB / 458.9 MB, free: 3.457 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.6407, allocations: 118.3 kB / 459 MB, free: 3.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.843e-05/0.6408, allocations: 4 kB / 459 MB, free: 3.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.641, allocations: 326.8 kB / 459.4 MB, free: 3.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.6423, allocations: 335.8 kB / 459.7 MB, free: 2.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.6436, allocations: 411.3 kB / 460.1 MB, free: 2.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.6449, allocations: 348.1 kB / 460.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.645, allocations: 0 / 460.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003199/0.6482, allocations: 0.872 MB / 461.3 MB, free: 1.031 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.6482, allocations: 8 kB / 461.3 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.6483, allocations: 0 / 461.3 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.6483, allocations: 4 kB / 461.3 MB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.6495, allocations: 183.7 kB / 461.5 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.6496, allocations: 7.938 kB / 461.5 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000728/0.6503, allocations: 43.86 kB / 461.6 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.6505, allocations: 71.86 kB / 461.6 MB, free: 0.7227 MB / 330.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.0003503/0.6509, allocations: 137.7 kB / 461.8 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.6511, allocations: 16.28 kB / 461.8 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/0.6642, allocations: 7.985 MB / 469.8 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.031e-05/0.6643, allocations: 27.95 kB / 469.8 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.6643, allocations: 3.953 kB / 469.8 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.6643, allocations: 0 / 469.8 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/0.6696, allocations: 3.6 MB / 473.4 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.6696, allocations: 0 / 473.4 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.6709, allocations: 107.8 kB / 473.5 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.488e-05/0.6709, allocations: 3.984 kB / 473.5 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.998e-05/0.671, allocations: 12 kB / 473.5 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.671, allocations: 0 / 473.5 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.671, allocations: 4 kB / 473.5 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.6752, allocations: 1.854 MB / 475.4 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.6754, allocations: 144.1 kB / 475.5 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/0.6755, allocations: 12 kB / 475.5 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.6761, allocations: 24.05 kB / 475.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.6762, allocations: 27.95 kB / 475.6 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-05/0.6763, allocations: 15.98 kB / 475.6 MB, free: 2.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.6764, allocations: 95.23 kB / 475.7 MB, free: 2.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6765, allocations: 0 / 475.7 MB, free: 2.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004724/0.6812, allocations: 0.9838 MB / 476.7 MB, free: 1.355 MB / 346.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.0133/0.6945, allocations: 3.416 MB / 480.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002798/0.6974, allocations: 0.9033 MB / 481 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.6975, allocations: 4 kB / 481 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.6989, allocations: 0.5913 MB / 481.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.6999, allocations: 84.08 kB / 481.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/0.7109, allocations: 4.526 MB / 486.2 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000613/0.7116, allocations: 0.8653 MB / 487.1 MB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008367/0.7125, allocations: 215.3 kB / 487.3 MB, free: 6.613 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7125, allocations: 0 / 487.3 MB, free: 6.613 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.501/4.213, allocations: 28 MB / 0.5032 GB, free: 10.53 MB / 394.7 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