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.DryAir2.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.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadModel(Modelica): time 1.582/1.582, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003535, allocations: 8 kB / 233.1 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06908/0.06946, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03113/0.1006, allocations: 22.17 MB / 294.1 MB, free: 5.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008719/0.1094, allocations: 5.293 MB / 299.4 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005188/0.11, allocations: 4 kB / 299.4 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009025/0.1109, allocations: 254.8 kB / 299.6 MB, free: 408 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00092/0.1118, allocations: 315.1 kB / 300 MB, free: 92 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1862/0.2981, allocations: 1.337 MB / 301.3 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.2994, allocations: 0.7396 MB / 302 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.2997, allocations: 112 kB / 302.1 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000666/0.3004, allocations: 349.1 kB / 302.5 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004058/0.3008, allocations: 250.7 kB / 302.7 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.01e-05/0.3009, allocations: 21.44 kB / 302.7 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002269/0.3032, allocations: 0.7477 MB / 303.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.3034, allocations: 99.67 kB / 303.6 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.3037, allocations: 126.1 kB / 303.7 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.3053, allocations: 0.7746 MB / 304.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.311e-06/0.3053, allocations: 0 / 304.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.122e-06/0.3053, allocations: 1.031 kB / 304.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.3053, allocations: 4 kB / 304.5 MB, free: 9.75 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001138/0.3065, allocations: 0.6791 MB / 305.2 MB, free: 9.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3065, allocations: 9.406 kB / 305.2 MB, free: 9.246 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007463/0.3073, allocations: 77.12 kB / 305.3 MB, free: 9.227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.3078, allocations: 330.5 kB / 305.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.3079, allocations: 29.91 kB / 305.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.819e-05/0.308, allocations: 48.3 kB / 305.7 MB, free: 8.988 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.3088, allocations: 467.4 kB / 306.1 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.3089, allocations: 4.297 kB / 306.1 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/0.309, allocations: 15.69 kB / 306.1 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.309, allocations: 10.44 kB / 306.1 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006655/0.3097, allocations: 304 kB / 306.4 MB, free: 8.844 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.3252, allocations: 6.734 MB / 313.2 MB, free: 4.883 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.3259, allocations: 278.1 kB / 313.4 MB, free: 4.855 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.012/0.3379, allocations: 3.881 MB / 317.3 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3379, allocations: 36.84 kB / 317.4 MB, free: 2.848 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 3.32e-06/0.338, allocations: 0 / 317.4 MB, free: 2.848 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.01541/0.3534, allocations: 2.485 MB / 319.8 MB, free: 1.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.3534, allocations: 58.53 kB / 319.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.3538, allocations: 303 kB / 320.2 MB, free: 1.746 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.3539, allocations: 32.02 kB / 320.2 MB, free: 1.715 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.354, allocations: 273.1 kB / 320.5 MB, free: 1.496 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.3541, allocations: 169.4 kB / 320.7 MB, free: 1.375 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.3542, allocations: 10.97 kB / 320.7 MB, free: 1.375 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3542, allocations: 336.2 kB / 321 MB, free: 1.055 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003356/0.3546, allocations: 147.7 kB / 321.1 MB, free: 1.035 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.355, allocations: 275.5 kB / 321.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.3554, allocations: 194.6 kB / 321.6 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.396e-06/0.3555, allocations: 5.406 kB / 321.6 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001458/0.3569, allocations: 0.5746 MB / 322.2 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.357, allocations: 10.52 kB / 322.2 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.357, allocations: 3.875 kB / 322.2 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007658/0.3647, allocations: 0.7631 MB / 323 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.3652, allocations: 117.2 kB / 323.1 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/0.3679, allocations: 2.463 MB / 325.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/0.3684, allocations: 40.45 kB / 325.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.3685, allocations: 25.25 kB / 325.6 MB, free: 14.11 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003122/0.3688, allocations: 174 kB / 325.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3689, allocations: 42.44 kB / 325.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.3704, allocations: 0.8507 MB / 326.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.3704, allocations: 15.28 kB / 326.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.785e-06/0.3705, allocations: 3 kB / 326.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001321/0.3718, allocations: 0.9619 MB / 327.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.3744, allocations: 1.485 MB / 329.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.3744, allocations: 7.984 kB / 329.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.3748, allocations: 74.34 kB / 329.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004004/0.3788, allocations: 0.6292 MB / 329.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.168e-05/0.3789, allocations: 20.8 kB / 329.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.3802, allocations: 1.276 MB / 331.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.518e-06/0.3803, allocations: 32 / 331.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.3824, allocations: 1.226 MB / 332.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.3826, allocations: 116.6 kB / 332.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.176e-05/0.3827, allocations: 11.81 kB / 332.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.3831, allocations: 34.78 kB / 332.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.3832, allocations: 27.53 kB / 332.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/0.3833, allocations: 22.16 kB / 332.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003115/0.3836, allocations: 205.4 kB / 332.8 MB, free: 9.988 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.3836, allocations: 0 / 332.8 MB, free: 9.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001095/0.3847, allocations: 234.5 kB / 333 MB, free: 9.777 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007792/0.3855, allocations: 286.9 kB / 333.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.387, allocations: 0.6946 MB / 334 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.756e-06/0.3871, allocations: 0 / 334 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.3882, allocations: 419.5 kB / 334.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.3896, allocations: 224.6 kB / 334.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.3923, allocations: 1.504 MB / 336.1 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.3929, allocations: 0.856 MB / 337 MB, free: 6.363 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.3931, allocations: 43.38 kB / 337 MB, free: 6.32 MB / 266.7 MB Notification: Performance of SimCode: time 1.611e-06/0.3931, allocations: 0 / 337 MB, free: 6.32 MB / 266.7 MB Notification: Performance of Templates: time 0.0219/0.415, allocations: 12.7 MB / 349.7 MB, free: 9.75 MB / 282.7 MB