Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.561/1.561, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.972e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.207, allocations: 38.78 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.486/6.693, allocations: 2.735 GB / 2.996 GB, free: 65.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02996/6.723, allocations: 10.74 MB / 3.007 GB, free: 64.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3833/7.106, allocations: 110.9 MB / 3.115 GB, free: 16.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.782e-06/7.106, allocations: 0 / 3.115 GB, free: 16.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/7.106, allocations: 4 kB / 3.115 GB, free: 16.93 MB / 362.7 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.004455/7.111, allocations: 1.133 MB / 3.116 GB, free: 15.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/7.111, allocations: 12.03 kB / 3.116 GB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/7.113, allocations: 183.6 kB / 3.116 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/7.113, allocations: 262.6 kB / 3.116 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/7.113, allocations: 28.38 kB / 3.116 GB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/7.113, allocations: 16 kB / 3.116 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003488/7.117, allocations: 0.9091 MB / 3.117 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/7.117, allocations: 0 / 3.117 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/7.117, allocations: 12 kB / 3.117 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.73e-06/7.117, allocations: 8 kB / 3.117 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003553/7.12, allocations: 0.9619 MB / 3.118 GB, free: 13.31 MB / 362.7 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.001697/7.122, allocations: 1.339 MB / 3.12 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/7.125, allocations: 0.7254 MB / 3.12 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/7.125, allocations: 145.3 kB / 3.12 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2876/7.413, allocations: 36.73 MB / 3.156 GB, free: 43.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/7.413, allocations: 30.84 kB / 3.156 GB, free: 43.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.764e-06/7.413, allocations: 0 / 3.156 GB, free: 43.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.005504/7.418, allocations: 1.234 MB / 3.158 GB, free: 43.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/7.418, allocations: 55.91 kB / 3.158 GB, free: 42.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/7.419, allocations: 122.3 kB / 3.158 GB, free: 42.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.942e-05/7.419, allocations: 28.95 kB / 3.158 GB, free: 42.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.533e-05/7.419, allocations: 177.4 kB / 3.158 GB, free: 42.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/7.419, allocations: 117.2 kB / 3.158 GB, free: 42.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.254e-05/7.419, allocations: 6.375 kB / 3.158 GB, free: 42.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/7.419, allocations: 329.9 kB / 3.158 GB, free: 42.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006981/7.42, allocations: 307.9 kB / 3.159 GB, free: 42.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000668/7.421, allocations: 393.7 kB / 3.159 GB, free: 42.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006479/7.421, allocations: 311.6 kB / 3.159 GB, free: 42.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.49e-06/7.421, allocations: 3.156 kB / 3.159 GB, free: 42.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002025/7.423, allocations: 0.819 MB / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/7.423, allocations: 13.47 kB / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.641e-06/7.423, allocations: 0 / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/7.423, allocations: 3.969 kB / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000903/7.424, allocations: 179.1 kB / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/7.424, allocations: 3.844 kB / 3.16 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005203/7.425, allocations: 53.52 kB / 3.16 GB, free: 42.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/7.425, allocations: 63.41 kB / 3.16 GB, free: 42.21 MB / 362.7 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.0002093/7.425, allocations: 123 kB / 3.161 GB, free: 42.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/7.425, allocations: 17.67 kB / 3.161 GB, free: 42.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00687/7.432, allocations: 6.286 MB / 3.167 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/7.432, allocations: 16.69 kB / 3.167 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.437e-06/7.432, allocations: 0 / 3.167 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/7.432, allocations: 3.797 kB / 3.167 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/7.435, allocations: 2.823 MB / 3.169 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.505e-06/7.435, allocations: 0 / 3.169 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008618/7.436, allocations: 135.1 kB / 3.17 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.69e-06/7.436, allocations: 0 / 3.17 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.025e-05/7.436, allocations: 24.77 kB / 3.17 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.349e-06/7.436, allocations: 0 / 3.17 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.523e-06/7.436, allocations: 0 / 3.17 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/7.439, allocations: 1.496 MB / 3.171 GB, free: 40.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.968e-05/7.439, allocations: 125.8 kB / 3.171 GB, free: 40.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.484e-05/7.439, allocations: 10 kB / 3.171 GB, free: 40.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/7.44, allocations: 29.28 kB / 3.171 GB, free: 40.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/7.44, allocations: 36.95 kB / 3.171 GB, free: 40.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.011e-05/7.44, allocations: 25.53 kB / 3.171 GB, free: 40.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.208e-05/7.44, allocations: 89.86 kB / 3.171 GB, free: 40.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.03e-07/7.44, allocations: 0 / 3.171 GB, free: 40.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0041/7.444, allocations: 1.003 MB / 3.172 GB, free: 40.73 MB / 362.7 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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.region3boundary,$cse7.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.007345/7.451, allocations: 1.254 MB / 3.174 GB, free: 40.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/7.453, allocations: 0.7835 MB / 3.174 GB, free: 40.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.809e-06/7.453, allocations: 0 / 3.174 GB, free: 40.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008267/7.454, allocations: 481.4 kB / 3.175 GB, free: 40.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006864/7.455, allocations: 81.03 kB / 3.175 GB, free: 40.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/7.457, allocations: 0.9109 MB / 3.176 GB, free: 40.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/7.457, allocations: 0.814 MB / 3.177 GB, free: 39.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005417/7.457, allocations: 110.6 kB / 3.177 GB, free: 39.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.099e-06/7.457, allocations: 0 / 3.177 GB, free: 39.73 MB / 362.7 MB Notification: Performance of Templates: time 0.04222/7.5, allocations: 25.56 MB / 3.202 GB, free: 37.33 MB / 362.7 MB