Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_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.0009938/0.0009938, allocations: 96.39 kB / 16.93 MB, free: 5.984 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.001081/0.001081, allocations: 175.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004601/0.0004602, allocations: 15.98 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09845, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0148/0.1133, allocations: 11.44 MB / 339.9 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01532/0.1287, allocations: 13.13 MB / 353 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.1289, allocations: 0 / 353 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004213/0.1293, allocations: 67.66 kB / 353.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003413/0.1297, allocations: 103.7 kB / 353.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01511/0.1448, allocations: 4.593 MB / 357.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004722/0.1453, allocations: 215.5 kB / 358 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.572e-05/0.1454, allocations: 9.688 kB / 358 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005764/0.146, allocations: 239.1 kB / 358.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.1462, allocations: 95.67 kB / 358.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.1462, allocations: 8 kB / 358.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01281/0.159, allocations: 6.653 MB / 365 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1592, allocations: 31.89 kB / 365 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.1593, allocations: 65.62 kB / 365.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005796/0.1651, allocations: 2.608 MB / 367.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1651, allocations: 11.94 kB / 367.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1651, allocations: 0 / 367.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1651, allocations: 0 / 367.7 MB, free: 12.65 MB / 318.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.003035/0.1682, allocations: 0.9476 MB / 368.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1682, allocations: 8.031 kB / 368.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.277e-05/0.1683, allocations: 62.44 kB / 368.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/0.1698, allocations: 183.5 kB / 368.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.1702, allocations: 262.7 kB / 369.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.1702, allocations: 16.44 kB / 369.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-05/0.1703, allocations: 20 kB / 369.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/0.1733, allocations: 0.9168 MB / 370.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1734, allocations: 0 / 370.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.1734, allocations: 12 kB / 370.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1734, allocations: 7.953 kB / 370.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003084/0.1765, allocations: 0.9851 MB / 371.1 MB, free: 9.117 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.001736/0.1783, allocations: 1.343 MB / 372.4 MB, free: 7.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002401/0.1807, allocations: 0.7292 MB / 373.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.221/0.4017, allocations: 37.75 MB / 410.9 MB, free: 29.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.4018, allocations: 44.66 kB / 411 MB, free: 29.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.355e-06/0.4018, allocations: 0 / 411 MB, free: 29.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.00485/0.4067, allocations: 1.361 MB / 412.3 MB, free: 28.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.4067, allocations: 63.39 kB / 412.4 MB, free: 28.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.4069, allocations: 120.5 kB / 412.5 MB, free: 28.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-05/0.407, allocations: 29.7 kB / 412.5 MB, free: 28.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.407, allocations: 118.6 kB / 412.6 MB, free: 27.99 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.4071, allocations: 117.6 kB / 412.8 MB, free: 27.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.4072, allocations: 8 kB / 412.8 MB, free: 27.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.739e-05/0.4073, allocations: 322.8 kB / 413.1 MB, free: 27.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.4078, allocations: 347.6 kB / 413.4 MB, free: 27.22 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/0.4083, allocations: 403.3 kB / 413.8 MB, free: 26.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004952/0.4088, allocations: 351.9 kB / 414.2 MB, free: 26.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4088, allocations: 6.938 kB / 414.2 MB, free: 26.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00148/0.4103, allocations: 0.8775 MB / 415 MB, free: 25.58 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.4103, allocations: 8 kB / 415 MB, free: 25.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.4103, allocations: 0 / 415 MB, free: 25.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.4104, allocations: 4.25 kB / 415 MB, free: 25.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.411, allocations: 179.8 kB / 415.2 MB, free: 25.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.411, allocations: 4 kB / 415.2 MB, free: 25.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.4114, allocations: 35.73 kB / 415.3 MB, free: 25.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-05/0.4115, allocations: 67.92 kB / 415.3 MB, free: 25.29 MB / 318.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.0002197/0.4117, allocations: 146.4 kB / 415.5 MB, free: 25.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.639e-05/0.4118, allocations: 19.81 kB / 415.5 MB, free: 25.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005973/0.4178, allocations: 7.976 MB / 423.5 MB, free: 17.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/0.4178, allocations: 27.95 kB / 423.5 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4178, allocations: 0 / 423.5 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.4178, allocations: 0 / 423.5 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.42, allocations: 3.604 MB / 427.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.4201, allocations: 0 / 427.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.4206, allocations: 115.8 kB / 427.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.4206, allocations: 4.875 kB / 427.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.4207, allocations: 8 kB / 427.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.4207, allocations: 4 kB / 427.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4207, allocations: 0 / 427.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.4226, allocations: 1.856 MB / 429.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.31e-05/0.4227, allocations: 140.2 kB / 429.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.4227, allocations: 8 kB / 429.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.423, allocations: 28.41 kB / 429.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.4231, allocations: 27.95 kB / 429.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.4231, allocations: 19.98 kB / 429.3 MB, free: 11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.4232, allocations: 98.8 kB / 429.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4232, allocations: 3.609 kB / 429.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002609/0.4258, allocations: 0.9727 MB / 430.4 MB, free: 10.02 MB / 318.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.005982/0.4318, allocations: 3.433 MB / 433.8 MB, free: 6.723 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.4331, allocations: 0.8959 MB / 434.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.4331, allocations: 8.062 kB / 434.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005836/0.4337, allocations: 0.5986 MB / 435.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005547/0.4343, allocations: 77.34 kB / 435.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.4391, allocations: 4.488 MB / 439.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.4394, allocations: 0.8692 MB / 440.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002047/0.4415, allocations: 1.781 MB / 442.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004413/0.442, allocations: 219.3 kB / 442.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of SimCode: time 1.423e-06/0.442, allocations: 0 / 442.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07323/0.5152, allocations: 45.23 MB / 488 MB, free: 380 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.5155, allocations: 193.8 kB / 488.2 MB, free: 128 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.344/4.86, allocations: 4 kB / 488.2 MB, free: 124 kB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat