Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 1.872/1.872, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003543, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07756/0.07794, allocations: 44.5 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.07445/0.1524, allocations: 49.8 MB / 358.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007187/0.1597, allocations: 4.088 MB / 362.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004191/0.1601, allocations: 4 kB / 362.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009475/0.1611, allocations: 274.8 kB / 362.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008448/0.162, allocations: 359 kB / 362.8 MB, free: 10.4 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01648/0.1784, allocations: 4.843 MB / 367.7 MB, free: 5.543 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001566/0.18, allocations: 0.8749 MB / 368.6 MB, free: 4.664 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.1804, allocations: 156 kB / 368.7 MB, free: 4.512 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.1815, allocations: 0.5336 MB / 369.3 MB, free: 3.977 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006559/0.1822, allocations: 394.7 kB / 369.6 MB, free: 3.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.1823, allocations: 36 kB / 369.7 MB, free: 3.555 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2367/0.419, allocations: 8.369 MB / 378 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004605/0.4195, allocations: 261.5 kB / 378.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.4199, allocations: 171.2 kB / 378.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008068/0.428, allocations: 3.707 MB / 382.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.054e-06/0.428, allocations: 0 / 382.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.854e-06/0.428, allocations: 1.438 kB / 382.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.4281, allocations: 0 / 382.2 MB, free: 13.38 MB / 314.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.004119/0.4322, allocations: 1.371 MB / 383.5 MB, free: 12.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.4323, allocations: 10.31 kB / 383.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/0.4328, allocations: 86.25 kB / 383.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007494/0.4336, allocations: 426.5 kB / 384.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.276e-05/0.4337, allocations: 49.75 kB / 384.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.4338, allocations: 61.06 kB / 384.2 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.436, allocations: 0.7311 MB / 384.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/0.4361, allocations: 2.125 kB / 384.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.4362, allocations: 33.61 kB / 384.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.4362, allocations: 15.72 kB / 384.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/0.4386, allocations: 0.8952 MB / 385.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0182/0.4568, allocations: 13.01 MB / 398.9 MB, free: 16.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.4589, allocations: 0.87 MB / 399.7 MB, free: 16.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01688/0.4758, allocations: 11.12 MB / 410.8 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.4759, allocations: 43.59 kB / 410.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=78): time 4.445e-06/0.4759, allocations: 0 / 410.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=88): time 0.01217/0.4881, allocations: 3.295 MB / 414.2 MB, free: 4.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.4882, allocations: 66.28 kB / 414.2 MB, free: 4.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004889/0.4887, allocations: 351.1 kB / 414.6 MB, free: 4.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.4888, allocations: 44.77 kB / 414.6 MB, free: 4.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.489, allocations: 290.8 kB / 414.9 MB, free: 3.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.4892, allocations: 305 kB / 415.2 MB, free: 3.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.4893, allocations: 19.28 kB / 415.2 MB, free: 3.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.4895, allocations: 341.2 kB / 415.6 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007292/0.4903, allocations: 344.6 kB / 415.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.4914, allocations: 466.2 kB / 416.4 MB, free: 3.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.4926, allocations: 413.5 kB / 416.8 MB, free: 3.168 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.752e-06/0.4926, allocations: 0 / 416.8 MB, free: 3.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003139/0.4957, allocations: 1.034 MB / 417.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4958, allocations: 10.5 kB / 417.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4958, allocations: 3.25 kB / 417.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.4968, allocations: 173.5 kB / 418 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/0.4978, allocations: 182.3 kB / 418.2 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003928/0.5018, allocations: 3.928 MB / 422.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007828/0.5026, allocations: 76.94 kB / 422.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.5027, allocations: 39.33 kB / 422.2 MB, free: 15.07 MB / 346.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.0004748/0.5032, allocations: 224.3 kB / 422.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004652/0.5037, allocations: 64.84 kB / 422.5 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/0.5064, allocations: 1.089 MB / 423.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.5064, allocations: 9.469 kB / 423.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.427e-06/0.5064, allocations: 0 / 423.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002487/0.5089, allocations: 1.328 MB / 424.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.5135, allocations: 2.035 MB / 426.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-06/0.5136, allocations: 0 / 426.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009369/0.5145, allocations: 174.5 kB / 427.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.5169, allocations: 298.5 kB / 427.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/0.5171, allocations: 29.48 kB / 427.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.5182, allocations: 1.292 MB / 428.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.85e-06/0.5182, allocations: 0 / 428.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/0.5217, allocations: 1.449 MB / 430.2 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.522, allocations: 131.3 kB / 430.3 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.5222, allocations: 32.34 kB / 430.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007748/0.5229, allocations: 63.05 kB / 430.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.5231, allocations: 66.69 kB / 430.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.5232, allocations: 38.47 kB / 430.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000436/0.5237, allocations: 261.2 kB / 430.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.5237, allocations: 4 kB / 430.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005102/0.5288, allocations: 1.368 MB / 432.1 MB, free: 9.793 MB / 346.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.008184/0.537, allocations: 1.588 MB / 433.7 MB, free: 8.402 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.5401, allocations: 1.123 MB / 434.8 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.5401, allocations: 0 / 434.8 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.5414, allocations: 0.4896 MB / 435.3 MB, free: 7.199 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.5439, allocations: 398.7 kB / 435.7 MB, free: 6.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.5482, allocations: 2.093 MB / 437.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007645/0.549, allocations: 0.9293 MB / 438.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004368/0.5495, allocations: 89.66 kB / 438.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of SimCode: time 1.686e-06/0.5495, allocations: 4 kB / 438.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of Templates: time 0.0822/0.6317, allocations: 44.3 MB / 483.1 MB, free: 7.84 MB / 394.7 MB