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.Tests.MediaTestModels.Water.WaterIF97_ph.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.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadModel(Modelica): time 1.678/1.678, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 12 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1041, allocations: 38.77 MB / 271.9 MB, free: 12.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.0395/0.1436, allocations: 26.92 MB / 298.9 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1986/0.3422, allocations: 13.18 MB / 312 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003122/0.3426, allocations: 5.656 kB / 312 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007386/0.3433, allocations: 229.5 kB / 312.3 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005948/0.3439, allocations: 255.8 kB / 312.5 MB, free: 9.289 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0149/0.3588, allocations: 4.484 MB / 317 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3599, allocations: 0.5936 MB / 317.6 MB, free: 9.121 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.3601, allocations: 83.12 kB / 317.7 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006314/0.3664, allocations: 3.236 MB / 320.9 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.3668, allocations: 191.2 kB / 321.1 MB, free: 8.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.3668, allocations: 16.78 kB / 321.1 MB, free: 8.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0121/0.3789, allocations: 5.886 MB / 327 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.3791, allocations: 81.39 kB / 327.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3793, allocations: 106.7 kB / 327.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004173/0.3835, allocations: 2.564 MB / 329.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3835, allocations: 0 / 329.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.441e-06/0.3836, allocations: 0 / 329.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.171e-06/0.3836, allocations: 0 / 329.7 MB, free: 4.242 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001877/0.3855, allocations: 0.9504 MB / 330.7 MB, free: 3.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.3855, allocations: 12.03 kB / 330.7 MB, free: 3.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.387, allocations: 159.5 kB / 330.9 MB, free: 3.078 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.3874, allocations: 317.6 kB / 331.2 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.3875, allocations: 28.66 kB / 331.2 MB, free: 2.703 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.3875, allocations: 32 kB / 331.2 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.3893, allocations: 0.5659 MB / 331.8 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.3893, allocations: 7.938 kB / 331.8 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.3894, allocations: 16 kB / 331.8 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.904e-06/0.3894, allocations: 8 kB / 331.8 MB, free: 2.043 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.3914, allocations: 0.5329 MB / 332.4 MB, free: 1.508 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.003417/0.3949, allocations: 2.62 MB / 335 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.3968, allocations: 478.3 kB / 335.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009933/0.3978, allocations: 0.5667 MB / 336 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.3979, allocations: 34.56 kB / 336.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.962e-06/0.3979, allocations: 0 / 336.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=34): time 0.006178/0.4041, allocations: 1.607 MB / 337.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.4041, allocations: 55.41 kB / 337.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.4045, allocations: 248.9 kB / 338 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.4046, allocations: 29.7 kB / 338 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.4048, allocations: 242.5 kB / 338.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.4049, allocations: 121.4 kB / 338.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.405, allocations: 12 kB / 338.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.4051, allocations: 322.8 kB / 338.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005299/0.4057, allocations: 152.8 kB / 338.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.4063, allocations: 247.4 kB / 339.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005665/0.4069, allocations: 167.9 kB / 339.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.112e-06/0.4069, allocations: 8 kB / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00173/0.4087, allocations: 0.5152 MB / 339.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.4087, allocations: 7.953 kB / 339.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4087, allocations: 4 kB / 339.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.4094, allocations: 118.8 kB / 339.9 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.4099, allocations: 91.83 kB / 340 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.4126, allocations: 2.428 MB / 342.4 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.4131, allocations: 57.73 kB / 342.4 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.4131, allocations: 20 kB / 342.5 MB, free: 6.699 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002662/0.4134, allocations: 154 kB / 342.6 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.72e-05/0.4135, allocations: 31.62 kB / 342.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.4162, allocations: 1.375 MB / 344 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.4162, allocations: 19.97 kB / 344 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.773e-06/0.4162, allocations: 3.953 kB / 344 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002401/0.4187, allocations: 1.456 MB / 345.5 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/0.4225, allocations: 2.137 MB / 347.6 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.843e-06/0.4226, allocations: 0.625 kB / 347.6 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005217/0.4231, allocations: 107.9 kB / 347.7 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004808/0.4236, allocations: 84.59 kB / 347.8 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-05/0.4237, allocations: 11.98 kB / 347.8 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005629/0.4242, allocations: 0.5914 MB / 348.4 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.24e-06/0.4243, allocations: 0 / 348.4 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.427, allocations: 1.313 MB / 349.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.4272, allocations: 164.2 kB / 349.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.941e-05/0.4273, allocations: 11.92 kB / 349.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.4277, allocations: 43.97 kB / 350 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4278, allocations: 31.95 kB / 350 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/0.4279, allocations: 15.98 kB / 350 MB, free: 14.92 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000358/0.4283, allocations: 239 kB / 350.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.85e-07/0.4283, allocations: 0 / 350.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002637/0.4309, allocations: 0.8512 MB / 351.1 MB, free: 13.84 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004512/0.4355, allocations: 0.9699 MB / 352.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.4374, allocations: 0.6581 MB / 352.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.663e-06/0.4374, allocations: 0 / 352.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009662/0.4384, allocations: 426 kB / 353.1 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.4396, allocations: 196.2 kB / 353.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.4425, allocations: 1.584 MB / 354.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006485/0.4432, allocations: 0.8921 MB / 355.8 MB, free: 9.133 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.4433, allocations: 35.44 kB / 355.8 MB, free: 9.098 MB / 282.7 MB Notification: Performance of SimCode: time 1.605e-06/0.4433, allocations: 0 / 355.8 MB, free: 9.098 MB / 282.7 MB Notification: Performance of Templates: time 0.04917/0.4925, allocations: 26.99 MB / 382.8 MB, free: 14.08 MB / 314.7 MB