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.581/1.581, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003561, allocations: 8 kB / 233.1 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06765/0.06803, allocations: 38.78 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0183/0.08638, allocations: 11.35 MB / 283.3 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.1086, allocations: 13.04 MB / 296.3 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1088, allocations: 4 kB / 296.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.1091, allocations: 63.72 kB / 296.4 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000317/0.1095, allocations: 111.6 kB / 296.5 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.197/0.3065, allocations: 4.548 MB / 301 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.3069, allocations: 224.9 kB / 301.3 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.781e-05/0.307, allocations: 11.88 kB / 301.3 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006019/0.3076, allocations: 232.9 kB / 301.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.3078, allocations: 94.12 kB / 301.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.3078, allocations: 9.391 kB / 301.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02479/0.3326, allocations: 6.6 MB / 308.2 MB, free: 10 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.3328, allocations: 36.91 kB / 308.2 MB, free: 10 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.333, allocations: 65.33 kB / 308.3 MB, free: 9.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009919/0.343, allocations: 2.605 MB / 310.9 MB, free: 9.629 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.866e-06/0.3431, allocations: 0 / 310.9 MB, free: 9.629 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.662e-06/0.3431, allocations: 0 / 310.9 MB, free: 9.629 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.481e-05/0.3431, allocations: 1.469 kB / 310.9 MB, free: 9.629 MB / 250.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.006082/0.3492, allocations: 0.9417 MB / 311.8 MB, free: 8.949 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.152e-05/0.3494, allocations: 10.09 kB / 311.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/0.3526, allocations: 189.4 kB / 312 MB, free: 8.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.3529, allocations: 255.9 kB / 312.3 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.353, allocations: 15.19 kB / 312.3 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-05/0.353, allocations: 20.94 kB / 312.3 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003516/0.3566, allocations: 0.9145 MB / 313.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3566, allocations: 2.594 kB / 313.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.3567, allocations: 10.44 kB / 313.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3567, allocations: 5.219 kB / 313.3 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003865/0.3606, allocations: 0.9939 MB / 314.2 MB, free: 8.117 MB / 250.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.001635/0.3622, allocations: 1.349 MB / 315.6 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003142/0.3654, allocations: 0.738 MB / 316.3 MB, free: 6.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09079/0.4562, allocations: 37.12 MB / 353.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.4563, allocations: 39.59 kB / 353.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 4.855e-06/0.4563, allocations: 0 / 353.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.00649/0.4628, allocations: 1.366 MB / 354.9 MB, free: 152 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.4629, allocations: 59.25 kB / 354.9 MB, free: 84 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.4631, allocations: 127.3 kB / 355 MB, free: 15.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.4632, allocations: 29.33 kB / 355.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.4633, allocations: 183.8 kB / 355.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.4636, allocations: 116.2 kB / 355.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.4637, allocations: 5.75 kB / 355.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.4638, allocations: 328.9 kB / 355.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008774/0.4647, allocations: 340.6 kB / 356 MB, free: 15.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000929/0.4657, allocations: 418.3 kB / 356.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008795/0.4666, allocations: 338.8 kB / 356.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.875e-06/0.4666, allocations: 4 kB / 356.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002384/0.469, allocations: 0.8708 MB / 357.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.4691, allocations: 12.23 kB / 357.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4691, allocations: 4 kB / 357.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.4691, allocations: 4 kB / 357.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008306/0.47, allocations: 180.2 kB / 357.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.47, allocations: 4 kB / 357.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004508/0.4704, allocations: 41.89 kB / 357.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.4706, allocations: 81.19 kB / 358 MB, free: 13.84 MB / 298.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.000307/0.4709, allocations: 137.8 kB / 358.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.4711, allocations: 15.81 kB / 358.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009953/0.4811, allocations: 7.76 MB / 365.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-05/0.4812, allocations: 27.95 kB / 365.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.98e-06/0.4812, allocations: 0 / 365.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4812, allocations: 4 kB / 365.9 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004446/0.4857, allocations: 3.521 MB / 369.4 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.586e-06/0.4857, allocations: 4 kB / 369.4 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007765/0.4865, allocations: 103.4 kB / 369.5 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.4865, allocations: 4 kB / 369.5 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.696e-05/0.4866, allocations: 11.98 kB / 369.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.4866, allocations: 0 / 369.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.099e-06/0.4866, allocations: 0 / 369.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.4898, allocations: 1.606 MB / 371.2 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.49, allocations: 132.3 kB / 371.3 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.4901, allocations: 10.91 kB / 371.3 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.4905, allocations: 24.05 kB / 371.3 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.4906, allocations: 23.97 kB / 371.3 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.056e-05/0.4907, allocations: 19.73 kB / 371.4 MB, free: 2.957 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.726e-05/0.4908, allocations: 91.27 kB / 371.4 MB, free: 2.867 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.4908, allocations: 0 / 371.4 MB, free: 2.867 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003465/0.4943, allocations: 0.9682 MB / 372.4 MB, free: 1.898 MB / 298.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.006485/0.5008, allocations: 1.134 MB / 373.5 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.503, allocations: 0.8442 MB / 374.4 MB, free: 24 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.503, allocations: 0 / 374.4 MB, free: 24 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.5041, allocations: 0.508 MB / 374.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.5048, allocations: 83.27 kB / 375 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.5073, allocations: 1.424 MB / 376.4 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.5079, allocations: 0.8338 MB / 377.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.5084, allocations: 87.36 kB / 377.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.999e-06/0.5085, allocations: 0 / 377.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of Templates: time 0.05252/0.561, allocations: 26.5 MB / 403.8 MB, free: 2.566 MB / 330.7 MB