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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.726/1.726, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.903e-05/1.91e-05, allocations: 4 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07078/0.07082, allocations: 38.76 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.23/15.3, allocations: 6.523 GB / 6.778 GB, free: 93.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/15.3, allocations: 76.33 kB / 6.778 GB, free: 93.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.258/18.56, allocations: 0.657 GB / 7.435 GB, free: 14.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.882e-06/18.56, allocations: 0 / 7.435 GB, free: 14.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.955e-05/18.56, allocations: 14 kB / 7.435 GB, free: 14.7 MB / 378.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.009732/18.57, allocations: 2.397 MB / 7.437 GB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/18.57, allocations: 9.406 kB / 7.437 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006477/18.57, allocations: 83.91 kB / 7.438 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008535/18.57, allocations: 443.6 kB / 7.438 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4e-05/18.57, allocations: 23.39 kB / 7.438 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/18.57, allocations: 37.19 kB / 7.438 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001923/18.57, allocations: 0.7987 MB / 7.439 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/18.57, allocations: 0.5693 MB / 7.439 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.844e-05/18.57, allocations: 4.594 kB / 7.439 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-05/18.57, allocations: 0.8125 kB / 7.439 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/18.57, allocations: 16.66 kB / 7.439 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/18.59, allocations: 12.29 MB / 7.451 GB, free: 18.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/18.59, allocations: 0.8137 MB / 7.452 GB, free: 18.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007944/18.6, allocations: 383.4 kB / 7.453 GB, free: 18.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04636/18.64, allocations: 30.2 MB / 7.482 GB, free: 19.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.973e-05/18.64, allocations: 46.5 kB / 7.482 GB, free: 19.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 3.864e-06/18.64, allocations: 2.625 kB / 7.482 GB, free: 19.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=88): time 0.01021/18.65, allocations: 2.337 MB / 7.484 GB, free: 19.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/18.65, allocations: 60.09 kB / 7.484 GB, free: 19.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/18.65, allocations: 260.1 kB / 7.485 GB, free: 19.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/18.65, allocations: 32.61 kB / 7.485 GB, free: 19.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/18.65, allocations: 294.2 kB / 7.485 GB, free: 18.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/18.65, allocations: 293.2 kB / 7.485 GB, free: 18.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/18.65, allocations: 0 / 7.485 GB, free: 18.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/18.65, allocations: 348.5 kB / 7.486 GB, free: 18.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007347/18.65, allocations: 305.2 kB / 7.486 GB, free: 18.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007368/18.65, allocations: 413.4 kB / 7.486 GB, free: 18.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001872/18.66, allocations: 499 kB / 7.487 GB, free: 18.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/18.66, allocations: 0 / 7.487 GB, free: 18.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003716/18.66, allocations: 1.05 MB / 7.488 GB, free: 18.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/18.66, allocations: 6.562 kB / 7.488 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/18.66, allocations: 0 / 7.488 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/18.66, allocations: 124.6 kB / 7.488 GB, free: 18.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/18.66, allocations: 189.8 kB / 7.488 GB, free: 18.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004526/18.67, allocations: 3.856 MB / 7.492 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009287/18.67, allocations: 45.5 kB / 7.492 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/18.67, allocations: 45.52 kB / 7.492 GB, free: 14.51 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] 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 () * 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.0003932/18.67, allocations: 143.1 kB / 7.492 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/18.67, allocations: 58.77 kB / 7.492 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/18.67, allocations: 1.122 MB / 7.493 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/18.67, allocations: 10.88 kB / 7.493 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/18.67, allocations: 7.797 kB / 7.493 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002878/18.67, allocations: 1.368 MB / 7.495 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005395/18.68, allocations: 1.996 MB / 7.497 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.086e-06/18.68, allocations: 0 / 7.497 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/18.68, allocations: 185 kB / 7.497 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003792/18.68, allocations: 140.1 kB / 7.497 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-05/18.68, allocations: 21.88 kB / 7.497 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/18.68, allocations: 1.348 MB / 7.498 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.075e-06/18.68, allocations: 7 kB / 7.498 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00391/18.69, allocations: 1.503 MB / 7.5 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/18.69, allocations: 140.7 kB / 7.5 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/18.69, allocations: 11.47 kB / 7.5 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007925/18.69, allocations: 40.38 kB / 7.5 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/18.69, allocations: 64.8 kB / 7.5 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/18.69, allocations: 52.25 kB / 7.5 GB, free: 11.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002941/18.69, allocations: 210.9 kB / 7.5 GB, free: 11.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.97e-07/18.69, allocations: 3.719 kB / 7.5 GB, free: 11.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009281/18.7, allocations: 2.234 MB / 7.502 GB, free: 11.02 MB / 426.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 () * 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.01621/18.71, allocations: 3.52 MB / 7.506 GB, free: 10.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002277/18.72, allocations: 1.055 MB / 7.507 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.606e-06/18.72, allocations: 5.344 kB / 7.507 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/18.72, allocations: 486 kB / 7.507 GB, free: 10.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/18.72, allocations: 323.2 kB / 7.508 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/18.72, allocations: 1.415 MB / 7.509 GB, free: 9.785 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007274/18.72, allocations: 0.9366 MB / 7.51 GB, free: 9.078 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004299/18.73, allocations: 88.7 kB / 7.51 GB, free: 9.07 MB / 426.7 MB Notification: Performance of SimCode: time 1.779e-06/18.73, allocations: 0 / 7.51 GB, free: 9.07 MB / 426.7 MB Notification: Performance of Templates: time 0.3765/19.1, allocations: 68.48 MB / 7.577 GB, free: 60.96 MB / 426.7 MB