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.001101/0.001102, allocations: 90.62 kB / 16.31 MB, free: 5.609 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.001348/0.001348, allocations: 180.5 kB / 17.21 MB, free: 5.523 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.469/1.469, allocations: 205.4 MB / 223.4 MB, free: 5.539 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.0004433/0.0004434, allocations: 11.98 kB / 280.1 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2329, allocations: 47.57 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0142/0.2471, allocations: 12.37 MB / 340.1 MB, free: 7.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01627/0.2634, allocations: 14.36 MB / 354.5 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.2637, allocations: 0 / 354.5 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003609/0.264, allocations: 55.62 kB / 354.5 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004448/0.2645, allocations: 107.3 kB / 354.6 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01701/0.2815, allocations: 4.519 MB / 359.1 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.2821, allocations: 330.6 kB / 359.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.171e-05/0.2821, allocations: 13.69 kB / 359.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005178/0.2827, allocations: 203.1 kB / 359.7 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.2829, allocations: 111.6 kB / 359.8 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.2829, allocations: 8 kB / 359.8 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01299/0.2959, allocations: 6.465 MB / 366.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-05/0.296, allocations: 39.89 kB / 366.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.2961, allocations: 61.64 kB / 366.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004998/0.3011, allocations: 2.612 MB / 369 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3012, allocations: 4 kB / 369 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3012, allocations: 0 / 369 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3012, allocations: 0 / 369 MB, free: 10.18 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.002567/0.3038, allocations: 0.9593 MB / 369.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3038, allocations: 8.031 kB / 369.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001367/0.3052, allocations: 183.6 kB / 370.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.3055, allocations: 258.7 kB / 370.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3055, allocations: 12.44 kB / 370.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/0.3056, allocations: 24 kB / 370.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.3084, allocations: 0.9128 MB / 371.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3085, allocations: 4 kB / 371.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.3085, allocations: 8 kB / 371.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3085, allocations: 11.95 kB / 371.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.3115, allocations: 0.9812 MB / 372.3 MB, free: 6.719 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.001611/0.3132, allocations: 1.347 MB / 373.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.3155, allocations: 0.7253 MB / 374.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.3158, allocations: 165.3 kB / 374.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06791/0.3837, allocations: 37.76 MB / 412.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.3838, allocations: 42.78 kB / 412.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.894e-06/0.3838, allocations: 0 / 412.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00476/0.3885, allocations: 1.37 MB / 413.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3886, allocations: 55.41 kB / 413.8 MB, free: 8.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3887, allocations: 129.8 kB / 413.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.3888, allocations: 33.7 kB / 413.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.862e-05/0.3889, allocations: 116.7 kB / 414 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.389, allocations: 114.3 kB / 414.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.3891, allocations: 8 kB / 414.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3892, allocations: 326.8 kB / 414.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005995/0.3898, allocations: 339.8 kB / 414.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006509/0.3905, allocations: 411.3 kB / 415.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/0.3911, allocations: 335.9 kB / 415.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3911, allocations: 4.375 kB / 415.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001848/0.393, allocations: 0.872 MB / 416.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.393, allocations: 11.98 kB / 416.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.393, allocations: 3.953 kB / 416.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.3931, allocations: 7.938 kB / 416.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.3937, allocations: 179.8 kB / 416.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.3937, allocations: 7.984 kB / 416.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.3941, allocations: 39.92 kB / 416.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3942, allocations: 71.86 kB / 416.7 MB, free: 5.605 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.0002282/0.3945, allocations: 137.8 kB / 416.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.934e-05/0.3945, allocations: 11.91 kB / 416.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007949/0.4025, allocations: 7.982 MB / 424.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.295e-05/0.4026, allocations: 31.91 kB / 424.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4026, allocations: 0 / 424.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.4026, allocations: 4 kB / 424.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003016/0.4056, allocations: 3.596 MB / 428.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.4056, allocations: 4 kB / 428.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006151/0.4063, allocations: 103.8 kB / 428.6 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.266e-05/0.4063, allocations: 4 kB / 428.6 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.4063, allocations: 19.98 kB / 428.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.4064, allocations: 3.953 kB / 428.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4064, allocations: 0 / 428.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.4087, allocations: 1.85 MB / 430.5 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.663e-05/0.4088, allocations: 140.2 kB / 430.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.4089, allocations: 12 kB / 430.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.4092, allocations: 24.05 kB / 430.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.581e-05/0.4093, allocations: 35.84 kB / 430.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.4094, allocations: 19.98 kB / 430.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.334e-05/0.4094, allocations: 91.22 kB / 430.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4094, allocations: 0 / 430.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002616/0.4121, allocations: 0.976 MB / 431.8 MB, free: 6.246 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.004586/0.4166, allocations: 1.131 MB / 432.9 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.4183, allocations: 0.908 MB / 433.8 MB, free: 4.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4183, allocations: 0 / 433.8 MB, free: 4.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000756/0.4191, allocations: 0.5991 MB / 434.4 MB, free: 3.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.4197, allocations: 79.92 kB / 434.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.4218, allocations: 1.595 MB / 436.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.4222, allocations: 0.8653 MB / 436.9 MB, free: 1.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002071/0.4243, allocations: 1.78 MB / 438.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.4247, allocations: 87.36 kB / 438.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4247, allocations: 0 / 438.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of Templates: time 0.1989/0.6236, allocations: 40.75 MB / 479.6 MB, free: 101.1 MB / 382.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)