Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.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) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadModel(Modelica): time 1.565/1.565, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.62e-05, allocations: 0 / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06964/0.06968, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.588/6.658, allocations: 2.79 GB / 3.046 GB, free: 21.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/6.658, allocations: 87.94 kB / 3.046 GB, free: 21.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.545/10.2, allocations: 0.9382 GB / 3.984 GB, free: 34.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.895e-06/10.2, allocations: 4 kB / 3.984 GB, free: 34.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.38e-05/10.2, allocations: 4 kB / 3.984 GB, free: 34.86 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.003716/10.21, allocations: 1.188 MB / 3.985 GB, free: 33.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/10.21, allocations: 8.031 kB / 3.985 GB, free: 33.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003383/10.21, allocations: 47.38 kB / 3.985 GB, free: 33.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/10.21, allocations: 283.7 kB / 3.985 GB, free: 33.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/10.21, allocations: 11.94 kB / 3.985 GB, free: 33.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/10.21, allocations: 14.67 kB / 3.985 GB, free: 33.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000379/10.21, allocations: 168 kB / 3.986 GB, free: 33.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004395/10.21, allocations: 256.3 kB / 3.986 GB, free: 33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/10.21, allocations: 8 kB / 3.986 GB, free: 32.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/10.21, allocations: 0 / 3.986 GB, free: 32.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.838e-06/10.21, allocations: 4 kB / 3.986 GB, free: 32.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/10.21, allocations: 1.372 MB / 3.987 GB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/10.21, allocations: 173.4 kB / 3.987 GB, free: 31.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/10.21, allocations: 76.52 kB / 3.987 GB, free: 31.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/10.21, allocations: 6.391 kB / 3.987 GB, free: 31.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/10.21, allocations: 42.08 kB / 3.987 GB, free: 31.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.436e-06/10.21, allocations: 4 kB / 3.987 GB, free: 31.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.002001/10.21, allocations: 0.7442 MB / 3.988 GB, free: 30.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/10.21, allocations: 55.41 kB / 3.988 GB, free: 30.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/10.21, allocations: 197.2 kB / 3.988 GB, free: 30.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/10.21, allocations: 29.7 kB / 3.988 GB, free: 30.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/10.21, allocations: 239.6 kB / 3.989 GB, free: 30.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.873e-05/10.21, allocations: 89.25 kB / 3.989 GB, free: 30.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/10.21, allocations: 0 / 3.989 GB, free: 30.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.645e-05/10.21, allocations: 325.8 kB / 3.989 GB, free: 29.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/10.21, allocations: 79.78 kB / 3.989 GB, free: 29.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/10.21, allocations: 166.7 kB / 3.989 GB, free: 29.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/10.21, allocations: 101.8 kB / 3.989 GB, free: 29.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.58e-06/10.21, allocations: 2.516 kB / 3.989 GB, free: 29.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007518/10.21, allocations: 332.1 kB / 3.99 GB, free: 29.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/10.21, allocations: 8 kB / 3.99 GB, free: 29.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.869e-06/10.21, allocations: 4 kB / 3.99 GB, free: 29.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003297/10.22, allocations: 65.28 kB / 3.99 GB, free: 28.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/10.22, allocations: 69.73 kB / 3.99 GB, free: 28.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/10.22, allocations: 2.563 MB / 3.992 GB, free: 26.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/10.22, allocations: 15.55 kB / 3.992 GB, free: 26.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/10.22, allocations: 8 kB / 3.992 GB, free: 26.14 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001711/10.22, allocations: 124.5 kB / 3.993 GB, free: 26.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.648e-05/10.22, allocations: 27.67 kB / 3.993 GB, free: 25.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.195e-05/10.22, allocations: 37.05 kB / 3.993 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.843e-06/10.22, allocations: 0 / 3.993 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.286e-06/10.22, allocations: 4 kB / 3.993 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000591/10.22, allocations: 0.5376 MB / 3.993 GB, free: 25.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/10.22, allocations: 0.6354 MB / 3.994 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/10.22, allocations: 4 kB / 3.994 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/10.22, allocations: 47.52 kB / 3.994 GB, free: 24.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003058/10.22, allocations: 50.95 kB / 3.994 GB, free: 24.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/10.22, allocations: 7.953 kB / 3.994 GB, free: 24.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/10.22, allocations: 1.328 MB / 3.995 GB, free: 23.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.96e-06/10.22, allocations: 6.688 kB / 3.995 GB, free: 23.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000791/10.22, allocations: 451.4 kB / 3.996 GB, free: 22.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/10.22, allocations: 96.86 kB / 3.996 GB, free: 22.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/10.22, allocations: 0 / 3.996 GB, free: 22.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/10.22, allocations: 15.44 kB / 3.996 GB, free: 22.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/10.22, allocations: 18.52 kB / 3.996 GB, free: 22.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/10.22, allocations: 6.953 kB / 3.996 GB, free: 22.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001608/10.22, allocations: 153.3 kB / 3.996 GB, free: 22.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.31e-07/10.22, allocations: 0 / 3.996 GB, free: 22.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007972/10.22, allocations: 107.3 kB / 3.996 GB, free: 22.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004063/10.22, allocations: 318.1 kB / 3.996 GB, free: 22.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000746/10.23, allocations: 438.8 kB / 3.997 GB, free: 21.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.883e-06/10.23, allocations: 0 / 3.997 GB, free: 21.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/10.23, allocations: 220.7 kB / 3.997 GB, free: 21.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/10.23, allocations: 125.4 kB / 3.997 GB, free: 21.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/10.23, allocations: 0.4995 MB / 3.997 GB, free: 20.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/10.23, allocations: 0.7747 MB / 3.998 GB, free: 20.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/10.23, allocations: 23.44 kB / 3.998 GB, free: 20.19 MB / 362.7 MB Notification: Performance of SimCode: time 1.538e-06/10.23, allocations: 0 / 3.998 GB, free: 20.19 MB / 362.7 MB Notification: Performance of Templates: time 0.009687/10.24, allocations: 6.765 MB / 4.005 GB, free: 16.35 MB / 362.7 MB