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/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.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.111/2.111, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.966e-05, allocations: 8 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.08994, allocations: 48.69 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.204/1.294, allocations: 408.4 MB / 0.7177 GB, free: 108.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/1.295, allocations: 92.09 kB / 0.7178 GB, free: 108.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3464/1.641, allocations: 117.6 MB / 0.8326 GB, free: 6.062 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.012e-06/1.641, allocations: 0 / 0.8326 GB, free: 6.062 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.905e-05/1.641, allocations: 19.98 kB / 0.8327 GB, free: 6.043 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.002333/1.643, allocations: 0.9713 MB / 0.8336 GB, free: 5.027 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/1.644, allocations: 8.031 kB / 0.8336 GB, free: 5.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005257/1.644, allocations: 87.06 kB / 0.8337 GB, free: 4.934 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/1.645, allocations: 0.5521 MB / 0.8342 GB, free: 4.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/1.646, allocations: 104.4 kB / 0.8343 GB, free: 4.227 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/1.646, allocations: 51.91 kB / 0.8344 GB, free: 4.176 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/1.647, allocations: 0.7989 MB / 0.8352 GB, free: 3.301 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/1.647, allocations: 4 kB / 0.8352 GB, free: 3.297 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/1.647, allocations: 19.98 kB / 0.8352 GB, free: 3.277 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.986e-05/1.647, allocations: 40.98 kB / 0.8352 GB, free: 3.238 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/1.649, allocations: 0.6205 MB / 0.8358 GB, free: 2.617 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2686/1.917, allocations: 3.885 MB / 0.8396 GB, free: 90.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/1.919, allocations: 390.1 kB / 0.84 GB, free: 90.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/1.919, allocations: 196.3 kB / 0.8402 GB, free: 90.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004535/1.919, allocations: 0.4948 MB / 0.8407 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/1.919, allocations: 43.2 kB / 0.8407 GB, free: 90.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 4.107e-06/1.919, allocations: 0 / 0.8407 GB, free: 90.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.003959/1.923, allocations: 1.317 MB / 0.842 GB, free: 89.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/1.924, allocations: 140.7 kB / 0.8421 GB, free: 89.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008309/1.924, allocations: 489.4 kB / 0.8426 GB, free: 89.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.721e-05/1.925, allocations: 38.39 kB / 0.8426 GB, free: 89.49 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/1.925, allocations: 395.3 kB / 0.843 GB, free: 89.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/1.925, allocations: 166.2 kB / 0.8432 GB, free: 89.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/1.925, allocations: 16.08 kB / 0.8432 GB, free: 89.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/1.925, allocations: 337.8 kB / 0.8435 GB, free: 88.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/1.926, allocations: 214.6 kB / 0.8437 GB, free: 88.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006135/1.926, allocations: 0.5302 MB / 0.8442 GB, free: 88.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006617/1.927, allocations: 311.8 kB / 0.8445 GB, free: 88.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.221e-06/1.927, allocations: 3.281 kB / 0.8445 GB, free: 88.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002387/1.929, allocations: 0.9246 MB / 0.8454 GB, free: 88.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/1.929, allocations: 7.812 kB / 0.8454 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/1.929, allocations: 10.97 kB / 0.8455 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/1.931, allocations: 259.9 kB / 0.8457 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000679/1.931, allocations: 129.9 kB / 0.8458 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/1.933, allocations: 0.8444 MB / 0.8467 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009289/1.934, allocations: 49.78 kB / 0.8467 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.896e-05/1.934, allocations: 41.56 kB / 0.8467 GB, free: 87.86 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.0002114/1.934, allocations: 157.8 kB / 0.8469 GB, free: 87.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/1.934, allocations: 70.2 kB / 0.847 GB, free: 87.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00171/1.936, allocations: 0.682 MB / 0.8476 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.936, allocations: 8.922 kB / 0.8476 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.144e-06/1.936, allocations: 4.469 kB / 0.8476 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/1.936, allocations: 3.953 kB / 0.8476 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/1.939, allocations: 1.364 MB / 0.849 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.621e-06/1.939, allocations: 1.594 kB / 0.849 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/1.94, allocations: 195 kB / 0.8492 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003322/1.941, allocations: 53.42 kB / 0.8492 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.58e-05/1.941, allocations: 18.83 kB / 0.8492 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/1.943, allocations: 2.776 MB / 0.8519 GB, free: 84.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.943, allocations: 2.938 kB / 0.8519 GB, free: 84.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/1.945, allocations: 1.036 MB / 0.853 GB, free: 84.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004534/1.946, allocations: 204.3 kB / 0.8532 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/1.946, allocations: 14.17 kB / 0.8532 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000616/1.946, allocations: 31.55 kB / 0.8532 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/1.947, allocations: 35.77 kB / 0.8532 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.372e-05/1.947, allocations: 23.48 kB / 0.8533 GB, free: 84.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000676/1.947, allocations: 376.4 kB / 0.8536 GB, free: 84.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.03e-07/1.947, allocations: 0 / 0.8536 GB, free: 84.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001347/1.949, allocations: 224.5 kB / 0.8538 GB, free: 84.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 43 * 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.0006335/1.949, allocations: 267.2 kB / 0.8541 GB, free: 84.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001525/1.951, allocations: 0.5863 MB / 0.8547 GB, free: 84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.002e-06/1.951, allocations: 1.375 kB / 0.8547 GB, free: 84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/1.952, allocations: 444.1 kB / 0.8551 GB, free: 83.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/1.954, allocations: 308.8 kB / 0.8554 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/1.959, allocations: 1.047 MB / 0.8564 GB, free: 83.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/1.96, allocations: 0.9522 MB / 0.8573 GB, free: 82.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005342/1.96, allocations: 63.8 kB / 0.8574 GB, free: 82.84 MB / 426.7 MB Notification: Performance of SimCode: time 2.66e-06/1.96, allocations: 0 / 0.8574 GB, free: 82.84 MB / 426.7 MB Notification: Performance of Templates: time 0.0441/2.004, allocations: 14.66 MB / 0.8717 GB, free: 82.55 MB / 426.7 MB