Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.000352, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09592, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.528, allocations: 76.65 MB / 385.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.5283, allocations: 79.64 kB / 385.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03946/0.5678, allocations: 9.813 MB / 395.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.5679, allocations: 0 / 395.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.85e-05/0.5679, allocations: 7.719 kB / 395.5 MB, free: 13.66 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001947/0.5699, allocations: 0.8188 MB / 396.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.5699, allocations: 7.375 kB / 396.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.5701, allocations: 62.09 kB / 396.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007945/0.5709, allocations: 398.4 kB / 396.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.5711, allocations: 63.78 kB / 396.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.878e-05/0.5712, allocations: 29.84 kB / 396.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.5725, allocations: 0.5073 MB / 397.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.5725, allocations: 0 / 397.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.5726, allocations: 23.11 kB / 397.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.5726, allocations: 7.875 kB / 397.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.574, allocations: 388.8 kB / 397.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.5773, allocations: 1.319 MB / 399.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.5787, allocations: 464 kB / 399.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.308e-05/0.5788, allocations: 14.42 kB / 399.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.5788, allocations: 37.94 kB / 399.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 2.996e-06/0.5788, allocations: 0 / 399.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.002641/0.5815, allocations: 0.802 MB / 400.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.5816, allocations: 451.9 kB / 400.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007294/0.5824, allocations: 449.4 kB / 401.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.5825, allocations: 36.23 kB / 401.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.5827, allocations: 275 kB / 401.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.5828, allocations: 128.1 kB / 401.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.5829, allocations: 7.062 kB / 401.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.5829, allocations: 325.3 kB / 402.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006688/0.5836, allocations: 163.4 kB / 402.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.5844, allocations: 308.6 kB / 402.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007039/0.5851, allocations: 207.2 kB / 402.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.5851, allocations: 0 / 402.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001633/0.5868, allocations: 494.5 kB / 403.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.5869, allocations: 37.45 kB / 403.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5869, allocations: 3.938 kB / 403.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.5871, allocations: 51.27 kB / 403.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.5879, allocations: 99.69 kB / 403.4 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.5907, allocations: 2.758 MB / 406.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008098/0.5915, allocations: 72.97 kB / 406.2 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.5916, allocations: 9.094 kB / 406.2 MB, free: 7.441 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (40): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003653/0.592, allocations: 171.7 kB / 406.4 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.5921, allocations: 57.55 kB / 406.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.5923, allocations: 62.39 kB / 406.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.5923, allocations: 3.875 kB / 406.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5923, allocations: 4 kB / 406.5 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001471/0.5938, allocations: 0.7734 MB / 407.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/0.5965, allocations: 1.089 MB / 408.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5965, allocations: 0 / 408.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008353/0.5973, allocations: 100.1 kB / 408.5 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.5974, allocations: 3.938 kB / 408.5 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.5974, allocations: 3.438 kB / 408.5 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.5974, allocations: 4 kB / 408.5 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5974, allocations: 3.906 kB / 408.5 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.5997, allocations: 0.7197 MB / 409.2 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.5999, allocations: 142.2 kB / 409.4 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.6001, allocations: 11.31 kB / 409.4 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.6006, allocations: 32.97 kB / 409.4 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6008, allocations: 30.84 kB / 409.4 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.6008, allocations: 11.22 kB / 409.4 MB, free: 6.043 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000522/0.6013, allocations: 318.3 kB / 409.8 MB, free: 5.961 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6013, allocations: 0 / 409.8 MB, free: 5.961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006956/0.6021, allocations: 153.2 kB / 409.9 MB, free: 5.949 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002098/0.6023, allocations: 118.5 kB / 410 MB, free: 5.852 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.6042, allocations: 0.678 MB / 410.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.6042, allocations: 0 / 410.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006951/0.6049, allocations: 203.3 kB / 410.9 MB, free: 5.543 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009916/0.6059, allocations: 130.6 kB / 411 MB, free: 5.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.6086, allocations: 1.189 MB / 412.2 MB, free: 4.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.6089, allocations: 0.8364 MB / 413.1 MB, free: 3.969 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.6092, allocations: 53.77 kB / 413.1 MB, free: 3.953 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6092, allocations: 0 / 413.1 MB, free: 3.953 MB / 314.7 MB Notification: Performance of Templates: time 0.01799/0.6272, allocations: 8.63 MB / 421.7 MB, free: 15.97 MB / 330.7 MB "Error: Could not read variable ambient1.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable ambient1.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable ambient2.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable ambient2.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable pipe.dpNomMin in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable pipe.dpNomMin from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable pipe.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable pipe.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable pipe.k in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable pipe.k from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable pump.T_q in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable pump.T_q from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! Error: Could not read variable pump.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat. Warning: Get data of variable pump.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat failed! " Variables in the reference:time,heatCapacitor.T,pipe.T Variables in the result:TAmb,ambient1.T,ambient1.T_port,ambient1.constantAmbientPressure,ambient1.constantAmbientTemperature,ambient1.flowPort.H_flow,ambient1.flowPort.h,ambient1.flowPort.m_flow,ambient1.flowPort.medium.cp,ambient1.flowPort.medium.cv,ambient1.flowPort.medium.lamda,ambient1.flowPort.medium.nue,ambient1.flowPort.medium.rho,ambient1.flowPort.p,ambient1.medium.cp,ambient1.medium.cv,ambient1.medium.lamda,ambient1.medium.nue,ambient1.medium.rho,ambient1.usePressureInput,ambient1.useTemperatureInput,ambient2.T,ambient2.T_port,ambient2.constantAmbientPressure,ambient2.constantAmbientTemperature,ambient2.flowPort.H_flow,ambient2.flowPort.h,ambient2.flowPort.m_flow,ambient2.flowPort.medium.cp,ambient2.flowPort.medium.cv,ambient2.flowPort.medium.lamda,ambient2.flowPort.medium.nue,ambient2.flowPort.medium.rho,ambient2.flowPort.p,ambient2.medium.cp,ambient2.medium.cv,ambient2.medium.lamda,ambient2.medium.nue,ambient2.medium.rho,ambient2.usePressureInput,ambient2.useTemperatureInput,convection.Gc,convection.Q_flow,convection.dT,convection.fluid.Q_flow,convection.fluid.T,convection.solid.Q_flow,convection.solid.T,dTCoolant,dTSource,dTtoPipe,heatCapacitor.C,heatCapacitor.T,der(heatCapacitor.T),heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,heatFlow.k,heatFlow.y,medium.cp,medium.cv,medium.lamda,medium.nue,medium.rho,pipe.Q_flow,pipe.Q_friction,pipe.T,pipe.T0,pipe.T0fixed,pipe.T_a,pipe.T_b,pipe.V_flow,pipe.V_flowLaminar,pipe.V_flowNominal,pipe.dT,der(pipe.T),pipe.dp,pipe.dpLaminar,pipe.dpNominal,pipe.flowPort_a.H_flow,pipe.flowPort_a.h,pipe.flowPort_a.m_flow,pipe.flowPort_a.medium.cp,pipe.flowPort_a.medium.cv,pipe.flowPort_a.medium.lamda,pipe.flowPort_a.medium.nue,pipe.flowPort_a.medium.rho,pipe.flowPort_a.p,pipe.flowPort_b.H_flow,pipe.flowPort_b.h,pipe.flowPort_b.m_flow,pipe.flowPort_b.medium.cp,pipe.flowPort_b.medium.cv,pipe.flowPort_b.medium.lamda,pipe.flowPort_b.medium.nue,pipe.flowPort_b.medium.rho,pipe.flowPort_b.p,pipe.frictionLoss,pipe.h_g,pipe.heatPort.Q_flow,pipe.heatPort.T,pipe.m,pipe.medium.cp,pipe.medium.cv,pipe.medium.lamda,pipe.medium.nue,pipe.medium.rho,pipe.pressureDrop,pipe.tapT,pipe.volumeFlow,prescribedHeatFlow.Q_flow,prescribedHeatFlow.T_ref,prescribedHeatFlow.alpha,prescribedHeatFlow.port.Q_flow,prescribedHeatFlow.port.T,pump.Q_flow,pump.T,pump.T0,pump.T0fixed,pump.T_a,pump.T_b,pump.V_flow,pump.constantVolumeFlow,pump.dT,pump.dp,pump.flowPort_a.H_flow,pump.flowPort_a.h,pump.flowPort_a.m_flow,pump.flowPort_a.medium.cp,pump.flowPort_a.medium.cv,pump.flowPort_a.medium.lamda,pump.flowPort_a.medium.nue,pump.flowPort_a.medium.rho,pump.flowPort_a.p,pump.flowPort_b.H_flow,pump.flowPort_b.h,pump.flowPort_b.m_flow,pump.flowPort_b.medium.cp,pump.flowPort_b.medium.cv,pump.flowPort_b.medium.lamda,pump.flowPort_b.medium.nue,pump.flowPort_b.medium.rho,pump.flowPort_b.p,pump.m,pump.medium.cp,pump.medium.cv,pump.medium.lamda,pump.medium.nue,pump.medium.rho,pump.tapT,pump.useVolumeFlowInput,pump.volumeFlow,thermalConductance.k,thermalConductance.y,time,volumeFlow.add.k1,volumeFlow.add.k2,volumeFlow.add.u1,volumeFlow.add.u2,volumeFlow.add.y,volumeFlow.duration_1,volumeFlow.duration_2,volumeFlow.height_1,volumeFlow.height_2,volumeFlow.interval,volumeFlow.offset,volumeFlow.ramp1.duration,volumeFlow.ramp1.height,volumeFlow.ramp1.offset,volumeFlow.ramp1.startTime,volumeFlow.ramp1.y,volumeFlow.ramp2.duration,volumeFlow.ramp2.height,volumeFlow.ramp2.offset,volumeFlow.ramp2.startTime,volumeFlow.ramp2.y,volumeFlow.startTime,volumeFlow.y