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.00145/0.00145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001655, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.001203/0.001203, allocations: 59.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1956, allocations: 46.63 MB / 325.3 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01518/0.2109, allocations: 13.33 MB / 338.6 MB, free: 6.551 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.2275, allocations: 15.55 MB / 354.2 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2276, allocations: 4 kB / 354.2 MB, free: 6.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003205/0.228, allocations: 75.5 kB / 354.3 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.2283, allocations: 107.3 kB / 354.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01496/0.2433, allocations: 5.94 MB / 360.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.2437, allocations: 338.6 kB / 360.6 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.112e-05/0.2437, allocations: 25.61 kB / 360.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004377/0.2442, allocations: 215.1 kB / 360.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2443, allocations: 111.5 kB / 361 MB, free: 132 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.2444, allocations: 20 kB / 361 MB, free: 112 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01133/0.2557, allocations: 6.591 MB / 367.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.969e-05/0.2558, allocations: 47.83 kB / 367.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.256, allocations: 99.59 kB / 367.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006149/0.2621, allocations: 3.91 MB / 371.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2622, allocations: 0 / 371.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2622, allocations: 0 / 371.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.2622, allocations: 0 / 371.7 MB, free: 5.449 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.002124/0.2643, allocations: 0.9869 MB / 372.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2644, allocations: 12.03 kB / 372.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.2658, allocations: 172.6 kB / 372.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.266, allocations: 260 kB / 373.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.2661, allocations: 16.8 kB / 373.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.2661, allocations: 24.31 kB / 373.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003092/0.2692, allocations: 0.909 MB / 374 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2692, allocations: 0 / 374 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.2693, allocations: 12 kB / 374 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.2693, allocations: 4 kB / 374 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003227/0.2725, allocations: 0.9695 MB / 375 MB, free: 1.984 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.001534/0.2741, allocations: 1.354 MB / 376.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002637/0.2767, allocations: 0.7284 MB / 377.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.277, allocations: 160.8 kB / 377.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07666/0.3537, allocations: 37.38 MB / 414.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3538, allocations: 34.56 kB / 414.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 3.496e-06/0.3538, allocations: 0 / 414.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005201/0.359, allocations: 1.372 MB / 416 MB, free: 4.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.359, allocations: 55.41 kB / 416.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.597e-05/0.3591, allocations: 121.8 kB / 416.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.482e-05/0.3592, allocations: 33.7 kB / 416.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.3593, allocations: 120.7 kB / 416.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.3594, allocations: 106.4 kB / 416.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.3597, allocations: 169.5 kB / 416.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3599, allocations: 326.8 kB / 416.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006276/0.3605, allocations: 343.6 kB / 417.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007221/0.3612, allocations: 411.2 kB / 417.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.3625, allocations: 0.7026 MB / 418.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3625, allocations: 0 / 418.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0018/0.3644, allocations: 0.8761 MB / 419.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3644, allocations: 4 kB / 419.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3644, allocations: 4 kB / 419.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3644, allocations: 7.938 kB / 419.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.3651, allocations: 171.8 kB / 419.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.3651, allocations: 11.97 kB / 419.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.3655, allocations: 31.62 kB / 419.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.3656, allocations: 72.14 kB / 419.6 MB, free: 0.6992 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.3658, allocations: 137.8 kB / 419.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3659, allocations: 15.81 kB / 419.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007321/0.3733, allocations: 7.978 MB / 427.7 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/0.3733, allocations: 27.95 kB / 427.7 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3733, allocations: 4 kB / 427.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3733, allocations: 0 / 427.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.3765, allocations: 3.596 MB / 431.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3765, allocations: 0 / 431.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006631/0.3772, allocations: 107.8 kB / 431.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.3772, allocations: 4 kB / 431.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.3772, allocations: 16.3 kB / 431.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3772, allocations: 0 / 431.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3772, allocations: 4 kB / 431.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.3796, allocations: 1.839 MB / 433.3 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.3797, allocations: 148 kB / 433.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.3797, allocations: 11.94 kB / 433.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.38, allocations: 11.98 kB / 433.4 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-05/0.3801, allocations: 32.03 kB / 433.5 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.3802, allocations: 15.98 kB / 433.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.653e-05/0.3803, allocations: 91.27 kB / 433.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3803, allocations: 0 / 433.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003016/0.3833, allocations: 0.9799 MB / 434.6 MB, free: 1.367 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 (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.003703/0.387, allocations: 1.131 MB / 435.7 MB, free: 232 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.3889, allocations: 0.9196 MB / 436.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.389, allocations: 8.062 kB / 436.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007323/0.3897, allocations: 0.5908 MB / 437.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.3904, allocations: 84.12 kB / 437.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.3922, allocations: 1.308 MB / 438.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.3926, allocations: 0.8575 MB / 439.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001871/0.3945, allocations: 1.787 MB / 441.2 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.3948, allocations: 87.36 kB / 441.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3949, allocations: 0 / 441.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of Templates: time 0.1836/0.5784, allocations: 40.88 MB / 482.2 MB, free: 96.66 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)