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.001095/0.001095, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009497/0.0009498, allocations: 99.36 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.0002509, allocations: 8 kB / 358 MB, free: 9.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2328, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.837/6.069, allocations: 3.027 GB / 3.427 GB, free: 56.17 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01955/6.089, allocations: 11.36 MB / 3.438 GB, free: 44.69 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4758/6.565, allocations: 113.8 MB / 3.549 GB, free: 103.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.984e-06/6.565, allocations: 3.625 kB / 3.549 GB, free: 103.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/6.565, allocations: 3.812 kB / 3.549 GB, free: 103.4 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.004839/6.57, allocations: 1.166 MB / 3.55 GB, free: 102.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/6.57, allocations: 10.84 kB / 3.55 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.599e-05/6.57, allocations: 54.53 kB / 3.55 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001363/6.571, allocations: 183.8 kB / 3.55 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/6.572, allocations: 256.8 kB / 3.551 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/6.572, allocations: 16.44 kB / 3.551 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/6.572, allocations: 27.66 kB / 3.551 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/6.574, allocations: 0.8885 MB / 3.552 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/6.574, allocations: 0 / 3.552 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/6.574, allocations: 12 kB / 3.552 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/6.574, allocations: 11.98 kB / 3.552 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002752/6.577, allocations: 0.9544 MB / 3.553 GB, free: 100.6 MB / 458.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.001445/6.579, allocations: 1.345 MB / 3.554 GB, free: 99.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/6.581, allocations: 0.7059 MB / 3.555 GB, free: 98.67 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06384/6.645, allocations: 41.85 MB / 3.595 GB, free: 56.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/6.645, allocations: 30.84 kB / 3.595 GB, free: 56.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/6.645, allocations: 0 / 3.595 GB, free: 56.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004927/6.65, allocations: 1.33 MB / 3.597 GB, free: 55.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/6.65, allocations: 56.06 kB / 3.597 GB, free: 55.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/6.65, allocations: 116.5 kB / 3.597 GB, free: 55.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/6.65, allocations: 37.7 kB / 3.597 GB, free: 55.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/6.65, allocations: 116.5 kB / 3.597 GB, free: 55.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/6.65, allocations: 105.1 kB / 3.597 GB, free: 55.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/6.65, allocations: 12 kB / 3.597 GB, free: 55.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.078e-05/6.651, allocations: 326.4 kB / 3.597 GB, free: 54.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/6.651, allocations: 330.5 kB / 3.598 GB, free: 54.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/6.652, allocations: 411.2 kB / 3.598 GB, free: 54.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004866/6.652, allocations: 337.6 kB / 3.598 GB, free: 53.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/6.652, allocations: 0 / 3.598 GB, free: 53.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001513/6.654, allocations: 0.8678 MB / 3.599 GB, free: 52.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/6.654, allocations: 4 kB / 3.599 GB, free: 52.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/6.654, allocations: 4 kB / 3.599 GB, free: 52.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/6.654, allocations: 4 kB / 3.599 GB, free: 52.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/6.654, allocations: 177.7 kB / 3.6 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/6.654, allocations: 7.938 kB / 3.6 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004732/6.655, allocations: 51.52 kB / 3.6 GB, free: 52.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/6.655, allocations: 66.28 kB / 3.6 GB, free: 52.74 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 () * 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.0002075/6.655, allocations: 134.5 kB / 3.6 GB, free: 52.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.042e-05/6.655, allocations: 15.81 kB / 3.6 GB, free: 52.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005847/6.661, allocations: 7.813 MB / 3.607 GB, free: 45.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/6.661, allocations: 31.28 kB / 3.607 GB, free: 45.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/6.661, allocations: 3.891 kB / 3.607 GB, free: 45.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/6.661, allocations: 4 kB / 3.607 GB, free: 45.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/6.664, allocations: 3.506 MB / 3.611 GB, free: 42.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/6.664, allocations: 0 / 3.611 GB, free: 42.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006794/6.664, allocations: 119.9 kB / 3.611 GB, free: 42.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/6.664, allocations: 4 kB / 3.611 GB, free: 42.08 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/6.664, allocations: 11.61 kB / 3.611 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/6.664, allocations: 0 / 3.611 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/6.664, allocations: 3.984 kB / 3.611 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/6.666, allocations: 1.847 MB / 3.613 GB, free: 40.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.136e-05/6.666, allocations: 148.1 kB / 3.613 GB, free: 40.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/6.667, allocations: 11.8 kB / 3.613 GB, free: 40.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/6.667, allocations: 23.81 kB / 3.613 GB, free: 40.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/6.667, allocations: 31.3 kB / 3.613 GB, free: 40.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/6.667, allocations: 15.8 kB / 3.613 GB, free: 40.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.443e-05/6.667, allocations: 87.28 kB / 3.613 GB, free: 40.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/6.667, allocations: 0 / 3.613 GB, free: 40.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004226/6.671, allocations: 1.017 MB / 3.614 GB, free: 39.04 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: 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.009602/6.681, allocations: 3.574 MB / 3.618 GB, free: 35.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001583/6.683, allocations: 0.8958 MB / 3.618 GB, free: 34.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/6.683, allocations: 0 / 3.618 GB, free: 34.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007102/6.683, allocations: 0.5948 MB / 3.619 GB, free: 34.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/6.684, allocations: 76.53 kB / 3.619 GB, free: 34.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006686/6.691, allocations: 4.564 MB / 3.624 GB, free: 29.97 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/6.691, allocations: 0.8692 MB / 3.624 GB, free: 29.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001643/6.693, allocations: 1.756 MB / 3.626 GB, free: 28.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/6.693, allocations: 213.9 kB / 3.626 GB, free: 27.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/6.693, allocations: 0 / 3.626 GB, free: 27.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2518/6.945, allocations: 36.07 MB / 3.662 GB, free: 100.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/6.945, allocations: 184.2 kB / 3.662 GB, free: 100.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.015/9.96, allocations: 0 / 3.662 GB, free: 100.6 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