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.00171/0.00171, 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.001708/0.001708, allocations: 197.5 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.407/1.407, allocations: 205.1 MB / 222.4 MB, free: 4.559 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.00123/0.00123, allocations: 63.91 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2352, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02645/0.2617, allocations: 13.32 MB / 338.6 MB, free: 6.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02469/0.2865, allocations: 15.56 MB / 354.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.2867, allocations: 4 kB / 354.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.2871, allocations: 79.47 kB / 354.3 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003877/0.2875, allocations: 111.2 kB / 354.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01712/0.3046, allocations: 5.936 MB / 360.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.3052, allocations: 342.5 kB / 360.6 MB, free: 492 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.503e-05/0.3052, allocations: 13.69 kB / 360.7 MB, free: 480 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005116/0.3058, allocations: 227 kB / 360.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.3059, allocations: 103.6 kB / 361 MB, free: 148 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.306, allocations: 16 kB / 361 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01245/0.3184, allocations: 6.595 MB / 367.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.106e-05/0.3186, allocations: 43.84 kB / 367.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.3187, allocations: 107.6 kB / 367.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009872/0.3286, allocations: 3.903 MB / 371.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3287, allocations: 0 / 371.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3287, allocations: 0 / 371.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.986e-05/0.3287, allocations: 4 kB / 371.6 MB, free: 5.465 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.002758/0.3315, allocations: 0.9869 MB / 372.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.3315, allocations: 8.031 kB / 372.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.333, allocations: 180.5 kB / 372.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.3333, allocations: 256 kB / 373.1 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.3333, allocations: 16.81 kB / 373.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.3333, allocations: 28.36 kB / 373.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003136/0.3365, allocations: 0.905 MB / 374 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.3365, allocations: 3.938 kB / 374 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.3366, allocations: 8 kB / 374 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.3366, allocations: 4 kB / 374 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003229/0.3398, allocations: 0.9773 MB / 375 MB, free: 1.992 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.001675/0.3415, allocations: 1.358 MB / 376.4 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.3441, allocations: 0.7167 MB / 377.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.3444, allocations: 156.8 kB / 377.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07928/0.4237, allocations: 37.39 MB / 414.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/0.4238, allocations: 34.56 kB / 414.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 3.226e-06/0.4239, allocations: 7.938 kB / 414.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005589/0.4294, allocations: 1.365 MB / 416 MB, free: 4.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.4295, allocations: 55.41 kB / 416.1 MB, free: 4.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.4296, allocations: 117.8 kB / 416.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.994e-05/0.4297, allocations: 33.64 kB / 416.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.633e-05/0.4298, allocations: 112.7 kB / 416.3 MB, free: 4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.43, allocations: 118.4 kB / 416.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000277/0.4302, allocations: 161.5 kB / 416.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4304, allocations: 330.8 kB / 416.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000621/0.431, allocations: 335.6 kB / 417.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006964/0.4317, allocations: 411.3 kB / 417.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.4331, allocations: 0.699 MB / 418.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.4331, allocations: 4 kB / 418.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001826/0.4349, allocations: 0.8684 MB / 419.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.435, allocations: 7.984 kB / 419.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.435, allocations: 7.938 kB / 419.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.435, allocations: 7.938 kB / 419.3 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006503/0.4357, allocations: 175.8 kB / 419.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.4357, allocations: 11.92 kB / 419.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.436, allocations: 39.61 kB / 419.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.4362, allocations: 64.12 kB / 419.6 MB, free: 0.7148 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.000256/0.4364, allocations: 141.8 kB / 419.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.4366, allocations: 19.8 kB / 419.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008281/0.4449, allocations: 7.966 MB / 427.7 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/0.4449, allocations: 31.95 kB / 427.7 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.445, allocations: 0 / 427.7 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.445, allocations: 3.984 kB / 427.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.4482, allocations: 3.596 MB / 431.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4482, allocations: 0 / 431.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007478/0.449, allocations: 111.8 kB / 431.4 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.449, allocations: 0 / 431.4 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.449, allocations: 19.92 kB / 431.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.4491, allocations: 4 kB / 431.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4491, allocations: 0 / 431.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.4515, allocations: 1.831 MB / 433.3 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.4516, allocations: 148.1 kB / 433.4 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.052e-05/0.4517, allocations: 15.94 kB / 433.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.452, allocations: 8 kB / 433.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.792e-05/0.4521, allocations: 32.02 kB / 433.5 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/0.4521, allocations: 23.98 kB / 433.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.754e-05/0.4522, allocations: 91.22 kB / 433.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4522, allocations: 0 / 433.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002956/0.4552, allocations: 0.976 MB / 434.6 MB, free: 1.383 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.004897/0.4601, allocations: 1.139 MB / 435.7 MB, free: 240 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.4621, allocations: 0.9273 MB / 436.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.4622, allocations: 4.062 kB / 436.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008014/0.463, allocations: 0.5908 MB / 437.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.4636, allocations: 84.08 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.001895/0.4656, 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.0004435/0.466, allocations: 0.8575 MB / 439.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001933/0.468, allocations: 1.784 MB / 441.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.4683, allocations: 91.36 kB / 441.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4683, allocations: 0 / 441.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of Templates: time 0.2056/0.674, allocations: 40.87 MB / 482.2 MB, free: 96.7 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)