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.557/1.557, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003567, allocations: 12 kB / 233.2 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06859/0.06897, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2506/0.3196, allocations: 49.57 MB / 321.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.326, allocations: 4.082 MB / 325.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006062/0.3266, allocations: 7.406 kB / 325.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008631/0.3275, allocations: 261.1 kB / 325.8 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008701/0.3284, allocations: 362.5 kB / 326.2 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01468/0.3431, allocations: 4.84 MB / 331 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.3447, allocations: 0.8666 MB / 331.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.3451, allocations: 155.5 kB / 332 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.3461, allocations: 0.5333 MB / 332.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006648/0.3468, allocations: 392.1 kB / 333 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.347, allocations: 37.81 kB / 333 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01899/0.366, allocations: 8.316 MB / 341.3 MB, free: 8.199 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004631/0.3665, allocations: 251.4 kB / 341.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003914/0.3669, allocations: 173.4 kB / 341.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008313/0.3752, allocations: 3.698 MB / 345.4 MB, free: 4.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3752, allocations: 0 / 345.4 MB, free: 4.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3753, allocations: 0 / 345.4 MB, free: 4.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.3753, allocations: 4 kB / 345.4 MB, free: 4.074 MB / 266.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.003793/0.3791, allocations: 1.378 MB / 346.8 MB, free: 2.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3791, allocations: 8.031 kB / 346.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000525/0.3797, allocations: 83.23 kB / 346.9 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000808/0.3805, allocations: 428.9 kB / 347.3 MB, free: 2.094 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.457e-05/0.3806, allocations: 49.31 kB / 347.4 MB, free: 2.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3807, allocations: 60 kB / 347.4 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.383, allocations: 0.7327 MB / 348.2 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.3831, allocations: 0 / 348.2 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.3832, allocations: 31.95 kB / 348.2 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.3832, allocations: 16 kB / 348.2 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.3858, allocations: 0.8951 MB / 349.1 MB, free: 312 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0219/0.4077, allocations: 12.76 MB / 361.9 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.4099, allocations: 0.8781 MB / 362.7 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/0.4275, allocations: 11.11 MB / 373.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.4276, allocations: 43.22 kB / 373.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of pre-optimization done (n=78): time 3.834e-06/0.4276, allocations: 0 / 373.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=88): time 0.01279/0.4404, allocations: 3.302 MB / 377.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.4405, allocations: 64.41 kB / 377.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005737/0.4411, allocations: 356.4 kB / 377.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.4412, allocations: 45.7 kB / 377.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.4415, allocations: 291.2 kB / 377.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003307/0.4418, allocations: 303.5 kB / 378.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.4419, allocations: 16 kB / 378.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.4421, allocations: 346.8 kB / 378.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008281/0.4429, allocations: 345.8 kB / 378.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.4442, allocations: 467.3 kB / 379.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.4455, allocations: 422.9 kB / 379.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.281e-06/0.4455, allocations: 0 / 379.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003496/0.449, allocations: 1.035 MB / 380.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.4491, allocations: 7.953 kB / 380.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4491, allocations: 4 kB / 380.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.4502, allocations: 171.5 kB / 381 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009971/0.4512, allocations: 187.7 kB / 381.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004105/0.4554, allocations: 3.931 MB / 385.1 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000731/0.4561, allocations: 63.91 kB / 385.2 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.4563, allocations: 35.98 kB / 385.2 MB, free: 7.34 MB / 314.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.0004911/0.4568, allocations: 225.6 kB / 385.4 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/0.4572, allocations: 59.34 kB / 385.5 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.4603, allocations: 1.097 MB / 386.6 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.868e-05/0.4604, allocations: 15.95 kB / 386.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.413e-06/0.4604, allocations: 0 / 386.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002732/0.4631, allocations: 1.331 MB / 387.9 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.4681, allocations: 2.03 MB / 390 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.769e-06/0.4682, allocations: 0 / 390 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009924/0.4692, allocations: 171.8 kB / 390.1 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/0.4716, allocations: 293.3 kB / 390.4 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.4718, allocations: 35.98 kB / 390.5 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.4729, allocations: 1.293 MB / 391.7 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.058e-06/0.473, allocations: 4.219 kB / 391.8 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003791/0.4768, allocations: 1.452 MB / 393.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.4771, allocations: 136.5 kB / 393.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.4772, allocations: 28.12 kB / 393.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007673/0.478, allocations: 59.8 kB / 393.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.4781, allocations: 64.86 kB / 393.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.4783, allocations: 43.97 kB / 393.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000425/0.4787, allocations: 259 kB / 393.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.4787, allocations: 0 / 393.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004119/0.4828, allocations: 1.363 MB / 395.1 MB, free: 13.06 MB / 330.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 (94): * Single equations (assignments): 92 * 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.006547/0.4894, allocations: 1.581 MB / 396.7 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002952/0.4924, allocations: 1.121 MB / 397.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.532e-06/0.4925, allocations: 4.125 kB / 397.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.4938, allocations: 499.2 kB / 398.3 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.496, allocations: 394.8 kB / 398.7 MB, free: 9.449 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.5003, allocations: 2.087 MB / 400.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007356/0.501, allocations: 0.9443 MB / 401.8 MB, free: 6.352 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000405/0.5015, allocations: 87.41 kB / 401.8 MB, free: 6.266 MB / 330.7 MB Notification: Performance of SimCode: time 1.715e-06/0.5015, allocations: 0 / 401.8 MB, free: 6.266 MB / 330.7 MB Notification: Performance of Templates: time 0.2566/0.7581, allocations: 44.2 MB / 446 MB, free: 131.5 MB / 362.7 MB