Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.001/2.001, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004435, allocations: 12 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3476, allocations: 48.71 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.15/1.498, allocations: 408.5 MB / 0.723 GB, free: 80.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003577/1.498, allocations: 98 kB / 0.7231 GB, free: 80.29 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6808/2.179, allocations: 118 MB / 0.8383 GB, free: 122.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.775e-06/2.179, allocations: 0 / 0.8383 GB, free: 122.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.358e-05/2.179, allocations: 17.84 kB / 0.8383 GB, free: 122.4 MB / 442.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.003278/2.183, allocations: 1.053 MB / 0.8393 GB, free: 121.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/2.183, allocations: 11.06 kB / 0.8394 GB, free: 121.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005763/2.183, allocations: 91.33 kB / 0.8394 GB, free: 121.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/2.185, allocations: 0.546 MB / 0.84 GB, free: 121.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/2.185, allocations: 103.3 kB / 0.8401 GB, free: 121.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/2.185, allocations: 48.16 kB / 0.8401 GB, free: 121.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/2.187, allocations: 0.8176 MB / 0.8409 GB, free: 121.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/2.187, allocations: 8.406 kB / 0.8409 GB, free: 121.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/2.187, allocations: 23.77 kB / 0.8409 GB, free: 121.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.084e-05/2.187, allocations: 44.11 kB / 0.841 GB, free: 121.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/2.189, allocations: 0.6295 MB / 0.8416 GB, free: 121.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006855/2.196, allocations: 3.901 MB / 0.8454 GB, free: 118.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/2.197, allocations: 382.9 kB / 0.8458 GB, free: 118.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005438/2.198, allocations: 0.5045 MB / 0.8463 GB, free: 118.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/2.198, allocations: 40.14 kB / 0.8463 GB, free: 118.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 3.246e-06/2.198, allocations: 0 / 0.8463 GB, free: 118.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004876/2.203, allocations: 1.48 MB / 0.8478 GB, free: 117.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/2.203, allocations: 137.3 kB / 0.8479 GB, free: 117.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009443/2.204, allocations: 0.5535 MB / 0.8484 GB, free: 117.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/2.204, allocations: 35.05 kB / 0.8485 GB, free: 117.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/2.204, allocations: 398.3 kB / 0.8488 GB, free: 117.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/2.204, allocations: 162.3 kB / 0.849 GB, free: 117.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.164e-05/2.204, allocations: 17.06 kB / 0.849 GB, free: 117.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.157e-05/2.205, allocations: 338.8 kB / 0.8493 GB, free: 116.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005866/2.205, allocations: 220.4 kB / 0.8495 GB, free: 116.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000752/2.206, allocations: 0.5425 MB / 0.8501 GB, free: 116.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007757/2.207, allocations: 317.9 kB / 0.8504 GB, free: 116.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/2.207, allocations: 2.469 kB / 0.8504 GB, free: 116.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002794/2.209, allocations: 0.933 MB / 0.8513 GB, free: 115.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/2.21, allocations: 7.094 kB / 0.8513 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/2.21, allocations: 9.062 kB / 0.8513 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/2.211, allocations: 264.4 kB / 0.8516 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/2.212, allocations: 138 kB / 0.8517 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/2.214, allocations: 0.8494 MB / 0.8525 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/2.215, allocations: 52.22 kB / 0.8526 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.038e-05/2.215, allocations: 44.48 kB / 0.8526 GB, free: 115.2 MB / 442.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 () * Number of clocked 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.0005275/2.215, allocations: 246.2 kB / 0.8528 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/2.215, allocations: 63.84 kB / 0.8529 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/2.217, allocations: 0.7032 MB / 0.8536 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/2.217, allocations: 3.938 kB / 0.8536 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/2.217, allocations: 0 / 0.8536 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/2.218, allocations: 3.938 kB / 0.8536 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/2.221, allocations: 1.379 MB / 0.8549 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/2.221, allocations: 0 / 0.8549 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/2.223, allocations: 199.7 kB / 0.8551 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004855/2.223, allocations: 57.36 kB / 0.8552 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.319e-05/2.223, allocations: 20.02 kB / 0.8552 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/2.226, allocations: 2.801 MB / 0.8579 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.226, allocations: 2.844 kB / 0.858 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/2.228, allocations: 0.9649 MB / 0.8589 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/2.229, allocations: 198.2 kB / 0.8591 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/2.229, allocations: 11.97 kB / 0.8591 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000728/2.23, allocations: 29.47 kB / 0.8591 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/2.23, allocations: 43.02 kB / 0.8592 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/2.23, allocations: 22.62 kB / 0.8592 GB, free: 110.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006961/2.231, allocations: 378 kB / 0.8595 GB, free: 110.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.231, allocations: 0 / 0.8595 GB, free: 110.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001328/2.232, allocations: 223.5 kB / 0.8598 GB, free: 110.2 MB / 442.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 () * Number of clocked 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.0007205/2.233, allocations: 276.9 kB / 0.86 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001815/2.235, allocations: 0.6001 MB / 0.8606 GB, free: 109.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/2.235, allocations: 0 / 0.8606 GB, free: 109.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/2.237, allocations: 460.4 kB / 0.861 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00264/2.239, allocations: 302.2 kB / 0.8613 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/2.243, allocations: 1.698 MB / 0.863 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/2.243, allocations: 0.9442 MB / 0.8639 GB, free: 107.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003521/2.243, allocations: 68.03 kB / 0.864 GB, free: 107.9 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/2.243, allocations: 0 / 0.864 GB, free: 107.9 MB / 442.7 MB Notification: Performance of Templates: time 0.02974/2.273, allocations: 14.68 MB / 0.8783 GB, free: 105.2 MB / 442.7 MB