Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 1.612/1.612, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005379/0.0005381, allocations: 12 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09495, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2958/0.3908, allocations: 49.59 MB / 322.2 MB, free: 6.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007279/0.3981, allocations: 4.08 MB / 326.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007529/0.3989, allocations: 5.75 kB / 326.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.4, allocations: 261.7 kB / 326.6 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.4011, allocations: 365 kB / 326.9 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01769/0.4189, allocations: 4.824 MB / 331.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.4207, allocations: 0.8685 MB / 332.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.421, allocations: 160.4 kB / 332.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.4224, allocations: 0.5317 MB / 333.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007345/0.4231, allocations: 389.5 kB / 333.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.4233, allocations: 38.75 kB / 333.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02233/0.4456, allocations: 8.313 MB / 342 MB, free: 7.789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005346/0.4462, allocations: 247.4 kB / 342.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003775/0.4466, allocations: 173.4 kB / 342.4 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00972/0.4563, allocations: 3.697 MB / 346.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.4564, allocations: 4 kB / 346.1 MB, free: 3.664 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4564, allocations: 0 / 346.1 MB, free: 3.664 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.4564, allocations: 0 / 346.1 MB, free: 3.664 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.004682/0.4611, allocations: 1.376 MB / 347.5 MB, free: 2.238 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4612, allocations: 8.031 kB / 347.5 MB, free: 2.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005683/0.4618, allocations: 83.23 kB / 347.6 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008891/0.4627, allocations: 425 kB / 348 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.963e-05/0.4627, allocations: 53.31 kB / 348.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.4629, allocations: 63.98 kB / 348.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.4655, allocations: 0.7209 MB / 348.9 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.4655, allocations: 7.953 kB / 348.9 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.4657, allocations: 24 kB / 348.9 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.4657, allocations: 20.81 kB / 348.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00278/0.4685, allocations: 0.899 MB / 349.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02685/0.4954, allocations: 12.76 MB / 362.6 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.4978, allocations: 0.8717 MB / 363.4 MB, free: 64 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02162/0.5195, allocations: 11.12 MB / 374.5 MB, free: 2.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.308e-05/0.5196, allocations: 47.62 kB / 374.6 MB, free: 2.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=78): time 3.807e-06/0.5196, allocations: 4 kB / 374.6 MB, free: 2.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=88): time 0.01547/0.5351, allocations: 3.305 MB / 377.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.5352, allocations: 60.41 kB / 378 MB, free: 15.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/0.5358, allocations: 356.4 kB / 378.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.5359, allocations: 45.7 kB / 378.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.5362, allocations: 236.7 kB / 378.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/0.5365, allocations: 307.4 kB / 378.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.638e-05/0.5366, allocations: 23.94 kB / 378.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.5368, allocations: 358.8 kB / 379.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/0.5378, allocations: 345.8 kB / 379.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.5392, allocations: 459.4 kB / 380 MB, free: 13.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.5407, allocations: 418.8 kB / 380.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.5407, allocations: 0 / 380.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.00394/0.5447, allocations: 1.051 MB / 381.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.5447, allocations: 16.02 kB / 381.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.5448, allocations: 4 kB / 381.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.546, allocations: 163.3 kB / 381.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.5475, allocations: 183.8 kB / 381.9 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/0.5515, allocations: 3.939 MB / 385.8 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.5525, allocations: 55.91 kB / 385.9 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.5527, allocations: 39.98 kB / 385.9 MB, free: 6.941 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.0005115/0.5532, allocations: 225.6 kB / 386.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005067/0.5537, allocations: 67.34 kB / 386.2 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.5572, allocations: 1.089 MB / 387.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002992/0.5602, allocations: 1.331 MB / 388.6 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5603, allocations: 0 / 388.6 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.5605, allocations: 136.4 kB / 388.7 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.5607, allocations: 23.92 kB / 388.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5618, allocations: 55.81 kB / 388.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.562, allocations: 56.92 kB / 388.9 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00368/0.5657, allocations: 1.042 MB / 389.9 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004064/0.5698, allocations: 1.438 MB / 391.3 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001153/0.571, allocations: 395.8 kB / 391.7 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004815/0.5715, allocations: 267 kB / 392 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of Backend: time 6.01e-07/0.5715, allocations: 0 / 392 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01253/0.584, allocations: 2.41 MB / 394.4 MB, free: 14.19 MB / 330.7 MB Notification: Performance of SimCode: time 0.007906/0.592, allocations: 2.255 MB / 396.7 MB, free: 11.89 MB / 330.7 MB Notification: Performance of Templates: time 0.3594/0.9515, allocations: 50.43 MB / 447.1 MB, free: 133.9 MB / 362.7 MB