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.0008621/0.0008619, allocations: 90.56 kB / 16.65 MB, free: 6.535 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.0008628/0.0008629, allocations: 174.9 kB / 17.56 MB, free: 6.184 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.333/1.333, allocations: 205.4 MB / 223.7 MB, free: 13.09 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.000465/0.000465, allocations: 8 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08255, allocations: 47.59 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01443/0.09702, allocations: 13.65 MB / 342 MB, free: 6.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.1142, allocations: 16.31 MB / 358.3 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1144, allocations: 7.938 kB / 358.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.1147, allocations: 75.66 kB / 358.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.115, allocations: 103.3 kB / 358.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01226/0.1272, allocations: 4.701 MB / 363.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004202/0.1277, allocations: 366.5 kB / 363.5 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.99e-05/0.1277, allocations: 21.66 kB / 363.5 MB, free: 432 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004028/0.1281, allocations: 207.2 kB / 363.7 MB, free: 224 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.1283, allocations: 107.5 kB / 363.8 MB, free: 116 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.1283, allocations: 8 kB / 363.9 MB, free: 108 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01151/0.1398, allocations: 6.676 MB / 370.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.834e-05/0.14, allocations: 35.84 kB / 370.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.1401, allocations: 125.3 kB / 370.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007601/0.1477, allocations: 3.887 MB / 374.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1478, allocations: 0 / 374.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1478, allocations: 4 kB / 374.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1478, allocations: 0 / 374.6 MB, free: 5.359 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.002252/0.1501, allocations: 0.94 MB / 375.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.1501, allocations: 12.03 kB / 375.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001367/0.1515, allocations: 184.5 kB / 375.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.1518, allocations: 256 kB / 376 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.1518, allocations: 20.81 kB / 376 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.1519, allocations: 16.38 kB / 376 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00301/0.1549, allocations: 0.9206 MB / 376.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1549, allocations: 0 / 376.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.155, allocations: 8 kB / 376.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.155, allocations: 8 kB / 376.9 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/0.1581, allocations: 0.989 MB / 377.9 MB, free: 1.906 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.0015/0.1596, allocations: 1.35 MB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1568/0.3165, allocations: 0.726 MB / 380 MB, free: 25.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/0.3168, allocations: 158.7 kB / 380.2 MB, free: 25.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06813/0.385, allocations: 37.75 MB / 417.9 MB, free: 16.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.3851, allocations: 38.28 kB / 417.9 MB, free: 16.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.404e-06/0.3851, allocations: 0 / 417.9 MB, free: 16.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.004779/0.3899, allocations: 1.377 MB / 419.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.3899, allocations: 55.41 kB / 419.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.94e-05/0.39, allocations: 117.1 kB / 419.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-05/0.3901, allocations: 33.95 kB / 419.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.3902, allocations: 120.4 kB / 419.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.3903, allocations: 117.7 kB / 419.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.446e-05/0.3904, allocations: 32.89 kB / 419.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3905, allocations: 326.7 kB / 420.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.3911, allocations: 342 kB / 420.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005725/0.3917, allocations: 415.2 kB / 420.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.3928, allocations: 0.7156 MB / 421.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3928, allocations: 0 / 421.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001454/0.3942, allocations: 0.8903 MB / 422.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3943, allocations: 8 kB / 422.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3943, allocations: 0 / 422.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3943, allocations: 4 kB / 422.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/0.3949, allocations: 183.1 kB / 422.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.3949, allocations: 8.609 kB / 422.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.3953, allocations: 43.27 kB / 422.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.792e-05/0.3954, allocations: 63.56 kB / 422.8 MB, free: 13.16 MB / 334.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.0002145/0.3956, allocations: 137.7 kB / 422.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.146e-05/0.3957, allocations: 23.75 kB / 422.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006464/0.4022, allocations: 7.978 MB / 430.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/0.4022, allocations: 27.95 kB / 430.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4022, allocations: 0 / 430.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4022, allocations: 3.984 kB / 430.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/0.4052, allocations: 3.591 MB / 434.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4052, allocations: 4 kB / 434.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006142/0.4058, allocations: 117.6 kB / 434.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.4058, allocations: 4 kB / 434.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.4059, allocations: 15.98 kB / 434.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4059, allocations: 0.8125 kB / 434.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4059, allocations: 0 / 434.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.4082, allocations: 1.854 MB / 436.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.4083, allocations: 148 kB / 436.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.4084, allocations: 14.8 kB / 436.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.4087, allocations: 20.06 kB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.4088, allocations: 35.89 kB / 436.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.4088, allocations: 18.83 kB / 436.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.803e-05/0.4089, allocations: 91.27 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4089, allocations: 0 / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00246/0.4114, allocations: 0.9775 MB / 437.8 MB, free: 1.051 MB / 334.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.00363/0.415, allocations: 1.125 MB / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.4165, allocations: 0.9097 MB / 439.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4165, allocations: 0 / 439.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007114/0.4173, allocations: 0.5966 MB / 440.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.4179, allocations: 90.33 kB / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.4198, allocations: 1.612 MB / 442.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.4201, allocations: 0.8536 MB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001844/0.422, allocations: 1.794 MB / 444.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/0.4223, allocations: 87.36 kB / 444.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4223, allocations: 0 / 444.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Templates: time 0.0525/0.4748, allocations: 40.43 MB / 485.3 MB, free: 1.801 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)