Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|eta|lambda|s|cv|u|h|d",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Incompressible.Examples.TestGlycol") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.8 MB / 212.3 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003992, allocations: 12 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09683, allocations: 44.49 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5497/0.6466, allocations: 187.8 MB / 496.7 MB, free: 4.758 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.6469, allocations: 86.17 kB / 496.8 MB, free: 4.711 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08591/0.7329, allocations: 22.77 MB / 0.5074 GB, free: 1.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.288e-06/0.7329, allocations: 0 / 0.5074 GB, free: 1.062 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.7329, allocations: 3.938 kB / 0.5074 GB, free: 1.059 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000645/0.7336, allocations: 444.8 kB / 0.5078 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.7336, allocations: 8.031 kB / 0.5078 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.7341, allocations: 34.67 kB / 0.5079 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.7343, allocations: 186.4 kB / 0.508 GB, free: 340 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.7343, allocations: 10.5 kB / 0.5081 GB, free: 332 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.7344, allocations: 10.5 kB / 0.5081 GB, free: 324 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.7347, allocations: 131.1 kB / 0.5082 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.7347, allocations: 15.89 kB / 0.5082 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.7348, allocations: 8.484 kB / 0.5082 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.7348, allocations: 4 kB / 0.5082 GB, free: 176 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.735, allocations: 110.8 kB / 0.5083 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008709/0.7359, allocations: 0.6262 MB / 0.5089 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.7361, allocations: 81.55 kB / 0.509 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007646/0.7369, allocations: 0.8033 MB / 0.5098 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.737, allocations: 31.81 kB / 0.5098 GB, free: 14.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.204e-06/0.737, allocations: 0 / 0.5098 GB, free: 14.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004088/0.7374, allocations: 132.1 kB / 0.51 GB, free: 14.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.7374, allocations: 55.41 kB / 0.51 GB, free: 14.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.7376, allocations: 118 kB / 0.5101 GB, free: 14.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.7376, allocations: 25.7 kB / 0.5101 GB, free: 14.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.7377, allocations: 178.3 kB / 0.5103 GB, free: 13.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.7378, allocations: 39.36 kB / 0.5104 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.7378, allocations: 4 kB / 0.5104 GB, free: 13.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7379, allocations: 322.8 kB / 0.5107 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.651e-05/0.738, allocations: 19.98 kB / 0.5107 GB, free: 13.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.7381, allocations: 73.75 kB / 0.5108 GB, free: 13.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.7382, allocations: 40.39 kB / 0.5108 GB, free: 13.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7383, allocations: 0 / 0.5108 GB, free: 13.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003222/0.7386, allocations: 141.5 kB / 0.5109 GB, free: 13.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.7386, allocations: 4 kB / 0.5109 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.7386, allocations: 4 kB / 0.5109 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.7387, allocations: 0 / 0.5109 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.7389, allocations: 31.98 kB / 0.511 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.7389, allocations: 3.938 kB / 0.511 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.739, allocations: 15.84 kB / 0.511 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.7391, allocations: 11.98 kB / 0.511 GB, free: 13.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.7392, allocations: 122.3 kB / 0.5111 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.7393, allocations: 11.91 kB / 0.5111 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000462/0.7397, allocations: 154 kB / 0.5113 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.7398, allocations: 3.938 kB / 0.5113 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.7398, allocations: 0 / 0.5113 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.7398, allocations: 0 / 0.5113 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006354/0.7404, allocations: 398.5 kB / 0.5117 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.7404, allocations: 3.938 kB / 0.5117 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.7406, allocations: 19.98 kB / 0.5117 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.7406, allocations: 4 kB / 0.5117 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.7406, allocations: 4 kB / 0.5117 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.7406, allocations: 0 / 0.5117 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.7407, allocations: 3.984 kB / 0.5117 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.741, allocations: 203.4 kB / 0.5119 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.101e-05/0.7411, allocations: 108.9 kB / 0.512 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.7411, allocations: 0 / 0.512 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.7413, allocations: 7.938 kB / 0.512 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.7413, allocations: 11.98 kB / 0.512 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.7413, allocations: 4 kB / 0.512 GB, free: 11.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.609e-05/0.7414, allocations: 91.27 kB / 0.5121 GB, free: 11.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.455e-06/0.7414, allocations: 0 / 0.5121 GB, free: 11.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004681/0.7419, allocations: 59.94 kB / 0.5122 GB, free: 11.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003438/0.7422, allocations: 159.8 kB / 0.5123 GB, free: 11.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.7425, allocations: 80.14 kB / 0.5124 GB, free: 11.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7425, allocations: 4.062 kB / 0.5124 GB, free: 11.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.925e-05/0.7426, allocations: 40.67 kB / 0.5124 GB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.7431, allocations: 40.2 kB / 0.5125 GB, free: 11.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005793/0.7437, allocations: 324.8 kB / 0.5128 GB, free: 11.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.744, allocations: 0.7047 MB / 0.5135 GB, free: 10.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.059e-05/0.7441, allocations: 19.44 kB / 0.5135 GB, free: 10.38 MB / 410.7 MB Notification: Performance of SimCode: time 9.71e-07/0.7441, allocations: 0 / 0.5135 GB, free: 10.38 MB / 410.7 MB Notification: Performance of Templates: time 0.00611/0.7503, allocations: 2.252 MB / 0.5157 GB, free: 8.141 MB / 410.7 MB