Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadModel(ModelicaTest): time 2.248/2.248, allocations: 234.9 MB / 250.5 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009644/0.0009648, allocations: 12 kB / 314.3 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4102, allocations: 54.87 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.0796/0.4899, allocations: 32.95 MB / 402.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02922/0.5192, allocations: 17.18 MB / 419.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.5203, allocations: 23.81 kB / 419.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.5217, allocations: 394.1 kB / 419.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.5359, allocations: 3.993 MB / 423.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007615/0.5435, allocations: 2.108 MB / 425.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.5462, allocations: 1.36 MB / 427.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008049/0.547, allocations: 401.3 kB / 427.6 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01436/0.5614, allocations: 6.245 MB / 433.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01714/0.5786, allocations: 8.725 MB / 442.6 MB, free: 3.242 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001884/0.5788, allocations: 32 kB / 442.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01711/0.5959, allocations: 7.027 MB / 449.6 MB, free: 12.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000457/0.5964, allocations: 223.3 kB / 449.8 MB, free: 11.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003717/0.5968, allocations: 185.3 kB / 450 MB, free: 11.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007366/0.6042, allocations: 3.356 MB / 453.4 MB, free: 8.406 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.435e-06/0.6042, allocations: 0 / 453.4 MB, free: 8.406 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.092e-06/0.6043, allocations: 7.984 kB / 453.4 MB, free: 8.398 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.6043, allocations: 0 / 453.4 MB, free: 8.398 MB / 378.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.004401/0.6087, allocations: 1.465 MB / 454.8 MB, free: 6.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.6087, allocations: 12.03 kB / 454.9 MB, free: 6.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/0.6107, allocations: 230.8 kB / 455.1 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.6118, allocations: 0.5238 MB / 455.6 MB, free: 6.078 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.612, allocations: 112.7 kB / 455.7 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.6122, allocations: 55.98 kB / 455.8 MB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.6148, allocations: 1.064 MB / 456.8 MB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.6149, allocations: 11.94 kB / 456.8 MB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.615, allocations: 31.98 kB / 456.9 MB, free: 4.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.869e-05/0.6151, allocations: 40.98 kB / 456.9 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.6175, allocations: 0.8154 MB / 457.7 MB, free: 3.824 MB / 378.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.008185/0.6257, allocations: 5.538 MB / 463.3 MB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.6274, allocations: 0.5209 MB / 463.8 MB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3855/1.013, allocations: 54.07 MB / 0.5057 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/1.013, allocations: 38.31 kB / 0.5058 GB, free: 121.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 3.724e-06/1.013, allocations: 0.6562 kB / 0.5058 GB, free: 121.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.008392/1.021, allocations: 2.105 MB / 0.5078 GB, free: 119.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/1.021, allocations: 187.9 kB / 0.508 GB, free: 119.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/1.022, allocations: 0.6215 MB / 0.5086 GB, free: 118.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/1.022, allocations: 33.7 kB / 0.5086 GB, free: 118.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/1.023, allocations: 439.4 kB / 0.5091 GB, free: 118.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/1.023, allocations: 173.8 kB / 0.5092 GB, free: 118.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/1.023, allocations: 19.56 kB / 0.5092 GB, free: 118.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.778e-05/1.023, allocations: 351.1 kB / 0.5096 GB, free: 117.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/1.023, allocations: 221.9 kB / 0.5098 GB, free: 117.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006162/1.024, allocations: 0.6122 MB / 0.5104 GB, free: 116.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000613/1.025, allocations: 342.8 kB / 0.5107 GB, free: 116.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.29e-06/1.025, allocations: 4 kB / 0.5107 GB, free: 116.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001669/1.026, allocations: 0.8771 MB / 0.5116 GB, free: 115.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/1.026, allocations: 12.62 kB / 0.5116 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/1.026, allocations: 19.59 kB / 0.5116 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/1.03, allocations: 272.5 kB / 0.5119 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/1.031, allocations: 290.8 kB / 0.5121 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/1.033, allocations: 2.028 MB / 0.5141 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/1.035, allocations: 63.89 kB / 0.5142 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/1.035, allocations: 44 kB / 0.5142 GB, free: 112.8 MB / 426.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.0007281/1.036, allocations: 273.7 kB / 0.5145 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/1.036, allocations: 67.25 kB / 0.5145 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/1.04, allocations: 2.021 MB / 0.5165 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.884e-05/1.04, allocations: 19.97 kB / 0.5165 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.098e-06/1.04, allocations: 0 / 0.5165 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/1.04, allocations: 7.938 kB / 0.5165 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00594/1.046, allocations: 2.983 MB / 0.5195 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/1.046, allocations: 0 / 0.5195 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/1.048, allocations: 187.8 kB / 0.5196 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/1.05, allocations: 311.8 kB / 0.5199 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-05/1.05, allocations: 15.95 kB / 0.5199 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001679/1.052, allocations: 2.085 MB / 0.522 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/1.052, allocations: 0 / 0.522 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003667/1.055, allocations: 1.924 MB / 0.5239 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008739/1.056, allocations: 279.5 kB / 0.5241 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/1.056, allocations: 8 kB / 0.5241 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/1.058, allocations: 35.88 kB / 0.5242 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/1.058, allocations: 46.95 kB / 0.5242 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-05/1.058, allocations: 16 kB / 0.5242 GB, free: 102.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001415/1.059, allocations: 0.5537 MB / 0.5248 GB, free: 101.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.438e-06/1.059, allocations: 0 / 0.5248 GB, free: 101.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005793/1.065, allocations: 1.095 MB / 0.5258 GB, free: 100.7 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.009358/1.075, allocations: 1.209 MB / 0.527 GB, free: 99.67 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002752/1.077, allocations: 0.9085 MB / 0.5279 GB, free: 98.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.096e-06/1.077, allocations: 0.8125 kB / 0.5279 GB, free: 98.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/1.079, allocations: 0.632 MB / 0.5285 GB, free: 98.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/1.081, allocations: 363.6 kB / 0.5289 GB, free: 97.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/1.085, allocations: 2.617 MB / 0.5314 GB, free: 95.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/1.085, allocations: 1.109 MB / 0.5325 GB, free: 94.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/1.086, allocations: 71.42 kB / 0.5326 GB, free: 93.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.564e-06/1.086, allocations: 0 / 0.5326 GB, free: 93.94 MB / 426.7 MB Notification: Performance of Templates: time 0.05959/1.145, allocations: 39.43 MB / 0.5711 GB, free: 54.5 MB / 426.7 MB