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.919/1.919, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.004e-05, allocations: 4 kB / 255.3 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07911/0.07916, allocations: 44.5 MB / 299.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4153, allocations: 76.56 MB / 376.4 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.4155, allocations: 71.2 kB / 376.5 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03726/0.4528, allocations: 9.743 MB / 386.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.165e-06/0.4529, allocations: 1.844 kB / 386.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.4529, allocations: 8.688 kB / 386.2 MB, free: 20.7 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.001249/0.4542, allocations: 0.7359 MB / 387 MB, free: 20.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4542, allocations: 8.844 kB / 387 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.4544, allocations: 66.28 kB / 387 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000652/0.4551, allocations: 388.3 kB / 387.4 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.4552, allocations: 67.56 kB / 387.5 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.603e-05/0.4553, allocations: 32.53 kB / 387.5 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008312/0.4561, allocations: 453.4 kB / 387.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.4562, allocations: 5.5 kB / 387.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-05/0.4562, allocations: 15.5 kB / 388 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.4563, allocations: 7.375 kB / 388 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006503/0.4569, allocations: 292.1 kB / 388.3 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.4597, allocations: 1.318 MB / 389.6 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000997/0.4607, allocations: 438.1 kB / 390 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003255/0.4611, allocations: 162.7 kB / 390.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.4611, allocations: 7.922 kB / 390.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.4612, allocations: 38.75 kB / 390.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.873e-06/0.4612, allocations: 0 / 390.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.001031/0.4622, allocations: 399.3 kB / 390.6 MB, free: 18.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.435e-05/0.4623, allocations: 444.8 kB / 391 MB, free: 18.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005793/0.4629, allocations: 396.4 kB / 391.4 MB, free: 18.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.463, allocations: 37.2 kB / 391.5 MB, free: 18.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.4632, allocations: 266.4 kB / 391.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.4633, allocations: 143 kB / 391.9 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.4633, allocations: 3.812 kB / 391.9 MB, free: 17.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.874e-05/0.4634, allocations: 333.9 kB / 392.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.4637, allocations: 112.3 kB / 392.3 MB, free: 17.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.4641, allocations: 252 kB / 392.5 MB, free: 17.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/0.4644, allocations: 167.3 kB / 392.7 MB, free: 17.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.804e-06/0.4645, allocations: 0 / 392.7 MB, free: 17.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001035/0.4655, allocations: 420 kB / 393.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.4656, allocations: 29.64 kB / 393.1 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.838e-06/0.4656, allocations: 0 / 393.1 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.4659, allocations: 65.7 kB / 393.2 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005575/0.4665, allocations: 92.42 kB / 393.3 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.4687, allocations: 2.728 MB / 396 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.4694, allocations: 75.73 kB / 396.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.4694, allocations: 11.19 kB / 396.1 MB, free: 14.73 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 () * 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.0001428/0.4696, allocations: 128 kB / 396.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.4697, allocations: 54.7 kB / 396.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.4699, allocations: 56.28 kB / 396.3 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.965e-06/0.4699, allocations: 3.75 kB / 396.3 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.4699, allocations: 4 kB / 396.4 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00109/0.471, allocations: 0.6792 MB / 397 MB, free: 30.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/0.4728, allocations: 0.9923 MB / 398 MB, free: 29.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-06/0.4728, allocations: 4 kB / 398 MB, free: 29.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.4734, allocations: 103.7 kB / 398.1 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.682e-06/0.4735, allocations: 0 / 398.1 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.4735, allocations: 10.73 kB / 398.1 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.477e-06/0.4735, allocations: 0 / 398.1 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.029e-06/0.4735, allocations: 3.906 kB / 398.1 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.4746, allocations: 0.5822 MB / 398.7 MB, free: 29.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.4748, allocations: 133.8 kB / 398.9 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.495e-05/0.4749, allocations: 11.22 kB / 398.9 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004396/0.4754, allocations: 41.3 kB / 398.9 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.413e-05/0.4755, allocations: 26.39 kB / 398.9 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.4755, allocations: 3.906 kB / 398.9 MB, free: 29.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004931/0.476, allocations: 322.5 kB / 399.3 MB, free: 29.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.055e-06/0.476, allocations: 0 / 399.3 MB, free: 29.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006304/0.4767, allocations: 147.8 kB / 399.4 MB, free: 29.25 MB / 330.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 () * 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.000206/0.4769, allocations: 130.8 kB / 399.5 MB, free: 29.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.478, allocations: 0.5837 MB / 400.1 MB, free: 28.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.6e-06/0.478, allocations: 3.188 kB / 400.1 MB, free: 28.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.4783, allocations: 150.5 kB / 400.3 MB, free: 28.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007977/0.4791, allocations: 133 kB / 400.4 MB, free: 28.81 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.4808, allocations: 0.6946 MB / 401.1 MB, free: 28.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.4813, allocations: 0.8342 MB / 401.9 MB, free: 27.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.4815, allocations: 50.31 kB / 402 MB, free: 27.77 MB / 330.7 MB Notification: Performance of SimCode: time 2.412e-06/0.4816, allocations: 0 / 402 MB, free: 27.77 MB / 330.7 MB Notification: Performance of Templates: time 0.01323/0.4948, allocations: 8.554 MB / 410.5 MB, free: 26.81 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