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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 94.25 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.604e-05, allocations: 0 / 343.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1257, allocations: 51.48 MB / 395.3 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.069/9.195, allocations: 3.026 GB / 3.412 GB, free: 7.578 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3796/9.574, allocations: 11.17 MB / 3.423 GB, free: 111.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3173/9.892, allocations: 111.4 MB / 3.532 GB, free: 76.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.619e-06/9.892, allocations: 3.984 kB / 3.532 GB, free: 76.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/9.892, allocations: 7.938 kB / 3.532 GB, free: 76.88 MB / 458.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.007608/9.899, allocations: 1.152 MB / 3.533 GB, free: 75.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.116e-05/9.9, allocations: 8.031 kB / 3.533 GB, free: 75.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/9.901, allocations: 184.5 kB / 3.533 GB, free: 75.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/9.902, allocations: 262.4 kB / 3.533 GB, free: 75.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/9.902, allocations: 11.94 kB / 3.533 GB, free: 75.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-05/9.902, allocations: 12 kB / 3.533 GB, free: 75.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005962/9.902, allocations: 346.5 kB / 3.534 GB, free: 74.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/9.903, allocations: 282.7 kB / 3.534 GB, free: 74.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/9.903, allocations: 0 / 3.534 GB, free: 74.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/9.903, allocations: 0 / 3.534 GB, free: 74.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/9.903, allocations: 4 kB / 3.534 GB, free: 74.55 MB / 458.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.001999/9.905, allocations: 1.299 MB / 3.535 GB, free: 73.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/9.905, allocations: 247.1 kB / 3.535 GB, free: 72.88 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/9.906, allocations: 133.4 kB / 3.536 GB, free: 72.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07533/9.981, allocations: 41.98 MB / 3.577 GB, free: 25.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/9.981, allocations: 38.84 kB / 3.577 GB, free: 25.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.544e-06/9.981, allocations: 0 / 3.577 GB, free: 25.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.003119/9.984, allocations: 0.7845 MB / 3.577 GB, free: 24.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/9.984, allocations: 51.41 kB / 3.577 GB, free: 24.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/9.984, allocations: 123.9 kB / 3.578 GB, free: 24.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.62e-05/9.984, allocations: 29.7 kB / 3.578 GB, free: 24.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/9.985, allocations: 112.6 kB / 3.578 GB, free: 24.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/9.985, allocations: 114.3 kB / 3.578 GB, free: 24.16 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.81e-05/9.985, allocations: 0 / 3.578 GB, free: 24.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.4e-05/9.985, allocations: 326.8 kB / 3.578 GB, free: 23.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/9.985, allocations: 307.7 kB / 3.578 GB, free: 23.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003996/9.986, allocations: 375.6 kB / 3.579 GB, free: 23.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002/9.988, allocations: 424.5 kB / 3.579 GB, free: 22.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/9.988, allocations: 0 / 3.579 GB, free: 22.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002902/9.991, allocations: 0.9033 MB / 3.58 GB, free: 21.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/9.991, allocations: 11.92 kB / 3.58 GB, free: 21.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/9.991, allocations: 4 kB / 3.58 GB, free: 21.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/9.991, allocations: 4 kB / 3.58 GB, free: 21.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006913/9.991, allocations: 171.8 kB / 3.58 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/9.991, allocations: 4 kB / 3.58 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/9.992, allocations: 40.27 kB / 3.58 GB, free: 21.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/9.992, allocations: 67.86 kB / 3.58 GB, free: 21.52 MB / 458.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.0001897/9.992, allocations: 116.8 kB / 3.58 GB, free: 21.39 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002801/9.995, allocations: 0.8647 MB / 3.581 GB, free: 20.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.75e-05/9.995, allocations: 19.81 kB / 3.581 GB, free: 20.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005734/10, allocations: 6.522 MB / 3.588 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/10, allocations: 27.95 kB / 3.588 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/10, allocations: 0 / 3.588 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/10, allocations: 3.984 kB / 3.588 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/10, allocations: 2.811 MB / 3.59 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/10, allocations: 0 / 3.59 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006598/10, allocations: 131.8 kB / 3.591 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/10, allocations: 0 / 3.591 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/10, allocations: 19.98 kB / 3.591 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/10, allocations: 7.984 kB / 3.591 GB, free: 10.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/10, allocations: 0 / 3.591 GB, free: 10.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/10.01, allocations: 1.747 MB / 3.592 GB, free: 9.066 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/10.01, allocations: 140.2 kB / 3.592 GB, free: 8.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.711e-05/10.01, allocations: 11.94 kB / 3.592 GB, free: 8.898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/10.01, allocations: 20.05 kB / 3.593 GB, free: 8.879 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/10.01, allocations: 39.94 kB / 3.593 GB, free: 8.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.415e-05/10.01, allocations: 19.98 kB / 3.593 GB, free: 8.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.981e-05/10.01, allocations: 93.05 kB / 3.593 GB, free: 8.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.61e-07/10.01, allocations: 0 / 3.593 GB, free: 8.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005942/10.01, allocations: 0.999 MB / 3.594 GB, free: 7.73 MB / 458.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.01313/10.03, allocations: 3.5 MB / 3.597 GB, free: 4.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001457/10.03, allocations: 0.8345 MB / 3.598 GB, free: 3.434 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/10.03, allocations: 0 / 3.598 GB, free: 3.434 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007204/10.03, allocations: 0.5518 MB / 3.598 GB, free: 2.879 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007564/10.03, allocations: 76.39 kB / 3.598 GB, free: 2.805 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006061/10.04, allocations: 1.436 MB / 3.6 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/10.04, allocations: 0.8503 MB / 3.601 GB, free: 472 kB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.3333/10.37, allocations: 2.736 MB / 3.603 GB, free: 87.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005603/10.37, allocations: 213.8 kB / 3.604 GB, free: 87.13 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/10.37, allocations: 0 / 3.604 GB, free: 87.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08283/10.45, allocations: 34.08 MB / 3.637 GB, free: 86.66 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/10.45, allocations: 145.6 kB / 3.637 GB, free: 86.47 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.31/13.76, allocations: 1.031 kB / 3.637 GB, free: 86.47 MB / 458.7 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