Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.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.0007973/0.0007973, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008687/0.0008687, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.3/1.3, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.0004594/0.0004595, allocations: 8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2097, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01446/0.2242, allocations: 12.37 MB / 338.8 MB, free: 7.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.2407, allocations: 14.34 MB / 353.2 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.2409, allocations: 4 kB / 353.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.2412, allocations: 67.61 kB / 353.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003308/0.2416, allocations: 103.3 kB / 353.3 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01496/0.2565, allocations: 4.523 MB / 357.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005966/0.2572, allocations: 338.5 kB / 358.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.051e-05/0.2573, allocations: 13.69 kB / 358.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005701/0.2578, allocations: 207.1 kB / 358.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2581, allocations: 107.6 kB / 358.5 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.2581, allocations: 8 kB / 358.5 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.2712, allocations: 6.465 MB / 365 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.424e-05/0.2713, allocations: 35.89 kB / 365 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.703e-05/0.2714, allocations: 65.64 kB / 365.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004632/0.276, allocations: 2.616 MB / 367.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2761, allocations: 0 / 367.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2761, allocations: 0 / 367.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2761, allocations: 4 kB / 367.7 MB, free: 10.19 MB / 302.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.002361/0.2785, allocations: 0.9554 MB / 368.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2785, allocations: 8.031 kB / 368.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.2799, allocations: 179.6 kB / 368.9 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.2802, allocations: 262.8 kB / 369.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.2802, allocations: 16.44 kB / 369.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.2803, allocations: 20 kB / 369.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.2832, allocations: 0.9129 MB / 370.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.2832, allocations: 4 kB / 370.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.2832, allocations: 4 kB / 370.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.2832, allocations: 11.95 kB / 370.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/0.2863, allocations: 0.9851 MB / 371.1 MB, free: 6.73 MB / 302.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.001727/0.2881, allocations: 1.343 MB / 372.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.2904, allocations: 0.7292 MB / 373.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.2907, allocations: 161.3 kB / 373.3 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06946/0.3602, allocations: 37.75 MB / 411 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/0.3603, allocations: 42.8 kB / 411.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.3603, allocations: 0 / 411.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00491/0.3652, allocations: 1.37 MB / 412.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3653, allocations: 59.41 kB / 412.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.3654, allocations: 129.8 kB / 412.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.158e-05/0.3655, allocations: 33.7 kB / 412.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.3656, allocations: 112.7 kB / 412.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.3657, allocations: 118.3 kB / 412.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.3658, allocations: 12 kB / 412.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3659, allocations: 322.8 kB / 413.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.3666, allocations: 339.8 kB / 413.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000654/0.3672, allocations: 415.3 kB / 414 MB, free: 7.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006412/0.3679, allocations: 335.9 kB / 414.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3679, allocations: 4 kB / 414.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0017/0.3696, allocations: 0.872 MB / 415.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3696, allocations: 8 kB / 415.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.3696, allocations: 11.92 kB / 415.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3697, allocations: 4 kB / 415.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.3703, allocations: 175.8 kB / 415.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.3703, allocations: 7.984 kB / 415.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.3707, allocations: 43.92 kB / 415.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.3708, allocations: 63.88 kB / 415.5 MB, free: 5.629 MB / 350.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.0001893/0.371, allocations: 137.8 kB / 415.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.209e-05/0.3711, allocations: 15.89 kB / 415.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007349/0.3784, allocations: 7.982 MB / 423.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.059e-05/0.3785, allocations: 27.91 kB / 423.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3785, allocations: 0 / 423.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3785, allocations: 3.984 kB / 423.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/0.3814, allocations: 3.596 MB / 427.2 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.3814, allocations: 8.375 kB / 427.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/0.382, allocations: 111.8 kB / 427.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.382, allocations: 4 kB / 427.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.3821, allocations: 11.98 kB / 427.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3821, allocations: 7.891 kB / 427.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3821, allocations: 0 / 427.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.3845, allocations: 1.85 MB / 429.2 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.3846, allocations: 140.2 kB / 429.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.3846, allocations: 11.98 kB / 429.4 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.3849, allocations: 24.06 kB / 429.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.833e-05/0.385, allocations: 27.91 kB / 429.4 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.3851, allocations: 19.98 kB / 429.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.388e-05/0.3851, allocations: 91.27 kB / 429.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3851, allocations: 0 / 429.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002425/0.3876, allocations: 0.9799 MB / 430.5 MB, free: 6.262 MB / 366.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.004155/0.3917, allocations: 1.139 MB / 431.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.3932, allocations: 0.908 MB / 432.6 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3933, allocations: 0 / 432.6 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.394, allocations: 0.5952 MB / 433.2 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.3946, allocations: 79.92 kB / 433.2 MB, free: 3.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.3966, allocations: 1.591 MB / 434.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.3971, allocations: 0.8614 MB / 435.7 MB, free: 1.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001958/0.399, allocations: 1.78 MB / 437.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.3994, allocations: 87.34 kB / 437.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3994, allocations: 4.281 kB / 437.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of Templates: time 0.1977/0.597, allocations: 40.73 MB / 478.3 MB, free: 101.1 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)