Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.IdealGasH2O.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.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1061, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.461/1.568, allocations: 438.1 MB / 0.7295 GB, free: 100.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/1.568, allocations: 72.47 kB / 0.7296 GB, free: 100.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08546/1.653, allocations: 24.91 MB / 0.7539 GB, free: 79.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.653, allocations: 0 / 0.7539 GB, free: 79.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/1.653, allocations: 4 kB / 0.7539 GB, free: 79.4 MB / 410.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.001071/1.654, allocations: 433.6 kB / 0.7544 GB, free: 78.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/1.655, allocations: 8.031 kB / 0.7544 GB, free: 78.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01/1.665, allocations: 463.8 kB / 0.7548 GB, free: 78.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/1.665, allocations: 163 kB / 0.755 GB, free: 78.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/1.665, allocations: 7.938 kB / 0.755 GB, free: 78.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/1.665, allocations: 11.44 kB / 0.755 GB, free: 78.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/1.666, allocations: 296 kB / 0.7553 GB, free: 78.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/1.666, allocations: 0 / 0.7553 GB, free: 78.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/1.666, allocations: 7.953 kB / 0.7553 GB, free: 78.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/1.666, allocations: 0 / 0.7553 GB, free: 78.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/1.668, allocations: 276.7 kB / 0.7555 GB, free: 77.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/1.669, allocations: 414.6 kB / 0.7559 GB, free: 77.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/1.671, allocations: 224.5 kB / 0.7561 GB, free: 77.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/1.671, allocations: 4 kB / 0.7561 GB, free: 77.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/1.671, allocations: 34.56 kB / 0.7562 GB, free: 77.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/1.671, allocations: 0 / 0.7562 GB, free: 77.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.002985/1.674, allocations: 428.4 kB / 0.7566 GB, free: 76.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/1.674, allocations: 51.41 kB / 0.7566 GB, free: 76.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.93e-05/1.674, allocations: 109.5 kB / 0.7567 GB, free: 76.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/1.674, allocations: 25.7 kB / 0.7568 GB, free: 76.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/1.674, allocations: 165.4 kB / 0.7569 GB, free: 76.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/1.674, allocations: 58.36 kB / 0.757 GB, free: 76.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/1.674, allocations: 3.75 kB / 0.757 GB, free: 76.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.772e-05/1.675, allocations: 330 kB / 0.7573 GB, free: 76.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/1.675, allocations: 77.06 kB / 0.7574 GB, free: 76.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004828/1.675, allocations: 117.7 kB / 0.7575 GB, free: 76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/1.676, allocations: 81.47 kB / 0.7576 GB, free: 75.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/1.676, allocations: 4 kB / 0.7576 GB, free: 75.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001119/1.677, allocations: 246.6 kB / 0.7578 GB, free: 75.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/1.677, allocations: 7.938 kB / 0.7578 GB, free: 75.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/1.677, allocations: 0 / 0.7578 GB, free: 75.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/1.677, allocations: 4 kB / 0.7578 GB, free: 75.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006324/1.678, allocations: 47.95 kB / 0.7579 GB, free: 75.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/1.678, allocations: 3.984 kB / 0.7579 GB, free: 75.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/1.678, allocations: 19.69 kB / 0.7579 GB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/1.678, allocations: 20.06 kB / 0.7579 GB, free: 75.66 MB / 410.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.0001232/1.679, allocations: 117.5 kB / 0.758 GB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/1.679, allocations: 7.906 kB / 0.758 GB, free: 75.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/1.68, allocations: 283.3 kB / 0.7583 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/1.68, allocations: 4 kB / 0.7583 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.68, allocations: 0 / 0.7583 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/1.68, allocations: 0 / 0.7583 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/1.682, allocations: 0.5686 MB / 0.7588 GB, free: 74.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/1.682, allocations: 0 / 0.7588 GB, free: 74.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/1.682, allocations: 51.92 kB / 0.7589 GB, free: 74.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/1.683, allocations: 0 / 0.7589 GB, free: 74.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/1.683, allocations: 11.67 kB / 0.7589 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/1.683, allocations: 4 kB / 0.7589 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.683, allocations: 0 / 0.7589 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/1.684, allocations: 324.1 kB / 0.7592 GB, free: 74.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/1.684, allocations: 88.84 kB / 0.7593 GB, free: 74.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/1.684, allocations: 3.953 kB / 0.7593 GB, free: 74.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/1.684, allocations: 19.61 kB / 0.7593 GB, free: 74.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/1.684, allocations: 11.98 kB / 0.7593 GB, free: 74.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.211e-05/1.684, allocations: 11.98 kB / 0.7594 GB, free: 74.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.985e-05/1.684, allocations: 86.97 kB / 0.7594 GB, free: 74.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.685, allocations: 0 / 0.7594 GB, free: 74.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006134/1.685, allocations: 74.17 kB / 0.7595 GB, free: 74.15 MB / 410.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.0008275/1.686, allocations: 0.5201 MB / 0.76 GB, free: 73.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/1.687, allocations: 196.3 kB / 0.7602 GB, free: 73.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.687, allocations: 0 / 0.7602 GB, free: 73.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/1.688, allocations: 102.7 kB / 0.7603 GB, free: 73.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/1.688, allocations: 36.75 kB / 0.7603 GB, free: 73.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/1.689, allocations: 344.6 kB / 0.7607 GB, free: 73.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/1.69, allocations: 0.7013 MB / 0.7613 GB, free: 72.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/1.69, allocations: 33.78 kB / 0.7614 GB, free: 72.26 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/1.69, allocations: 0 / 0.7614 GB, free: 72.26 MB / 410.7 MB Notification: Performance of Templates: time 0.01026/1.7, allocations: 4.847 MB / 0.7661 GB, free: 67.42 MB / 410.7 MB