Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001746/0.001746, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.354/1.354, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001209/0.001209, allocations: 48.22 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09683, allocations: 46.64 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01634/0.1132, allocations: 13.33 MB / 339.9 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.1306, allocations: 15.54 MB / 355.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.1309, allocations: 4 kB / 355.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003949/0.1313, allocations: 79.48 kB / 355.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.1317, allocations: 103.3 kB / 355.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01627/0.148, allocations: 5.955 MB / 361.6 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005355/0.1485, allocations: 338.6 kB / 362 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.008e-05/0.1486, allocations: 13.69 kB / 362 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004522/0.1491, allocations: 231 kB / 362.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1492, allocations: 103.7 kB / 362.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.1493, allocations: 16 kB / 362.3 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01172/0.161, allocations: 6.599 MB / 368.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.944e-05/0.1611, allocations: 43.83 kB / 369 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.1613, allocations: 99.59 kB / 369.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008545/0.1698, allocations: 3.903 MB / 373 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1699, allocations: 0 / 373 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1699, allocations: 4 kB / 373 MB, free: 5.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1699, allocations: 0 / 373 MB, free: 5.969 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.002541/0.1725, allocations: 0.979 MB / 373.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1725, allocations: 12.03 kB / 374 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.1739, allocations: 176.5 kB / 374.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.1742, allocations: 260 kB / 374.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.1742, allocations: 24.81 kB / 374.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.1742, allocations: 16.38 kB / 374.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002947/0.1772, allocations: 0.9089 MB / 375.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1772, allocations: 0 / 375.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.1773, allocations: 12 kB / 375.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.1773, allocations: 8 kB / 375.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003103/0.1804, allocations: 0.9656 MB / 376.3 MB, free: 2.508 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.001623/0.182, allocations: 1.366 MB / 377.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.1846, allocations: 0.7245 MB / 378.4 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.1849, allocations: 152.8 kB / 378.5 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2346/0.4195, allocations: 37.4 MB / 415.9 MB, free: 24.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.4196, allocations: 42.56 kB / 416 MB, free: 24.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.4196, allocations: 0 / 416 MB, free: 24.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004873/0.4245, allocations: 1.356 MB / 417.3 MB, free: 22.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.4245, allocations: 55.41 kB / 417.4 MB, free: 22.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.36e-05/0.4246, allocations: 120.2 kB / 417.5 MB, free: 22.53 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.944e-05/0.4247, allocations: 29.7 kB / 417.5 MB, free: 22.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.4248, allocations: 117.8 kB / 417.7 MB, free: 22.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.4249, allocations: 119.9 kB / 417.8 MB, free: 22.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.4251, allocations: 161.6 kB / 417.9 MB, free: 22.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.216e-05/0.4252, allocations: 326.8 kB / 418.3 MB, free: 21.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.4257, allocations: 335.8 kB / 418.6 MB, free: 21.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.4263, allocations: 410.7 kB / 419 MB, free: 21.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.4274, allocations: 0.7197 MB / 419.7 MB, free: 20.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4274, allocations: 0 / 419.7 MB, free: 20.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001545/0.429, allocations: 0.8719 MB / 420.6 MB, free: 19.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.429, allocations: 8 kB / 420.6 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.429, allocations: 1.328 kB / 420.6 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.429, allocations: 4 kB / 420.6 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005896/0.4296, allocations: 175.7 kB / 420.8 MB, free: 19.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.4297, allocations: 6.422 kB / 420.8 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.43, allocations: 37.19 kB / 420.8 MB, free: 19.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.864e-05/0.4301, allocations: 67.88 kB / 420.9 MB, free: 19.13 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.4303, allocations: 137.7 kB / 421 MB, free: 18.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.4305, allocations: 19.8 kB / 421 MB, free: 18.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005135/0.4356, allocations: 7.969 MB / 429 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.4357, allocations: 31.89 kB / 429 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.4357, allocations: 0 / 429 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.4357, allocations: 7.812 kB / 429 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.4377, allocations: 3.591 MB / 432.6 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.4377, allocations: 4 kB / 432.6 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005844/0.4383, allocations: 115.5 kB / 432.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.4384, allocations: 0 / 432.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.4384, allocations: 11.98 kB / 432.7 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4384, allocations: 7.938 kB / 432.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.4384, allocations: 4 kB / 432.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.4403, allocations: 1.835 MB / 434.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.4404, allocations: 152.1 kB / 434.7 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.158e-05/0.4404, allocations: 4 kB / 434.7 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.4407, allocations: 20 kB / 434.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-05/0.4408, allocations: 27.95 kB / 434.8 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/0.4408, allocations: 19.98 kB / 434.8 MB, free: 4.891 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.4409, allocations: 91.27 kB / 434.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4409, allocations: 0 / 434.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002337/0.4432, allocations: 0.9712 MB / 435.9 MB, free: 3.914 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00459/0.4478, allocations: 1.126 MB / 437 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4496, allocations: 0.9276 MB / 437.9 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4496, allocations: 0 / 437.9 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.4502, allocations: 0.5908 MB / 438.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.4509, allocations: 89.3 kB / 438.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.4526, allocations: 1.308 MB / 439.9 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.4531, allocations: 0.8592 MB / 440.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002082/0.4552, allocations: 1.787 MB / 442.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.4556, allocations: 87.36 kB / 442.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4556, allocations: 0 / 442.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of Templates: time 0.05914/0.5147, allocations: 40.88 MB / 483.5 MB, free: 4.32 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)