Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003675, allocations: 12 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07947/0.07987, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01782/0.09773, allocations: 11.39 MB / 319.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02166/0.1194, allocations: 13.12 MB / 332.9 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.1197, allocations: 4 kB / 332.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003232/0.12, allocations: 63.72 kB / 332.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.1203, allocations: 107.7 kB / 333 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01638/0.1367, allocations: 4.59 MB / 337.6 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000469/0.1372, allocations: 231.5 kB / 337.9 MB, free: 3.434 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.648e-05/0.1373, allocations: 17.69 kB / 337.9 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006253/0.1379, allocations: 227.2 kB / 338.1 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.1381, allocations: 99.59 kB / 338.2 MB, free: 3.098 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.1382, allocations: 8 kB / 338.2 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01565/0.1538, allocations: 6.645 MB / 344.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.444e-05/0.154, allocations: 35.89 kB / 344.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1541, allocations: 65.58 kB / 344.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005858/0.16, allocations: 2.616 MB / 347.6 MB, free: 9.711 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.505e-06/0.16, allocations: 4 kB / 347.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.977e-06/0.16, allocations: 0 / 347.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.521e-06/0.1601, allocations: 0 / 347.6 MB, free: 9.707 MB / 298.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.002852/0.1629, allocations: 0.9438 MB / 348.5 MB, free: 8.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.163, allocations: 12.03 kB / 348.5 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.1648, allocations: 175.6 kB / 348.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/0.1653, allocations: 266.7 kB / 349 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.1653, allocations: 20.44 kB / 349 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.134e-05/0.1654, allocations: 16 kB / 349 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003878/0.1693, allocations: 0.9128 MB / 349.9 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1693, allocations: 8 kB / 349.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.1694, allocations: 8 kB / 349.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.1694, allocations: 8 kB / 349.9 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004541/0.174, allocations: 0.9889 MB / 350.9 MB, free: 6.25 MB / 298.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.003425/0.1774, allocations: 1.335 MB / 352.2 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005818/0.1833, allocations: 0.7408 MB / 353 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3204/0.5037, allocations: 37.75 MB / 390.7 MB, free: 51.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.5038, allocations: 38.78 kB / 390.8 MB, free: 51.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.137e-06/0.5038, allocations: 0 / 390.8 MB, free: 51.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.006461/0.5103, allocations: 1.372 MB / 392.1 MB, free: 50.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.5103, allocations: 55.16 kB / 392.2 MB, free: 50.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.562e-05/0.5104, allocations: 126.7 kB / 392.3 MB, free: 50.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.143e-05/0.5105, allocations: 29.7 kB / 392.4 MB, free: 50.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.711e-05/0.5106, allocations: 185.1 kB / 392.5 MB, free: 49.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.5108, allocations: 115.9 kB / 392.6 MB, free: 49.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.575e-05/0.5109, allocations: 8 kB / 392.7 MB, free: 49.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.803e-05/0.5109, allocations: 323.6 kB / 393 MB, free: 49.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008395/0.5118, allocations: 340.6 kB / 393.3 MB, free: 49.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/0.5126, allocations: 408.5 kB / 393.7 MB, free: 49.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007735/0.5134, allocations: 350 kB / 394 MB, free: 48.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.94e-06/0.5135, allocations: 0 / 394 MB, free: 48.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002202/0.5157, allocations: 0.8727 MB / 394.9 MB, free: 48.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.5157, allocations: 8 kB / 394.9 MB, free: 48.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.868e-06/0.5157, allocations: 256 / 394.9 MB, free: 48.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.5158, allocations: 8 kB / 394.9 MB, free: 48.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007675/0.5165, allocations: 175.8 kB / 395.1 MB, free: 48.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.5166, allocations: 6.297 kB / 395.1 MB, free: 48.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.517, allocations: 39.52 kB / 395.1 MB, free: 48.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.5171, allocations: 69.05 kB / 395.2 MB, free: 48.07 MB / 314.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.0002441/0.5174, allocations: 150.7 kB / 395.4 MB, free: 47.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.5175, allocations: 15.81 kB / 395.4 MB, free: 47.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007812/0.5254, allocations: 7.976 MB / 403.4 MB, free: 39.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.114e-05/0.5254, allocations: 28.52 kB / 403.4 MB, free: 39.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.202e-06/0.5255, allocations: 0 / 403.4 MB, free: 39.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.5255, allocations: 3.953 kB / 403.4 MB, free: 39.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.5284, allocations: 3.599 MB / 407 MB, free: 36.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.829e-06/0.5285, allocations: 3.562 kB / 407 MB, free: 36.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.5292, allocations: 115.6 kB / 407.1 MB, free: 35.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.72e-06/0.5292, allocations: 0 / 407.1 MB, free: 35.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.921e-05/0.5293, allocations: 15.98 kB / 407.1 MB, free: 35.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.5293, allocations: 4 kB / 407.1 MB, free: 35.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5293, allocations: 0 / 407.1 MB, free: 35.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.532, allocations: 1.861 MB / 409 MB, free: 34.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.092e-05/0.5322, allocations: 144.2 kB / 409.1 MB, free: 33.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/0.5323, allocations: 4 kB / 409.1 MB, free: 33.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.5326, allocations: 23.89 kB / 409.1 MB, free: 33.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.5328, allocations: 31.95 kB / 409.2 MB, free: 33.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.5328, allocations: 15.98 kB / 409.2 MB, free: 33.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.528e-05/0.5329, allocations: 91.34 kB / 409.3 MB, free: 33.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.69e-07/0.5329, allocations: 0 / 409.3 MB, free: 33.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002513/0.5354, allocations: 0.9767 MB / 410.3 MB, free: 32.82 MB / 314.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: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004548/0.54, allocations: 1.135 MB / 411.4 MB, free: 31.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.5419, allocations: 0.9075 MB / 412.3 MB, free: 30.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.185e-06/0.5419, allocations: 0 / 412.3 MB, free: 30.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008421/0.5427, allocations: 0.5869 MB / 412.9 MB, free: 30.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.5434, allocations: 76.05 kB / 413 MB, free: 30.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.5455, allocations: 1.647 MB / 414.6 MB, free: 28.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.5458, allocations: 0.8651 MB / 415.5 MB, free: 27.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.5463, allocations: 95.34 kB / 415.6 MB, free: 27.62 MB / 314.7 MB Notification: Performance of SimCode: time 1.822e-06/0.5463, allocations: 0 / 415.6 MB, free: 27.62 MB / 314.7 MB Notification: Performance of Templates: time 0.04006/0.5864, allocations: 26.98 MB / 442.5 MB, free: 0.5742 MB / 314.7 MB