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.82/1.82, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003417, allocations: 8 kB / 233.9 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07754, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0191/0.09668, allocations: 11.35 MB / 284 MB, free: 156 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.1195, allocations: 13.04 MB / 297 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.1197, allocations: 0 / 297 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.1202, allocations: 71.7 kB / 297.1 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.1205, allocations: 103.6 kB / 297.2 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.228/0.3485, allocations: 4.557 MB / 301.7 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.349, allocations: 224 kB / 302 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.373e-05/0.3491, allocations: 11.31 kB / 302 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007025/0.3498, allocations: 235.5 kB / 302.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.35, allocations: 93.92 kB / 302.3 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.35, allocations: 6.875 kB / 302.3 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01811/0.3681, allocations: 6.607 MB / 308.9 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3683, allocations: 33.89 kB / 308.9 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.3685, allocations: 62.77 kB / 309 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007141/0.3756, allocations: 2.604 MB / 311.6 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3757, allocations: 4 kB / 311.6 MB, free: 9.742 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3757, allocations: 1.219 kB / 311.6 MB, free: 9.742 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.3757, allocations: 0 / 311.6 MB, free: 9.742 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.003769/0.3795, allocations: 0.9407 MB / 312.6 MB, free: 9.062 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3795, allocations: 9.062 kB / 312.6 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/0.3815, allocations: 185.7 kB / 312.7 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3818, allocations: 262 kB / 313 MB, free: 8.762 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.3818, allocations: 17.03 kB / 313 MB, free: 8.762 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.3819, allocations: 20.61 kB / 313 MB, free: 8.762 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006797/0.3887, allocations: 0.9087 MB / 313.9 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.3888, allocations: 3.094 kB / 313.9 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.3889, allocations: 8.625 kB / 314 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.3889, allocations: 7.094 kB / 314 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007708/0.3966, allocations: 0.9957 MB / 315 MB, free: 8.23 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.002836/0.3995, allocations: 1.353 MB / 316.3 MB, free: 7.152 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004902/0.4044, allocations: 0.7236 MB / 317 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1363/0.5408, allocations: 37.13 MB / 354.2 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.5409, allocations: 38.09 kB / 354.2 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 3.436e-06/0.5409, allocations: 0 / 354.2 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.008497/0.5494, allocations: 1.374 MB / 355.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.5494, allocations: 55.41 kB / 355.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.5496, allocations: 123.6 kB / 355.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.5497, allocations: 33.14 kB / 355.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.548e-05/0.5498, allocations: 115.8 kB / 355.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.55, allocations: 114.8 kB / 356 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.65e-05/0.5501, allocations: 6.688 kB / 356 MB, free: 15.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.5502, allocations: 328.6 kB / 356.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.5513, allocations: 344.1 kB / 356.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.5524, allocations: 416.1 kB / 357.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.5535, allocations: 336 kB / 357.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.5535, allocations: 0 / 357.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002826/0.5563, allocations: 0.8772 MB / 358.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.5564, allocations: 4.625 kB / 358.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5564, allocations: 9.125 kB / 358.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.5564, allocations: 4 kB / 358.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.5577, allocations: 185.7 kB / 358.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.5577, allocations: 6.734 kB / 358.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006862/0.5584, allocations: 44.41 kB / 358.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.5586, allocations: 63 kB / 358.6 MB, free: 13.69 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.0003263/0.5589, allocations: 150.5 kB / 358.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.5591, allocations: 15.81 kB / 358.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/0.5708, allocations: 7.759 MB / 366.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.5708, allocations: 3.984 kB / 366.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.5708, allocations: 3.625 kB / 366.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.571, allocations: 128.3 kB / 366.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.5711, allocations: 12 kB / 366.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008521/0.572, allocations: 70.83 kB / 366.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.5721, allocations: 23.97 kB / 366.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002655/0.5748, allocations: 1.014 MB / 367.8 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003434/0.5782, allocations: 1.539 MB / 369.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001028/0.5793, allocations: 480.6 kB / 369.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.298e-05/0.5794, allocations: 87.28 kB / 369.9 MB, free: 4.977 MB / 298.7 MB Notification: Performance of Backend: time 7.41e-07/0.5794, allocations: 0 / 369.9 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00989/0.5893, allocations: 1.805 MB / 371.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of SimCode: time 0.001939/0.5913, allocations: 1.327 MB / 373 MB, free: 1.938 MB / 298.7 MB Notification: Performance of Templates: time 0.0911/0.6824, allocations: 43.91 MB / 416.9 MB, free: 6.062 MB / 346.7 MB