Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003514, allocations: 4 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08921/0.08959, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.269/8.359, allocations: 2.735 GB / 3.001 GB, free: 69.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03229/8.391, allocations: 10.82 MB / 3.012 GB, free: 61.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7405/9.132, allocations: 111.1 MB / 3.12 GB, free: 57.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/9.132, allocations: 0 / 3.12 GB, free: 57.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.579e-05/9.132, allocations: 3.844 kB / 3.12 GB, free: 57.3 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.005371/9.137, allocations: 1.141 MB / 3.121 GB, free: 56.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/9.137, allocations: 11.59 kB / 3.121 GB, free: 56.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001982/9.139, allocations: 181.7 kB / 3.121 GB, free: 56.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/9.139, allocations: 261.2 kB / 3.122 GB, free: 56.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/9.139, allocations: 19.25 kB / 3.122 GB, free: 56.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/9.14, allocations: 21.34 kB / 3.122 GB, free: 56.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004745/9.144, allocations: 0.8805 MB / 3.123 GB, free: 56.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/9.144, allocations: 6.062 kB / 3.123 GB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/9.144, allocations: 10.84 kB / 3.123 GB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/9.144, allocations: 3.969 kB / 3.123 GB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005009/9.149, allocations: 0.9733 MB / 3.124 GB, free: 56.26 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.002025/9.152, allocations: 1.351 MB / 3.125 GB, free: 55.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004009/9.156, allocations: 0.7108 MB / 3.126 GB, free: 55.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1456/9.301, allocations: 36.59 MB / 3.161 GB, free: 32.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.694e-05/9.301, allocations: 41.84 kB / 3.161 GB, free: 32.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 4.167e-06/9.301, allocations: 0 / 3.161 GB, free: 32.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.01186/9.313, allocations: 1.318 MB / 3.163 GB, free: 32.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/9.313, allocations: 58.84 kB / 3.163 GB, free: 32.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/9.313, allocations: 132 kB / 3.163 GB, free: 31.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/9.314, allocations: 29.39 kB / 3.163 GB, free: 31.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/9.314, allocations: 119.8 kB / 3.163 GB, free: 31.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/9.314, allocations: 119.2 kB / 3.163 GB, free: 31.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/9.314, allocations: 6.25 kB / 3.163 GB, free: 31.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.766e-05/9.314, allocations: 322.6 kB / 3.163 GB, free: 31.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/9.316, allocations: 342 kB / 3.164 GB, free: 31.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/9.317, allocations: 409.5 kB / 3.164 GB, free: 31.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/9.319, allocations: 339.3 kB / 3.164 GB, free: 31.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/9.319, allocations: 0 / 3.164 GB, free: 31.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004207/9.323, allocations: 0.8584 MB / 3.165 GB, free: 31.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/9.323, allocations: 7.625 kB / 3.165 GB, free: 31.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/9.323, allocations: 0 / 3.165 GB, free: 31.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.16e-05/9.323, allocations: 3.875 kB / 3.165 GB, free: 31.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/9.325, allocations: 186.8 kB / 3.165 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.358e-05/9.325, allocations: 3.812 kB / 3.165 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/9.326, allocations: 42.27 kB / 3.165 GB, free: 31.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/9.327, allocations: 68.8 kB / 3.166 GB, free: 31.29 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.0004663/9.327, allocations: 141.5 kB / 3.166 GB, free: 31.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/9.327, allocations: 15.53 kB / 3.166 GB, free: 31.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/9.342, allocations: 7.588 MB / 3.173 GB, free: 25.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.958e-05/9.342, allocations: 27.48 kB / 3.173 GB, free: 25.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/9.342, allocations: 0 / 3.173 GB, free: 25.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/9.342, allocations: 0 / 3.173 GB, free: 25.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005487/9.348, allocations: 3.428 MB / 3.176 GB, free: 22.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/9.348, allocations: 4 kB / 3.176 GB, free: 22.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/9.35, allocations: 117.6 kB / 3.177 GB, free: 22.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/9.35, allocations: 3.938 kB / 3.177 GB, free: 22.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/9.35, allocations: 8 kB / 3.177 GB, free: 22.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.617e-06/9.35, allocations: 4 kB / 3.177 GB, free: 22.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/9.35, allocations: 384 / 3.177 GB, free: 22.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/9.355, allocations: 1.597 MB / 3.178 GB, free: 20.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/9.355, allocations: 128.4 kB / 3.178 GB, free: 20.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/9.355, allocations: 11.03 kB / 3.178 GB, free: 20.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008695/9.356, allocations: 31.61 kB / 3.178 GB, free: 20.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/9.356, allocations: 30.88 kB / 3.178 GB, free: 20.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.672e-05/9.356, allocations: 15.7 kB / 3.178 GB, free: 20.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.623e-05/9.356, allocations: 87.28 kB / 3.178 GB, free: 20.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.92e-07/9.356, allocations: 0 / 3.178 GB, free: 20.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006408/9.363, allocations: 0.9897 MB / 3.179 GB, free: 19.55 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.01197/9.375, allocations: 1.258 MB / 3.181 GB, free: 18.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003382/9.378, allocations: 0.8378 MB / 3.181 GB, free: 17.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/9.378, allocations: 0 / 3.181 GB, free: 17.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/9.38, allocations: 0.5024 MB / 3.182 GB, free: 17.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/9.381, allocations: 77.48 kB / 3.182 GB, free: 17.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/9.385, allocations: 1.385 MB / 3.183 GB, free: 16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/9.385, allocations: 0.834 MB / 3.184 GB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004109/9.389, allocations: 1.743 MB / 3.186 GB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008023/9.39, allocations: 85.8 kB / 3.186 GB, free: 14.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/9.39, allocations: 4 kB / 3.186 GB, free: 14.12 MB / 362.7 MB Notification: Performance of Templates: time 0.4294/9.82, allocations: 33 MB / 3.218 GB, free: 55.86 MB / 362.7 MB