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.001412/0.001412, allocations: 111.8 kB / 17.06 MB, free: 6 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.001325/0.001326, allocations: 190.9 kB / 18 MB, free: 5.082 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.375/1.375, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.0018/0.0018, allocations: 51.92 kB / 330.2 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0971/0.09891, allocations: 46.62 MB / 376.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2167/0.3157, allocations: 13.32 MB / 390.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01629/0.332, allocations: 15.55 MB / 405.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.3323, allocations: 1.156 kB / 405.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004213/0.3328, allocations: 78.03 kB / 405.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.3332, allocations: 106.3 kB / 405.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02311/0.3564, allocations: 5.961 MB / 411.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005404/0.3569, allocations: 342.4 kB / 412.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.088e-05/0.357, allocations: 11.69 kB / 412.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004899/0.3575, allocations: 225.9 kB / 412.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.3577, allocations: 107.9 kB / 412.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.3577, allocations: 17.91 kB / 412.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01426/0.372, allocations: 6.747 MB / 419.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.3721, allocations: 44.39 kB / 419.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.3723, allocations: 105.1 kB / 419.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009978/0.3823, allocations: 3.897 MB / 423.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3824, allocations: 0 / 423.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3824, allocations: 0 / 423.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.3824, allocations: 0 / 423.3 MB, free: 14.93 MB / 350.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.002931/0.3853, allocations: 0.9836 MB / 424.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.3854, allocations: 12.03 kB / 424.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.3868, allocations: 180.5 kB / 424.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.3872, allocations: 255.2 kB / 424.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.3872, allocations: 12.81 kB / 424.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.3873, allocations: 32.03 kB / 424.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.3903, allocations: 0.9011 MB / 425.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3903, allocations: 7.938 kB / 425.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3903, allocations: 15.98 kB / 425.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3904, allocations: 4 kB / 425.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003143/0.3935, allocations: 0.9695 MB / 426.7 MB, free: 11.46 MB / 350.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.001775/0.3953, allocations: 1.342 MB / 428 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3978, allocations: 0.7323 MB / 428.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.3981, allocations: 158.2 kB / 428.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07429/0.4724, allocations: 37.54 MB / 466.4 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/0.4725, allocations: 44.48 kB / 466.5 MB, free: 15.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/0.4725, allocations: 4 kB / 466.5 MB, free: 15.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005415/0.4779, allocations: 1.362 MB / 467.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.478, allocations: 55.41 kB / 467.9 MB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.4782, allocations: 121.7 kB / 468 MB, free: 13.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.445e-05/0.4782, allocations: 33.7 kB / 468 MB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.534e-05/0.4783, allocations: 112.7 kB / 468.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.4785, allocations: 110.4 kB / 468.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003234/0.4788, allocations: 165.5 kB / 468.4 MB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.479, allocations: 326.8 kB / 468.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.4796, allocations: 343.8 kB / 469.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007303/0.4804, allocations: 403.3 kB / 469.5 MB, free: 11.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.4818, allocations: 0.7065 MB / 470.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.4818, allocations: 0 / 470.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001815/0.4836, allocations: 0.876 MB / 471 MB, free: 10.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.4837, allocations: 4 kB / 471.1 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.4837, allocations: 8.188 kB / 471.1 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.4837, allocations: 8 kB / 471.1 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006558/0.4844, allocations: 172.1 kB / 471.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.4844, allocations: 4 kB / 471.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.4848, allocations: 39.61 kB / 471.3 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4849, allocations: 63.92 kB / 471.3 MB, free: 10.06 MB / 398.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.0002663/0.4852, allocations: 141.7 kB / 471.5 MB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.4854, allocations: 15.81 kB / 471.5 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00796/0.4933, allocations: 7.974 MB / 479.5 MB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.494e-05/0.4934, allocations: 23.97 kB / 479.5 MB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4934, allocations: 0 / 479.5 MB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.4934, allocations: 7.969 kB / 479.5 MB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003433/0.4969, allocations: 3.589 MB / 483.1 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.4969, allocations: 0 / 483.1 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006712/0.4976, allocations: 118.8 kB / 483.2 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.4976, allocations: 0 / 483.2 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/0.4977, allocations: 15.92 kB / 483.2 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.4977, allocations: 4 kB / 483.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4977, allocations: 0 / 483.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.5005, allocations: 1.838 MB / 485.1 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.5006, allocations: 144.1 kB / 485.2 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.5007, allocations: 11.94 kB / 485.2 MB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002963/0.501, allocations: 12 kB / 485.2 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.5011, allocations: 31.89 kB / 485.3 MB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.5012, allocations: 15.98 kB / 485.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.155e-05/0.5013, allocations: 91.27 kB / 485.4 MB, free: 11.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5013, allocations: 0 / 485.4 MB, free: 11.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003463/0.5047, allocations: 0.9722 MB / 486.3 MB, free: 10.73 MB / 414.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.006401/0.5112, allocations: 1.136 MB / 487.5 MB, free: 9.586 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.5129, allocations: 0.9036 MB / 488.4 MB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5129, allocations: 0 / 488.4 MB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.514, allocations: 0.5907 MB / 489 MB, free: 8.094 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006715/0.5147, allocations: 76.06 kB / 489 MB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.5167, allocations: 1.315 MB / 490.4 MB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.5171, allocations: 0.8614 MB / 491.2 MB, free: 5.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002183/0.5193, allocations: 1.783 MB / 493 MB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004162/0.5197, allocations: 87.36 kB / 493.1 MB, free: 3.926 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5198, allocations: 0 / 493.1 MB, free: 3.926 MB / 414.1 MB Notification: Performance of Templates: time 0.05727/0.577, allocations: 40.83 MB / 0.5214 GB, free: 10.99 MB / 462.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)