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.576/1.576, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003594, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06987/0.07025, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.619/6.69, allocations: 2.735 GB / 3.001 GB, free: 89.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02962/6.719, allocations: 10.82 MB / 3.011 GB, free: 88.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5618/7.281, allocations: 111.1 MB / 3.12 GB, free: 59.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.271e-06/7.281, allocations: 0 / 3.12 GB, free: 59.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/7.281, allocations: 0 / 3.12 GB, free: 59.5 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.004446/7.286, allocations: 1.134 MB / 3.121 GB, free: 58.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/7.286, allocations: 11.03 kB / 3.121 GB, free: 58.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001804/7.287, allocations: 184 kB / 3.121 GB, free: 58.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/7.288, allocations: 259.7 kB / 3.121 GB, free: 58.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/7.288, allocations: 17.72 kB / 3.121 GB, free: 58.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/7.288, allocations: 22.75 kB / 3.121 GB, free: 58.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/7.292, allocations: 0.8856 MB / 3.122 GB, free: 58.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/7.292, allocations: 1.406 kB / 3.122 GB, free: 58.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/7.292, allocations: 17.38 kB / 3.122 GB, free: 58.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/7.292, allocations: 5.312 kB / 3.122 GB, free: 58.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003879/7.296, allocations: 0.9686 MB / 3.123 GB, free: 58.61 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.001741/7.297, allocations: 1.352 MB / 3.124 GB, free: 57.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/7.3, allocations: 0.7168 MB / 3.125 GB, free: 57.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08063/7.381, allocations: 36.59 MB / 3.161 GB, free: 35.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/7.381, allocations: 36.25 kB / 3.161 GB, free: 35.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.543e-06/7.381, allocations: 3.844 kB / 3.161 GB, free: 35.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.006543/7.388, allocations: 1.323 MB / 3.162 GB, free: 35.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/7.388, allocations: 57.25 kB / 3.162 GB, free: 35.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/7.388, allocations: 111.2 kB / 3.162 GB, free: 35.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.804e-05/7.388, allocations: 31.48 kB / 3.162 GB, free: 35.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/7.388, allocations: 185.2 kB / 3.162 GB, free: 35.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/7.388, allocations: 117.9 kB / 3.163 GB, free: 35.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/7.388, allocations: 7.906 kB / 3.163 GB, free: 35.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.99e-05/7.388, allocations: 324 kB / 3.163 GB, free: 35.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007714/7.389, allocations: 338.3 kB / 3.163 GB, free: 35.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008417/7.39, allocations: 411.4 kB / 3.164 GB, free: 34.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008616/7.391, allocations: 333.7 kB / 3.164 GB, free: 34.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.25e-06/7.391, allocations: 0 / 3.164 GB, free: 34.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002328/7.393, allocations: 0.8607 MB / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/7.393, allocations: 7.406 kB / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.238e-06/7.393, allocations: 0 / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/7.393, allocations: 7.375 kB / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008444/7.394, allocations: 180.5 kB / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/7.394, allocations: 3.656 kB / 3.165 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/7.395, allocations: 48.03 kB / 3.165 GB, free: 34.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/7.395, allocations: 64.66 kB / 3.165 GB, free: 34.91 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.0002716/7.395, allocations: 148.1 kB / 3.165 GB, free: 34.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/7.395, allocations: 15.31 kB / 3.165 GB, free: 34.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008133/7.404, allocations: 7.582 MB / 3.173 GB, free: 33.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.253e-05/7.404, allocations: 25.16 kB / 3.173 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.899e-06/7.404, allocations: 3 kB / 3.173 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/7.404, allocations: 6.375 kB / 3.173 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/7.407, allocations: 3.432 MB / 3.176 GB, free: 31.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/7.407, allocations: 0 / 3.176 GB, free: 31.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008232/7.408, allocations: 117.7 kB / 3.176 GB, free: 31.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.106e-06/7.408, allocations: 3.75 kB / 3.176 GB, free: 31.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/7.408, allocations: 9.656 kB / 3.176 GB, free: 31.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.368e-06/7.408, allocations: 0 / 3.176 GB, free: 31.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.57e-06/7.408, allocations: 0 / 3.176 GB, free: 31.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002727/7.411, allocations: 1.596 MB / 3.178 GB, free: 30.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/7.411, allocations: 130.7 kB / 3.178 GB, free: 30.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/7.411, allocations: 6.719 kB / 3.178 GB, free: 30.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004834/7.411, allocations: 22.72 kB / 3.178 GB, free: 30.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/7.411, allocations: 29.91 kB / 3.178 GB, free: 30.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-05/7.411, allocations: 17.83 kB / 3.178 GB, free: 30.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.244e-05/7.412, allocations: 90.34 kB / 3.178 GB, free: 30.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.17e-07/7.412, allocations: 0.6562 kB / 3.178 GB, free: 30.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004043/7.416, allocations: 0.9945 MB / 3.179 GB, free: 30.46 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.007304/7.423, allocations: 1.261 MB / 3.18 GB, free: 30.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/7.425, allocations: 0.8314 MB / 3.181 GB, free: 29.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.859e-06/7.425, allocations: 0.5 kB / 3.181 GB, free: 29.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008922/7.426, allocations: 0.5046 MB / 3.181 GB, free: 29.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007164/7.427, allocations: 86.28 kB / 3.181 GB, free: 29.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/7.429, allocations: 1.414 MB / 3.183 GB, free: 28.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/7.429, allocations: 0.8314 MB / 3.184 GB, free: 27.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004528/7.429, allocations: 84.86 kB / 3.184 GB, free: 27.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.67e-06/7.429, allocations: 3.469 kB / 3.184 GB, free: 27.97 MB / 362.7 MB Notification: Performance of Templates: time 0.0404/7.47, allocations: 25.34 MB / 3.209 GB, free: 23.27 MB / 362.7 MB