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.LinearFluid.LinearColdWater.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,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.LinearFluid.LinearColdWater") Notification: Performance of loadModel(ModelicaTest): time 2.24/2.24, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.973e-05/1.984e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2729, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.931/1.204, allocations: 407.8 MB / 0.7107 GB, free: 44.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/1.204, allocations: 90.08 kB / 0.7108 GB, free: 44.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6167/1.821, allocations: 116.6 MB / 0.8247 GB, free: 104.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.714e-06/1.821, allocations: 0 / 0.8247 GB, free: 104.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.833e-05/1.821, allocations: 20.06 kB / 0.8247 GB, free: 104.6 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002242/1.823, allocations: 0.9682 MB / 0.8257 GB, free: 103.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/1.823, allocations: 12.03 kB / 0.8257 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005316/1.824, allocations: 87.14 kB / 0.8258 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/1.825, allocations: 0.5539 MB / 0.8263 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.696e-05/1.826, allocations: 84.7 kB / 0.8264 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/1.826, allocations: 28 kB / 0.8264 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001193/1.827, allocations: 0.5492 MB / 0.8269 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/1.828, allocations: 0.726 MB / 0.8276 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/1.828, allocations: 7.938 kB / 0.8277 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.718e-05/1.828, allocations: 4 kB / 0.8277 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.434e-05/1.828, allocations: 37.3 kB / 0.8277 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005673/1.834, allocations: 3.954 MB / 0.8316 GB, free: 97.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007801/1.835, allocations: 307.5 kB / 0.8318 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/1.835, allocations: 161.3 kB / 0.832 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003322/1.836, allocations: 344.7 kB / 0.8323 GB, free: 96.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/1.836, allocations: 42.84 kB / 0.8324 GB, free: 96.27 MB / 426.7 MB Notification: Performance of pre-optimization done (n=34): time 3.923e-06/1.836, allocations: 0 / 0.8324 GB, free: 96.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.004338/1.84, allocations: 1.279 MB / 0.8336 GB, free: 94.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/1.84, allocations: 132.5 kB / 0.8337 GB, free: 94.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006677/1.841, allocations: 454.1 kB / 0.8342 GB, free: 94.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/1.841, allocations: 25.7 kB / 0.8342 GB, free: 94.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/1.841, allocations: 429.3 kB / 0.8346 GB, free: 93.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/1.841, allocations: 142 kB / 0.8347 GB, free: 93.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/1.841, allocations: 0 / 0.8347 GB, free: 93.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.738e-05/1.841, allocations: 342.8 kB / 0.8351 GB, free: 93.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/1.842, allocations: 197.5 kB / 0.8353 GB, free: 93.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/1.842, allocations: 0.5062 MB / 0.8358 GB, free: 92.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/1.843, allocations: 340.4 kB / 0.8361 GB, free: 92.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/1.843, allocations: 3.953 kB / 0.8361 GB, free: 92.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002465/1.846, allocations: 0.8596 MB / 0.8369 GB, free: 91.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/1.846, allocations: 12 kB / 0.8369 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/1.846, allocations: 8 kB / 0.8369 GB, free: 91.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009884/1.847, allocations: 225.9 kB / 0.8372 GB, free: 91.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/1.847, allocations: 131.8 kB / 0.8373 GB, free: 90.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/1.849, allocations: 0.866 MB / 0.8381 GB, free: 90.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009381/1.849, allocations: 35.88 kB / 0.8382 GB, free: 90.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.784e-05/1.85, allocations: 36 kB / 0.8382 GB, free: 90 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001944/1.85, allocations: 136.7 kB / 0.8383 GB, free: 89.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/1.85, allocations: 59.25 kB / 0.8384 GB, free: 89.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/1.852, allocations: 0.588 MB / 0.839 GB, free: 89.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/1.852, allocations: 15.91 kB / 0.839 GB, free: 89.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.821e-06/1.852, allocations: 4 kB / 0.839 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.438e-06/1.852, allocations: 0 / 0.839 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003045/1.855, allocations: 1.472 MB / 0.8404 GB, free: 87.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.169e-06/1.855, allocations: 0 / 0.8404 GB, free: 87.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/1.856, allocations: 188 kB / 0.8406 GB, free: 87.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003117/1.856, allocations: 56.7 kB / 0.8407 GB, free: 87.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/1.856, allocations: 11.94 kB / 0.8407 GB, free: 87.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/1.859, allocations: 2.677 MB / 0.8433 GB, free: 84.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.859e-06/1.859, allocations: 4.078 kB / 0.8433 GB, free: 84.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/1.861, allocations: 0.9619 MB / 0.8442 GB, free: 83.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/1.861, allocations: 192.3 kB / 0.8444 GB, free: 83.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/1.861, allocations: 0 / 0.8444 GB, free: 83.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/1.862, allocations: 19.97 kB / 0.8444 GB, free: 83.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/1.862, allocations: 36.02 kB / 0.8445 GB, free: 83.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/1.862, allocations: 16 kB / 0.8445 GB, free: 83.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004817/1.862, allocations: 334.9 kB / 0.8448 GB, free: 82.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.63e-07/1.862, allocations: 0 / 0.8448 GB, free: 82.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001225/1.864, allocations: 203.9 kB / 0.845 GB, free: 82.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006057/1.864, allocations: 260.5 kB / 0.8452 GB, free: 82.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/1.866, allocations: 0.5274 MB / 0.8457 GB, free: 81.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.403e-06/1.866, allocations: 0 / 0.8457 GB, free: 81.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/1.867, allocations: 414.8 kB / 0.8461 GB, free: 81.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/1.868, allocations: 270.4 kB / 0.8464 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/1.871, allocations: 0.9984 MB / 0.8474 GB, free: 80.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/1.871, allocations: 0.9498 MB / 0.8483 GB, free: 79.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/1.871, allocations: 63.42 kB / 0.8484 GB, free: 79.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.839e-06/1.871, allocations: 0 / 0.8484 GB, free: 79.05 MB / 426.7 MB Notification: Performance of Templates: time 0.02151/1.893, allocations: 14.24 MB / 0.8623 GB, free: 64.84 MB / 426.7 MB