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.IdealGasH2O.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) Running command: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.547/1.547, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003711, allocations: 8 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07015/0.07055, allocations: 38.77 MB / 272 MB, free: 12.19 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.177, allocations: 432.4 MB / 0.6879 GB, free: 27.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/1.178, allocations: 61.34 kB / 0.6879 GB, free: 27.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07502/1.253, allocations: 24.9 MB / 0.7122 GB, free: 6.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.622e-06/1.253, allocations: 4 kB / 0.7122 GB, free: 6.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.875e-06/1.253, allocations: 4 kB / 0.7122 GB, free: 6.414 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007785/1.253, allocations: 435.9 kB / 0.7127 GB, free: 5.949 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/1.254, allocations: 8.031 kB / 0.7127 GB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006492/1.26, allocations: 468.4 kB / 0.7131 GB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.134e-05/1.26, allocations: 171 kB / 0.7133 GB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/1.26, allocations: 8 kB / 0.7133 GB, free: 5.297 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.812e-05/1.26, allocations: 4 kB / 0.7133 GB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008978/1.261, allocations: 293.3 kB / 0.7136 GB, free: 5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/1.261, allocations: 0 / 0.7136 GB, free: 5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.167e-05/1.261, allocations: 3.984 kB / 0.7136 GB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.177e-06/1.261, allocations: 7.984 kB / 0.7136 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/1.262, allocations: 279.7 kB / 0.7138 GB, free: 4.715 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/1.263, allocations: 424.5 kB / 0.7142 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/1.265, allocations: 218.5 kB / 0.7145 GB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/1.265, allocations: 0 / 0.7145 GB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/1.265, allocations: 42.5 kB / 0.7145 GB, free: 3.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.676e-06/1.265, allocations: 0 / 0.7145 GB, free: 3.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001982/1.267, allocations: 426 kB / 0.7149 GB, free: 3.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/1.267, allocations: 55.41 kB / 0.715 GB, free: 3.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.407e-05/1.267, allocations: 96.92 kB / 0.715 GB, free: 3.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/1.267, allocations: 33.7 kB / 0.7151 GB, free: 3.348 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.95e-05/1.267, allocations: 162.3 kB / 0.7152 GB, free: 3.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/1.267, allocations: 59.19 kB / 0.7153 GB, free: 3.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/1.267, allocations: 4 kB / 0.7153 GB, free: 3.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.739e-05/1.267, allocations: 330.8 kB / 0.7156 GB, free: 2.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/1.267, allocations: 72.31 kB / 0.7157 GB, free: 2.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/1.268, allocations: 120.2 kB / 0.7158 GB, free: 2.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/1.268, allocations: 86.94 kB / 0.7159 GB, free: 2.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/1.268, allocations: 0 / 0.7159 GB, free: 2.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007747/1.269, allocations: 245.3 kB / 0.7161 GB, free: 2.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.269, allocations: 4 kB / 0.7161 GB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/1.269, allocations: 4 kB / 0.7161 GB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/1.269, allocations: 0 / 0.7161 GB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/1.269, allocations: 51.89 kB / 0.7162 GB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.172e-06/1.269, allocations: 4 kB / 0.7162 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/1.27, allocations: 15.98 kB / 0.7162 GB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-05/1.27, allocations: 16.11 kB / 0.7162 GB, free: 2.168 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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.0001022/1.27, allocations: 121.8 kB / 0.7163 GB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/1.27, allocations: 7.906 kB / 0.7163 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/1.271, allocations: 285.9 kB / 0.7166 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.293e-06/1.271, allocations: 0 / 0.7166 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.32e-06/1.271, allocations: 0 / 0.7166 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/1.271, allocations: 0 / 0.7166 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/1.272, allocations: 0.5741 MB / 0.7172 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.07e-06/1.272, allocations: 4 kB / 0.7172 GB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/1.273, allocations: 43.91 kB / 0.7172 GB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.731e-06/1.273, allocations: 8 kB / 0.7172 GB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/1.273, allocations: 7.984 kB / 0.7172 GB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.063e-06/1.273, allocations: 0 / 0.7172 GB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.058e-06/1.273, allocations: 3.953 kB / 0.7172 GB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/1.274, allocations: 359.2 kB / 0.7176 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.122e-05/1.274, allocations: 88.95 kB / 0.7176 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.07e-05/1.274, allocations: 4 kB / 0.7177 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/1.274, allocations: 19.98 kB / 0.7177 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/1.274, allocations: 11.98 kB / 0.7177 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.734e-05/1.274, allocations: 15.98 kB / 0.7177 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.194e-05/1.274, allocations: 83.28 kB / 0.7178 GB, free: 436 kB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.274, allocations: 3.938 kB / 0.7178 GB, free: 432 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005589/1.275, allocations: 79.98 kB / 0.7179 GB, free: 352 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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 Backend phase and start with SimCode phase: time 0.1831/1.458, allocations: 0.496 MB / 0.7183 GB, free: 121.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008941/1.459, allocations: 189 kB / 0.7185 GB, free: 121.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.03e-06/1.459, allocations: 0 / 0.7185 GB, free: 121.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003837/1.459, allocations: 104.9 kB / 0.7186 GB, free: 121.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/1.46, allocations: 36.39 kB / 0.7187 GB, free: 121.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009194/1.461, allocations: 338.3 kB / 0.719 GB, free: 121.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/1.461, allocations: 0.6983 MB / 0.7197 GB, free: 120.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/1.461, allocations: 34 kB / 0.7197 GB, free: 120.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.845e-06/1.461, allocations: 1.375 kB / 0.7197 GB, free: 120.4 MB / 362.7 MB Notification: Performance of Templates: time 0.009231/1.47, allocations: 4.837 MB / 0.7244 GB, free: 120.2 MB / 362.7 MB