Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.645e-05, allocations: 7.938 kB / 222.5 MB, free: 8.719 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07719, allocations: 38.77 MB / 261.3 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.3931, allocations: 72.13 MB / 333.4 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.3934, allocations: 70.58 kB / 333.5 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05489/0.4483, allocations: 13.62 MB / 347.1 MB, free: 5.047 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4483, allocations: 0 / 347.1 MB, free: 5.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.696e-05/0.4484, allocations: 12 kB / 347.1 MB, free: 5.035 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001894/0.4503, allocations: 0.8764 MB / 348 MB, free: 4.145 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4503, allocations: 15.97 kB / 348 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.4506, allocations: 87.06 kB / 348.1 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000974/0.4516, allocations: 440.7 kB / 348.5 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.4518, allocations: 91.39 kB / 348.6 MB, free: 3.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.4519, allocations: 35.94 kB / 348.6 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009292/0.4528, allocations: 352.7 kB / 349 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.454, allocations: 0.5424 MB / 349.5 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.454, allocations: 0 / 349.5 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/0.4541, allocations: 4 kB / 349.5 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.4541, allocations: 8 kB / 349.5 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004116/0.4582, allocations: 1.775 MB / 351.3 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002229/0.4605, allocations: 0.6453 MB / 352 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005072/0.461, allocations: 209.3 kB / 352.2 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.575e-05/0.4611, allocations: 20.53 kB / 352.2 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.4612, allocations: 39.12 kB / 352.2 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 3.78e-06/0.4612, allocations: 0 / 352.2 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.002491/0.4637, allocations: 0.661 MB / 352.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003554/0.4641, allocations: 0.5684 MB / 353.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/0.4649, allocations: 397.4 kB / 353.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.465, allocations: 29.7 kB / 353.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.4653, allocations: 307.7 kB / 354.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.4655, allocations: 185.2 kB / 354.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.4656, allocations: 4 kB / 354.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.4658, allocations: 342.7 kB / 354.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.4662, allocations: 145.1 kB / 354.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006529/0.4668, allocations: 363.4 kB / 355.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.4673, allocations: 187.6 kB / 355.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.201e-06/0.4674, allocations: 0 / 355.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002424/0.4698, allocations: 0.6689 MB / 356 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/0.4699, allocations: 36.67 kB / 356.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.214e-06/0.4699, allocations: 0 / 356.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.4711, allocations: 206.5 kB / 356.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000949/0.472, allocations: 135.8 kB / 356.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00814/0.4802, allocations: 4.869 MB / 361.3 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/0.4811, allocations: 71.83 kB / 361.4 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.086e-05/0.4811, allocations: 16 kB / 361.4 MB, free: 6.793 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real valve.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003127/0.4815, allocations: 138.3 kB / 361.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.4817, allocations: 63.25 kB / 361.6 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.4842, allocations: 0.6945 MB / 362.3 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4842, allocations: 4 kB / 362.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.535e-06/0.4842, allocations: 0 / 362.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002264/0.4865, allocations: 0.9489 MB / 363.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.4903, allocations: 1.343 MB / 364.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.4904, allocations: 3.953 kB / 364.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.4914, allocations: 143.8 kB / 364.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008563/0.4923, allocations: 153.5 kB / 364.8 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-05/0.4924, allocations: 8 kB / 364.9 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005905/0.4983, allocations: 3.293 MB / 368.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.987e-06/0.4983, allocations: 4.031 kB / 368.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.5012, allocations: 0.9451 MB / 369.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.5017, allocations: 188.3 kB / 369.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.5019, allocations: 4 kB / 369.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005476/0.5024, allocations: 31.97 kB / 369.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.5026, allocations: 52.44 kB / 369.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.5027, allocations: 12 kB / 369.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005563/0.5032, allocations: 311 kB / 369.7 MB, free: 14 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.24e-07/0.5033, allocations: 0 / 369.7 MB, free: 14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001029/0.5043, allocations: 199.7 kB / 369.9 MB, free: 13.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002567/0.5046, allocations: 123.1 kB / 370 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.5067, allocations: 0.8652 MB / 370.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.073e-06/0.5067, allocations: 0 / 370.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5079, allocations: 489.3 kB / 371.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.509, allocations: 142.7 kB / 371.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.5116, allocations: 0.9328 MB / 372.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000695/0.5123, allocations: 0.8995 MB / 373.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/0.5126, allocations: 51.42 kB / 373.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.733e-06/0.5126, allocations: 0 / 373.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of Templates: time 0.02437/0.537, allocations: 14.04 MB / 387.4 MB, free: 12.14 MB / 330.7 MB