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.001356/0.001356, allocations: 104.5 kB / 17.06 MB, free: 6.145 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.001572/0.001572, allocations: 195 kB / 18 MB, free: 5.219 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.396/1.396, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001888/0.001888, allocations: 55.92 kB / 330.2 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.1003, allocations: 46.62 MB / 376.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.221/0.3214, allocations: 13.32 MB / 390.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01842/0.3398, allocations: 15.54 MB / 405.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003631/0.3403, allocations: 0 / 405.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005075/0.3408, allocations: 89.45 kB / 405.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000461/0.3413, allocations: 103.1 kB / 405.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02387/0.3652, allocations: 5.955 MB / 411.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000655/0.3659, allocations: 338.3 kB / 412.1 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.299e-05/0.3659, allocations: 15.02 kB / 412.2 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004962/0.3664, allocations: 229.3 kB / 412.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.3666, allocations: 108.1 kB / 412.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.3667, allocations: 14.22 kB / 412.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01484/0.3815, allocations: 6.743 MB / 419.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3817, allocations: 43.83 kB / 419.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.3819, allocations: 109.1 kB / 419.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.3937, allocations: 3.887 MB / 423.3 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.3938, allocations: 7.984 kB / 423.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3938, allocations: 4 kB / 423.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3938, allocations: 0 / 423.3 MB, free: 14.98 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.002874/0.3967, allocations: 0.9835 MB / 424.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3967, allocations: 8.031 kB / 424.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.3981, allocations: 172.6 kB / 424.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.3985, allocations: 250.5 kB / 424.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.3985, allocations: 28.69 kB / 424.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.3986, allocations: 32.03 kB / 424.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.4016, allocations: 0.9012 MB / 425.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.4016, allocations: 4 kB / 425.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.4017, allocations: 8 kB / 425.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4017, allocations: 12 kB / 425.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003032/0.4047, allocations: 0.9617 MB / 426.6 MB, free: 11.53 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.001573/0.4063, allocations: 1.351 MB / 428 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.4087, allocations: 0.7206 MB / 428.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.4091, allocations: 164.8 kB / 428.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07783/0.4869, allocations: 37.55 MB / 466.4 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.487, allocations: 34.56 kB / 466.5 MB, free: 15.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.294e-06/0.487, allocations: 0 / 466.5 MB, free: 15.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004988/0.492, allocations: 1.361 MB / 467.8 MB, free: 13.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.4921, allocations: 55.41 kB / 467.9 MB, free: 13.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.4922, allocations: 129.7 kB / 468 MB, free: 13.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.4922, allocations: 29.7 kB / 468 MB, free: 13.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.4923, allocations: 112.7 kB / 468.1 MB, free: 13.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.4924, allocations: 110.4 kB / 468.2 MB, free: 13.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002824/0.4927, allocations: 165.5 kB / 468.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.4928, allocations: 322.8 kB / 468.7 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.4934, allocations: 335.8 kB / 469 MB, free: 12.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006847/0.4941, allocations: 415.6 kB / 469.5 MB, free: 12.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.4954, allocations: 0.7025 MB / 470.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4954, allocations: 6.875 kB / 470.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001772/0.4972, allocations: 0.8769 MB / 471 MB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4972, allocations: 11.94 kB / 471 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.4972, allocations: 3.938 kB / 471.1 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4973, allocations: 4 kB / 471.1 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006464/0.4979, allocations: 172 kB / 471.2 MB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.4979, allocations: 11.98 kB / 471.2 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.4983, allocations: 31.69 kB / 471.3 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.4984, allocations: 67.92 kB / 471.3 MB, free: 10.11 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.0002116/0.4986, allocations: 133.8 kB / 471.5 MB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4987, allocations: 15.81 kB / 471.5 MB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007088/0.5058, allocations: 7.977 MB / 479.5 MB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.203e-05/0.5059, allocations: 31.94 kB / 479.5 MB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5059, allocations: 0 / 479.5 MB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5059, allocations: 0 / 479.5 MB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.5088, allocations: 3.592 MB / 483.1 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.5088, allocations: 4 kB / 483.1 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/0.5094, allocations: 107.8 kB / 483.2 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.5094, allocations: 0 / 483.2 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.5095, allocations: 19.92 kB / 483.2 MB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.5095, allocations: 4 kB / 483.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5095, allocations: 0 / 483.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.5118, allocations: 1.838 MB / 485.1 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.5119, allocations: 148.1 kB / 485.2 MB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.512, allocations: 15.94 kB / 485.2 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.5123, allocations: 17.86 kB / 485.2 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.23e-05/0.5124, allocations: 27.95 kB / 485.3 MB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.5124, allocations: 16 kB / 485.3 MB, free: 11.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.733e-05/0.5125, allocations: 95.2 kB / 485.4 MB, free: 11.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5125, allocations: 0 / 485.4 MB, free: 11.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003004/0.5155, allocations: 0.9722 MB / 486.3 MB, free: 10.77 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.003706/0.5192, allocations: 1.121 MB / 487.5 MB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.5208, allocations: 0.9075 MB / 488.4 MB, free: 8.734 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5208, allocations: 0 / 488.4 MB, free: 8.734 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00072/0.5215, allocations: 0.5908 MB / 489 MB, free: 8.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.5222, allocations: 82.5 kB / 489 MB, free: 8.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.524, allocations: 1.318 MB / 490.4 MB, free: 6.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.5244, allocations: 0.8536 MB / 491.2 MB, free: 5.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001757/0.5261, allocations: 1.78 MB / 493 MB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.5265, allocations: 87.36 kB / 493.1 MB, free: 3.977 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5265, allocations: 0 / 493.1 MB, free: 3.977 MB / 414.1 MB Notification: Performance of Templates: time 0.05736/0.5838, allocations: 41.05 MB / 0.5216 GB, free: 10.82 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)