Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadModel(ModelicaTest): time 1.979/1.979, allocations: 209.2 MB / 224.8 MB, free: 1.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004332, allocations: 15.98 kB / 282.5 MB, free: 9.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08847, allocations: 48.71 MB / 331.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.2547/0.3432, allocations: 32.7 MB / 363.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02921/0.3725, allocations: 17.02 MB / 380.9 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.3738, allocations: 22.81 kB / 380.9 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.3752, allocations: 393.3 kB / 381.3 MB, free: 200 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01586/0.3911, allocations: 3.953 MB / 385.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007891/0.399, allocations: 2.067 MB / 387.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.4017, allocations: 1.333 MB / 388.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008352/0.4026, allocations: 395.1 kB / 389.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01324/0.4159, allocations: 6.179 MB / 395.2 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01735/0.4333, allocations: 8.624 MB / 403.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001958/0.4335, allocations: 36 kB / 403.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01752/0.451, allocations: 6.914 MB / 410.8 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004433/0.4515, allocations: 223.3 kB / 411 MB, free: 5.105 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.4519, allocations: 185.3 kB / 411.2 MB, free: 4.918 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007882/0.4598, allocations: 3.324 MB / 414.5 MB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.4598, allocations: 0 / 414.5 MB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.926e-06/0.4599, allocations: 0 / 414.5 MB, free: 1.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.4599, allocations: 0 / 414.5 MB, free: 1.59 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004577/0.4645, allocations: 1.446 MB / 416 MB, free: 96 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.4645, allocations: 8.031 kB / 416 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/0.4666, allocations: 222.8 kB / 416.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.4679, allocations: 0.5277 MB / 416.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.4681, allocations: 104.7 kB / 416.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.4682, allocations: 67.94 kB / 416.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.471, allocations: 1.06 MB / 418 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.4711, allocations: 7.938 kB / 418 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.4712, allocations: 35.98 kB / 418 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.141e-05/0.4713, allocations: 40.98 kB / 418.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.4737, allocations: 0.8154 MB / 418.9 MB, free: 13.05 MB / 346.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.008635/0.4824, allocations: 5.539 MB / 424.4 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.4842, allocations: 0.519 MB / 424.9 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.129/0.6132, allocations: 53.95 MB / 478.9 MB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.017e-05/0.6133, allocations: 50.45 kB / 478.9 MB, free: 10.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.959e-06/0.6133, allocations: 0 / 478.9 MB, free: 10.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.008531/0.6219, allocations: 2.103 MB / 481 MB, free: 7.969 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.622, allocations: 187.9 kB / 481.2 MB, free: 7.742 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.6231, allocations: 0.6172 MB / 481.8 MB, free: 7.113 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.068e-05/0.6232, allocations: 29.7 kB / 481.9 MB, free: 7.078 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004044/0.6236, allocations: 453.3 kB / 482.3 MB, free: 6.629 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.6239, allocations: 165.7 kB / 482.5 MB, free: 6.465 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.6239, allocations: 16 kB / 482.5 MB, free: 6.449 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.6241, allocations: 338.8 kB / 482.8 MB, free: 6.109 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005861/0.6247, allocations: 237.9 kB / 483 MB, free: 5.879 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009358/0.6257, allocations: 0.6089 MB / 483.6 MB, free: 5.082 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007602/0.6265, allocations: 347.6 kB / 484 MB, free: 4.742 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.966e-06/0.6265, allocations: 4 kB / 484 MB, free: 4.738 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002091/0.6286, allocations: 0.8687 MB / 484.9 MB, free: 3.859 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.6287, allocations: 12 kB / 484.9 MB, free: 3.848 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.6287, allocations: 15.98 kB / 484.9 MB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003663/0.6324, allocations: 273.3 kB / 485.1 MB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.6341, allocations: 291.5 kB / 485.4 MB, free: 3.277 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.6366, allocations: 2.027 MB / 487.5 MB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009307/0.6375, allocations: 59.94 kB / 487.5 MB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.6377, allocations: 55.94 kB / 487.6 MB, free: 0.9805 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005764/0.6383, allocations: 277.4 kB / 487.8 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00023/0.6385, allocations: 75.09 kB / 487.9 MB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003454/0.642, allocations: 2.002 MB / 489.9 MB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.337e-05/0.6421, allocations: 27.95 kB / 489.9 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7e-06/0.6421, allocations: 4 kB / 490 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.6421, allocations: 0 / 490 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005315/0.6474, allocations: 2.984 MB / 492.9 MB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.6475, allocations: 4 kB / 492.9 MB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.6487, allocations: 183.8 kB / 493.1 MB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/0.6509, allocations: 303.9 kB / 493.4 MB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-05/0.651, allocations: 12 kB / 493.4 MB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.6535, allocations: 2.089 MB / 495.5 MB, free: 8.777 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.213e-06/0.6535, allocations: 3.938 kB / 495.5 MB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.6567, allocations: 1.928 MB / 497.4 MB, free: 6.824 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000648/0.6574, allocations: 287.3 kB / 497.7 MB, free: 6.523 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.6576, allocations: 16 kB / 497.7 MB, free: 6.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006622/0.6583, allocations: 36.05 kB / 497.8 MB, free: 6.473 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.6584, allocations: 36.33 kB / 497.8 MB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.894e-05/0.6585, allocations: 19.98 kB / 497.8 MB, free: 6.418 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.6595, allocations: 0.5498 MB / 498.4 MB, free: 5.871 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.49e-07/0.6595, allocations: 0 / 498.4 MB, free: 5.871 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003881/0.6634, allocations: 1.089 MB / 499.5 MB, free: 4.781 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005941/0.6694, allocations: 1.184 MB / 0.4889 GB, free: 3.594 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.6721, allocations: 0.9131 MB / 0.4898 GB, free: 2.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.585e-06/0.6721, allocations: 0 / 0.4898 GB, free: 2.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.6738, allocations: 0.6281 MB / 0.4904 GB, free: 2.055 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.6761, allocations: 363.4 kB / 0.4908 GB, free: 1.695 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2232/0.8994, allocations: 2.608 MB / 0.4933 GB, free: 149.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.9003, allocations: 1.108 MB / 0.4944 GB, free: 149.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.9006, allocations: 69.34 kB / 0.4945 GB, free: 149.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.63e-06/0.9006, allocations: 0 / 0.4945 GB, free: 149.2 MB / 426.7 MB Notification: Performance of Templates: time 0.06229/0.9629, allocations: 39.25 MB / 0.5328 GB, free: 126.1 MB / 426.7 MB