Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.664/1.664, allocations: 171.1 MB / 187.3 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004958, allocations: 15.98 kB / 233.8 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08151/0.08204, allocations: 38.76 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.118/8.2, allocations: 2.735 GB / 3.001 GB, free: 80.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0336/8.234, allocations: 10.82 MB / 3.012 GB, free: 71.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7526/8.986, allocations: 111.1 MB / 3.12 GB, free: 58.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/8.986, allocations: 0 / 3.12 GB, free: 58.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.411e-05/8.986, allocations: 3.844 kB / 3.12 GB, free: 58.15 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.005638/8.992, allocations: 1.134 MB / 3.121 GB, free: 57.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/8.992, allocations: 11.62 kB / 3.121 GB, free: 57.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/8.994, allocations: 183.8 kB / 3.121 GB, free: 57.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/8.994, allocations: 261.3 kB / 3.122 GB, free: 57.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/8.994, allocations: 17.16 kB / 3.122 GB, free: 57.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/8.994, allocations: 20.28 kB / 3.122 GB, free: 57.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/8.999, allocations: 0.8902 MB / 3.123 GB, free: 57.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/8.999, allocations: 0 / 3.123 GB, free: 57.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/8.999, allocations: 19.81 kB / 3.123 GB, free: 57.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/8.999, allocations: 3.875 kB / 3.123 GB, free: 57.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004964/9.004, allocations: 0.9701 MB / 3.123 GB, free: 57.12 MB / 362.7 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.002015/9.006, allocations: 1.346 MB / 3.125 GB, free: 56.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/9.01, allocations: 0.7075 MB / 3.125 GB, free: 56.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1167/9.127, allocations: 36.59 MB / 3.161 GB, free: 33.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/9.127, allocations: 30.84 kB / 3.161 GB, free: 33.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/9.127, allocations: 0 / 3.161 GB, free: 33.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00803/9.135, allocations: 1.331 MB / 3.163 GB, free: 33.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/9.135, allocations: 55.53 kB / 3.163 GB, free: 32.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/9.135, allocations: 126.5 kB / 3.163 GB, free: 32.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/9.135, allocations: 32.17 kB / 3.163 GB, free: 32.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/9.135, allocations: 185.9 kB / 3.163 GB, free: 32.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/9.136, allocations: 113.4 kB / 3.163 GB, free: 32.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/9.136, allocations: 14.53 kB / 3.163 GB, free: 32.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.693e-05/9.136, allocations: 323 kB / 3.163 GB, free: 32.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009921/9.137, allocations: 337.8 kB / 3.164 GB, free: 32.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/9.138, allocations: 408.1 kB / 3.164 GB, free: 32.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009721/9.139, allocations: 336.3 kB / 3.164 GB, free: 32.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/9.139, allocations: 3.188 kB / 3.164 GB, free: 32.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002797/9.142, allocations: 0.8629 MB / 3.165 GB, free: 32.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/9.142, allocations: 5.781 kB / 3.165 GB, free: 32.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/9.142, allocations: 3.781 kB / 3.165 GB, free: 32.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/9.142, allocations: 7.844 kB / 3.165 GB, free: 32.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/9.143, allocations: 172.5 kB / 3.165 GB, free: 32.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/9.143, allocations: 10.98 kB / 3.165 GB, free: 32.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/9.144, allocations: 44.25 kB / 3.165 GB, free: 32.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001784/9.144, allocations: 67.67 kB / 3.166 GB, free: 32.09 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003061/9.144, allocations: 135.1 kB / 3.166 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/9.144, allocations: 19.25 kB / 3.166 GB, free: 31.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009699/9.154, allocations: 7.592 MB / 3.173 GB, free: 29.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/9.154, allocations: 18.5 kB / 3.173 GB, free: 29.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/9.154, allocations: 3.938 kB / 3.173 GB, free: 29.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/9.154, allocations: 3.75 kB / 3.173 GB, free: 29.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/9.158, allocations: 3.424 MB / 3.176 GB, free: 26.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/9.158, allocations: 5.547 kB / 3.176 GB, free: 26.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/9.159, allocations: 117 kB / 3.177 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/9.159, allocations: 0 / 3.177 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-05/9.159, allocations: 11.61 kB / 3.177 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/9.159, allocations: 3.938 kB / 3.177 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/9.159, allocations: 4 kB / 3.177 GB, free: 26.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00311/9.163, allocations: 1.59 MB / 3.178 GB, free: 26.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/9.163, allocations: 135.1 kB / 3.178 GB, free: 26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/9.163, allocations: 7.344 kB / 3.178 GB, free: 26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005902/9.163, allocations: 22.58 kB / 3.178 GB, free: 25.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/9.163, allocations: 25.88 kB / 3.178 GB, free: 25.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/9.164, allocations: 15.06 kB / 3.178 GB, free: 25.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.11e-05/9.164, allocations: 98.08 kB / 3.178 GB, free: 25.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/9.164, allocations: 0 / 3.178 GB, free: 25.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004983/9.169, allocations: 0.992 MB / 3.179 GB, free: 25.34 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: 11 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.008423/9.177, allocations: 1.255 MB / 3.181 GB, free: 24.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00225/9.179, allocations: 0.8396 MB / 3.181 GB, free: 23.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/9.179, allocations: 0 / 3.181 GB, free: 23.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009926/9.18, allocations: 0.5017 MB / 3.182 GB, free: 23.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000871/9.181, allocations: 85.73 kB / 3.182 GB, free: 23.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/9.184, allocations: 1.417 MB / 3.183 GB, free: 21.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/9.184, allocations: 0.8344 MB / 3.184 GB, free: 20.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005895/9.185, allocations: 89.7 kB / 3.184 GB, free: 20.87 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/9.185, allocations: 0 / 3.184 GB, free: 20.87 MB / 362.7 MB Notification: Performance of Templates: time 0.05191/9.236, allocations: 25.33 MB / 3.209 GB, free: 5.676 MB / 362.7 MB