Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.1_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.005779/0.005779, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.00122/0.00122, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.391/1.391, allocations: 205.1 MB / 222.5 MB, free: 4.465 MB / 174.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.001142/0.001142, allocations: 54.09 kB / 328.9 MB, free: 12.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09928, allocations: 46.62 MB / 375.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01521/0.1145, allocations: 13.33 MB / 388.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.1319, allocations: 15.55 MB / 404.4 MB, free: 2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.1322, allocations: 4 kB / 404.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005013/0.1328, allocations: 83.47 kB / 404.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004486/0.1332, allocations: 111.2 kB / 404.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01751/0.1508, allocations: 5.943 MB / 410.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.1514, allocations: 338.6 kB / 410.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.994e-05/0.1514, allocations: 13.69 kB / 410.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005398/0.152, allocations: 231 kB / 411.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1522, allocations: 103.6 kB / 411.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.1522, allocations: 20 kB / 411.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01204/0.1643, allocations: 6.747 MB / 417.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.507e-05/0.1644, allocations: 35.91 kB / 418 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1646, allocations: 103.5 kB / 418.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009432/0.174, allocations: 3.887 MB / 422 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.174, allocations: 4 kB / 422 MB, free: 364 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1741, allocations: 0 / 422 MB, free: 364 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.1741, allocations: 4 kB / 422 MB, free: 360 kB / 350.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.003004/0.1771, allocations: 0.9829 MB / 423 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1772, allocations: 8.031 kB / 423 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/0.1786, allocations: 180.5 kB / 423.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.1791, allocations: 256.1 kB / 423.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.1791, allocations: 20.75 kB / 423.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.1792, allocations: 28.03 kB / 423.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.1822, allocations: 0.9011 MB / 424.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.1822, allocations: 7.938 kB / 424.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.1823, allocations: 12 kB / 424.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1823, allocations: 7.984 kB / 424.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003204/0.1855, allocations: 0.9695 MB / 425.3 MB, free: 12.88 MB / 366.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.001643/0.1872, allocations: 1.335 MB / 426.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.1898, allocations: 0.7361 MB / 427.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.1901, allocations: 152.8 kB / 427.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2596/0.4497, allocations: 37.54 MB / 465.1 MB, free: 63.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.4498, allocations: 36.88 kB / 465.1 MB, free: 63.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.295e-06/0.4498, allocations: 0 / 465.1 MB, free: 63.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005203/0.455, allocations: 1.356 MB / 466.5 MB, free: 63.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.4551, allocations: 56 kB / 466.5 MB, free: 63.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.965e-05/0.4552, allocations: 130.1 kB / 466.7 MB, free: 63.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.4552, allocations: 29.77 kB / 466.7 MB, free: 63.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.4553, allocations: 116.5 kB / 466.8 MB, free: 63.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.4554, allocations: 121.7 kB / 466.9 MB, free: 62.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/0.4557, allocations: 159.4 kB / 467.1 MB, free: 62.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.075e-05/0.4557, allocations: 325.1 kB / 467.4 MB, free: 62.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005766/0.4563, allocations: 336.6 kB / 467.7 MB, free: 62.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.4569, allocations: 410.2 kB / 468.1 MB, free: 62.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.4582, allocations: 0.7103 MB / 468.8 MB, free: 62.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.4582, allocations: 2.219 kB / 468.8 MB, free: 62.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001739/0.46, allocations: 0.8688 MB / 469.7 MB, free: 62.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.46, allocations: 8 kB / 469.7 MB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.46, allocations: 2.438 kB / 469.7 MB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.4601, allocations: 11.77 kB / 469.7 MB, free: 62.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006525/0.4607, allocations: 172.6 kB / 469.9 MB, free: 62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.4607, allocations: 3.25 kB / 469.9 MB, free: 62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.4611, allocations: 38.75 kB / 469.9 MB, free: 61.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.4612, allocations: 63.09 kB / 470 MB, free: 61.94 MB / 382.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.0002076/0.4614, allocations: 145.3 kB / 470.1 MB, free: 61.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.4616, allocations: 14.81 kB / 470.2 MB, free: 61.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005939/0.4675, allocations: 7.963 MB / 478.1 MB, free: 57.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.769e-05/0.4676, allocations: 34.45 kB / 478.2 MB, free: 57.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.4676, allocations: 3.312 kB / 478.2 MB, free: 57.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.4676, allocations: 3.984 kB / 478.2 MB, free: 57.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.4698, allocations: 3.596 MB / 481.8 MB, free: 53.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4698, allocations: 3.625 kB / 481.8 MB, free: 53.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.4704, allocations: 114 kB / 481.9 MB, free: 53.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.4704, allocations: 0 / 481.9 MB, free: 53.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.4705, allocations: 8 kB / 481.9 MB, free: 53.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4705, allocations: 10.61 kB / 481.9 MB, free: 53.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4705, allocations: 0 / 481.9 MB, free: 53.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.4724, allocations: 1.844 MB / 483.7 MB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.485e-05/0.4725, allocations: 136.3 kB / 483.9 MB, free: 51.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.4725, allocations: 11.98 kB / 483.9 MB, free: 51.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.4728, allocations: 12 kB / 483.9 MB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.781e-05/0.4729, allocations: 35.2 kB / 483.9 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.473, allocations: 15.98 kB / 483.9 MB, free: 51.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.768e-05/0.4731, allocations: 91.28 kB / 484 MB, free: 51.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4731, allocations: 0 / 484 MB, free: 51.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002585/0.4757, allocations: 0.9863 MB / 485 MB, free: 50.64 MB / 382.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.004289/0.48, allocations: 1.127 MB / 486.1 MB, free: 49.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.4814, allocations: 0.9042 MB / 487 MB, free: 48.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4814, allocations: 3.844 kB / 487.1 MB, free: 48.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000621/0.482, allocations: 0.5914 MB / 487.6 MB, free: 48.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.4826, allocations: 87.62 kB / 487.7 MB, free: 48.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.4841, allocations: 1.309 MB / 489 MB, free: 46.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.4843, allocations: 0.8536 MB / 489.9 MB, free: 45.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001304/0.4856, allocations: 1.784 MB / 491.7 MB, free: 44.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.486, allocations: 91.34 kB / 491.8 MB, free: 44.04 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.486, allocations: 0 / 491.8 MB, free: 44.04 MB / 382.1 MB Notification: Performance of Templates: time 0.04043/0.5264, allocations: 40.84 MB / 0.5201 GB, free: 3.145 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)