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.ReferenceAir.MoistAir2.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.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003748, allocations: 8 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07288/0.07328, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.57/14.65, allocations: 6.524 GB / 6.789 GB, free: 50.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/14.65, allocations: 79.95 kB / 6.789 GB, free: 50.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.294/17.94, allocations: 0.6645 GB / 7.454 GB, free: 24.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.065e-06/17.94, allocations: 1.031 kB / 7.454 GB, free: 24.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.148e-05/17.94, allocations: 14.05 kB / 7.454 GB, free: 24.84 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009153/17.95, allocations: 2.442 MB / 7.456 GB, free: 23.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/17.95, allocations: 6.844 kB / 7.456 GB, free: 23.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000607/17.95, allocations: 84.5 kB / 7.456 GB, free: 23.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007869/17.95, allocations: 448.8 kB / 7.457 GB, free: 23.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/17.95, allocations: 45.28 kB / 7.457 GB, free: 23.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/17.95, allocations: 62.97 kB / 7.457 GB, free: 23.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/17.95, allocations: 0.7111 MB / 7.457 GB, free: 23.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/17.95, allocations: 2.156 kB / 7.457 GB, free: 23.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/17.95, allocations: 32.44 kB / 7.458 GB, free: 23.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/17.95, allocations: 15.91 kB / 7.458 GB, free: 23.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/17.96, allocations: 0.8822 MB / 7.458 GB, free: 23.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01585/17.97, allocations: 12.39 MB / 7.47 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002052/17.97, allocations: 0.8887 MB / 7.471 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04425/18.02, allocations: 30.14 MB / 7.501 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/18.02, allocations: 45.56 kB / 7.501 GB, free: 13.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.504e-06/18.02, allocations: 2.156 kB / 7.501 GB, free: 13.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=88): time 0.01445/18.03, allocations: 3.375 MB / 7.504 GB, free: 12.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/18.03, allocations: 64.31 kB / 7.504 GB, free: 12.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/18.03, allocations: 313 kB / 7.504 GB, free: 12.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/18.03, allocations: 46.14 kB / 7.505 GB, free: 12.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/18.03, allocations: 293.4 kB / 7.505 GB, free: 12.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002421/18.03, allocations: 309.7 kB / 7.505 GB, free: 12.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.425e-05/18.04, allocations: 16.31 kB / 7.505 GB, free: 12.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/18.04, allocations: 347.1 kB / 7.505 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007656/18.04, allocations: 334.5 kB / 7.506 GB, free: 12.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/18.04, allocations: 447.4 kB / 7.506 GB, free: 11.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/18.04, allocations: 398.2 kB / 7.507 GB, free: 11.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/18.04, allocations: 8.656 kB / 7.507 GB, free: 11.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003308/18.04, allocations: 1.016 MB / 7.508 GB, free: 11.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/18.04, allocations: 7.938 kB / 7.508 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/18.04, allocations: 3.312 kB / 7.508 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/18.04, allocations: 172.5 kB / 7.508 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/18.04, allocations: 191 kB / 7.508 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004238/18.05, allocations: 3.926 MB / 7.512 GB, free: 24.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008931/18.05, allocations: 65.42 kB / 7.512 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/18.05, allocations: 46.25 kB / 7.512 GB, free: 24.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005542/18.05, allocations: 234.8 kB / 7.512 GB, free: 24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005645/18.05, allocations: 57.81 kB / 7.512 GB, free: 23.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/18.05, allocations: 1.113 MB / 7.513 GB, free: 23.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/18.05, allocations: 9.406 kB / 7.513 GB, free: 23.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/18.05, allocations: 2.906 kB / 7.513 GB, free: 23.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0028/18.06, allocations: 1.346 MB / 7.515 GB, free: 23.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005069/18.06, allocations: 2.071 MB / 7.517 GB, free: 22.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/18.06, allocations: 0 / 7.517 GB, free: 22.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/18.06, allocations: 184.5 kB / 7.517 GB, free: 22.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/18.07, allocations: 305.7 kB / 7.517 GB, free: 22.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/18.07, allocations: 38.12 kB / 7.517 GB, free: 22.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/18.07, allocations: 1.296 MB / 7.518 GB, free: 21.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.47e-06/18.07, allocations: 0 / 7.518 GB, free: 21.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/18.07, allocations: 1.522 MB / 7.52 GB, free: 21.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/18.07, allocations: 142.1 kB / 7.52 GB, free: 21.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/18.07, allocations: 21.31 kB / 7.52 GB, free: 21.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/18.07, allocations: 56.62 kB / 7.52 GB, free: 21.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/18.07, allocations: 59.8 kB / 7.52 GB, free: 21.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/18.07, allocations: 51.31 kB / 7.52 GB, free: 21.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000417/18.07, allocations: 261 kB / 7.52 GB, free: 21.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.204e-06/18.07, allocations: 3.094 kB / 7.52 GB, free: 21.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009332/18.08, allocations: 2.294 MB / 7.523 GB, free: 20.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01579/18.1, allocations: 3.394 MB / 7.526 GB, free: 19.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003221/18.1, allocations: 1.144 MB / 7.527 GB, free: 19.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/18.1, allocations: 2.75 kB / 7.527 GB, free: 19.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/18.1, allocations: 0.511 MB / 7.528 GB, free: 19.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/18.11, allocations: 395.9 kB / 7.528 GB, free: 19.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/18.11, allocations: 2.114 MB / 7.53 GB, free: 18.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/18.11, allocations: 0.9341 MB / 7.531 GB, free: 18.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/18.11, allocations: 86.78 kB / 7.531 GB, free: 18.15 MB / 442.7 MB Notification: Performance of SimCode: time 1.761e-06/18.11, allocations: 1.469 kB / 7.531 GB, free: 18.15 MB / 442.7 MB Notification: Performance of Templates: time 0.3854/18.5, allocations: 68.28 MB / 7.598 GB, free: 71.08 MB / 442.7 MB