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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001082/0.001082, allocations: 182.5 kB / 8.349 MB, free: 0.7031 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.542/1.542, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001831/0.001831, allocations: 118.1 kB / 248.1 MB, free: 6.367 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.181e-05/2.185e-05, allocations: 7.984 kB / 298.1 MB, free: 8.254 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1185, allocations: 44.49 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.343/7.462, allocations: 2.844 GB / 3.178 GB, free: 88.03 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02082/7.483, allocations: 10.83 MB / 3.189 GB, free: 82.77 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5395/8.022, allocations: 110.5 MB / 3.297 GB, free: 64.34 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.653e-06/8.022, allocations: 0 / 3.297 GB, free: 64.34 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.739e-05/8.023, allocations: 7.156 kB / 3.297 GB, free: 64.34 MB / 395.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.005291/8.028, allocations: 1.137 MB / 3.298 GB, free: 63.68 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/8.028, allocations: 9.5 kB / 3.298 GB, free: 63.68 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/8.029, allocations: 184.9 kB / 3.298 GB, free: 63.67 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/8.03, allocations: 257.3 kB / 3.298 GB, free: 63.46 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/8.03, allocations: 6.688 kB / 3.298 GB, free: 63.46 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/8.03, allocations: 13.97 kB / 3.298 GB, free: 63.46 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004847/8.03, allocations: 342.2 kB / 3.299 GB, free: 63.46 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004035/8.031, allocations: 281 kB / 3.299 GB, free: 63.4 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/8.031, allocations: 0.9375 kB / 3.299 GB, free: 63.4 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/8.031, allocations: 8.469 kB / 3.299 GB, free: 63.39 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/8.031, allocations: 7.953 kB / 3.299 GB, free: 63.39 MB / 395.1 MB Warning: The model contains alias variables with conflicting start and/or 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.001446/8.032, allocations: 1.293 MB / 3.3 GB, free: 62.5 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/8.032, allocations: 246.6 kB / 3.3 GB, free: 62.48 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/8.033, allocations: 130.7 kB / 3.301 GB, free: 62.47 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06983/8.102, allocations: 37.36 MB / 3.337 GB, free: 39.36 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/8.103, allocations: 39.81 kB / 3.337 GB, free: 39.32 MB / 395.1 MB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/8.103, allocations: 4 kB / 3.337 GB, free: 39.31 MB / 395.1 MB Notification: Performance of matching and sorting (n=33): time 0.002889/8.105, allocations: 0.792 MB / 3.338 GB, free: 39.27 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/8.106, allocations: 54.31 kB / 3.338 GB, free: 39.2 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/8.106, allocations: 108.2 kB / 3.338 GB, free: 39.11 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 6.371e-05/8.106, allocations: 25.7 kB / 3.338 GB, free: 39.08 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/8.106, allocations: 120.7 kB / 3.338 GB, free: 38.98 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/8.106, allocations: 111.7 kB / 3.338 GB, free: 38.9 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.652e-05/8.106, allocations: 0 / 3.338 GB, free: 38.9 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 7.973e-05/8.106, allocations: 326.1 kB / 3.339 GB, free: 38.59 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004304/8.107, allocations: 312 kB / 3.339 GB, free: 38.59 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004807/8.107, allocations: 371.8 kB / 3.339 GB, free: 38.51 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/8.109, allocations: 426.6 kB / 3.34 GB, free: 38.5 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/8.109, allocations: 0 / 3.34 GB, free: 38.5 MB / 395.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002826/8.112, allocations: 0.8953 MB / 3.341 GB, free: 38.46 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/8.112, allocations: 4.594 kB / 3.341 GB, free: 38.46 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/8.112, allocations: 7.312 kB / 3.341 GB, free: 38.46 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/8.112, allocations: 7.906 kB / 3.341 GB, free: 38.46 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/8.113, allocations: 179.5 kB / 3.341 GB, free: 38.46 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/8.113, allocations: 11.62 kB / 3.341 GB, free: 38.45 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/8.113, allocations: 34.95 kB / 3.341 GB, free: 38.44 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/8.113, allocations: 63.31 kB / 3.341 GB, free: 38.44 MB / 395.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 () * 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.0002022/8.113, allocations: 118.5 kB / 3.341 GB, free: 38.33 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-05/8.113, allocations: 15.44 kB / 3.341 GB, free: 38.32 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005791/8.119, allocations: 6.509 MB / 3.347 GB, free: 38.12 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/8.119, allocations: 25.08 kB / 3.347 GB, free: 38.12 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/8.119, allocations: 1.219 kB / 3.347 GB, free: 38.12 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/8.119, allocations: 7.75 kB / 3.347 GB, free: 38.11 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/8.121, allocations: 2.81 MB / 3.35 GB, free: 37.15 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/8.121, allocations: 3.797 kB / 3.35 GB, free: 37.15 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006395/8.122, allocations: 127.1 kB / 3.35 GB, free: 37.13 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/8.122, allocations: 3.938 kB / 3.35 GB, free: 37.13 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.27e-05/8.122, allocations: 18.75 kB / 3.35 GB, free: 37.12 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/8.122, allocations: 1.188 kB / 3.35 GB, free: 37.12 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/8.122, allocations: 0 / 3.35 GB, free: 37.12 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/8.124, allocations: 1.758 MB / 3.352 GB, free: 36.25 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-05/8.124, allocations: 137.1 kB / 3.352 GB, free: 36.12 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/8.125, allocations: 4.062 kB / 3.352 GB, free: 36.11 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/8.125, allocations: 14.55 kB / 3.352 GB, free: 36.11 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/8.125, allocations: 41.89 kB / 3.352 GB, free: 36.11 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/8.125, allocations: 26.28 kB / 3.352 GB, free: 36.1 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.561e-05/8.125, allocations: 90.02 kB / 3.352 GB, free: 36.02 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.81e-07/8.125, allocations: 0 / 3.352 GB, free: 36.02 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004704/8.13, allocations: 0.9874 MB / 3.353 GB, free: 35.82 MB / 395.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.005866/8.136, allocations: 1.279 MB / 3.354 GB, free: 35.47 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/8.137, allocations: 0.8311 MB / 3.355 GB, free: 35.13 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/8.137, allocations: 0 / 3.355 GB, free: 35.13 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005441/8.137, allocations: 0.5541 MB / 3.356 GB, free: 34.86 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/8.138, allocations: 72.45 kB / 3.356 GB, free: 34.85 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/8.14, allocations: 1.011 MB / 3.357 GB, free: 34.34 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/8.14, allocations: 0.8503 MB / 3.358 GB, free: 33.64 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.00244/8.142, allocations: 2.743 MB / 3.36 GB, free: 33.54 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/8.143, allocations: 91.16 kB / 3.36 GB, free: 33.51 MB / 395.1 MB Notification: Performance of SimCode: time 5.31e-07/8.143, allocations: 4 kB / 3.36 GB, free: 33.51 MB / 395.1 MB Notification: Performance of Templates: time 0.03677/8.179, allocations: 29.37 MB / 3.389 GB, free: 26.2 MB / 395.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)