Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass") Notification: Performance of loadModel(Modelica): time 1.628/1.628, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.101e-05, allocations: 3.938 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2091, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.3157, allocations: 70.9 MB / 334.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.316, allocations: 71.97 kB / 334.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05842/0.3745, allocations: 9.434 MB / 344.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.36e-06/0.3745, allocations: 0 / 344.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.675e-05/0.3746, allocations: 8 kB / 344.2 MB, free: 9.289 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002582/0.3772, allocations: 0.722 MB / 344.9 MB, free: 8.512 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.3773, allocations: 8.031 kB / 344.9 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.3776, allocations: 63.34 kB / 345 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.3789, allocations: 381.8 kB / 345.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002216/0.3792, allocations: 58.81 kB / 345.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.3793, allocations: 35.95 kB / 345.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.381, allocations: 436.4 kB / 345.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.381, allocations: 0 / 345.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.3812, allocations: 20 kB / 345.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.3812, allocations: 8 kB / 345.9 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3826, allocations: 265.5 kB / 346.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/0.3864, allocations: 1.261 MB / 347.4 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007483/0.3872, allocations: 367.8 kB / 347.8 MB, free: 5.441 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.3875, allocations: 152.8 kB / 347.9 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.605e-05/0.3876, allocations: 11.95 kB / 347.9 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.3877, allocations: 38.56 kB / 348 MB, free: 5.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.513e-06/0.3877, allocations: 0 / 348 MB, free: 5.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009884/0.3887, allocations: 351.2 kB / 348.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002666/0.389, allocations: 448.9 kB / 348.7 MB, free: 4.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.3896, allocations: 391.2 kB / 349.1 MB, free: 3.949 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.3897, allocations: 33.7 kB / 349.2 MB, free: 3.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.3899, allocations: 263 kB / 349.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.3901, allocations: 126.2 kB / 349.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.3901, allocations: 8 kB / 349.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3903, allocations: 322.8 kB / 349.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.3906, allocations: 104 kB / 350 MB, free: 3.094 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/0.3911, allocations: 254.1 kB / 350.2 MB, free: 2.793 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.3915, allocations: 153.7 kB / 350.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.46e-06/0.3915, allocations: 4 kB / 350.4 MB, free: 2.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009629/0.3925, allocations: 396.8 kB / 350.7 MB, free: 2.227 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.3925, allocations: 29.7 kB / 350.8 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.356e-06/0.3926, allocations: 0 / 350.8 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002081/0.3928, allocations: 49.7 kB / 350.8 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/0.3934, allocations: 91.91 kB / 350.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/0.3966, allocations: 2.728 MB / 353.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.3971, allocations: 67.77 kB / 353.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/0.3972, allocations: 8 kB / 353.7 MB, free: 14.97 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 (38): * Single equations (assignments): 35 * 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.0001811/0.3974, allocations: 140.3 kB / 353.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3975, allocations: 47.44 kB / 353.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.3977, allocations: 52.75 kB / 354 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.545e-06/0.3977, allocations: 8.656 kB / 354 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.293e-06/0.3977, allocations: 0 / 354 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009327/0.3987, allocations: 0.6764 MB / 354.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.4007, allocations: 0.9391 MB / 355.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.923e-06/0.4007, allocations: 3.938 kB / 355.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006521/0.4013, allocations: 107.9 kB / 355.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.892e-06/0.4014, allocations: 0 / 355.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.4014, allocations: 8 kB / 355.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.845e-06/0.4014, allocations: 0 / 355.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.937e-06/0.4014, allocations: 0 / 355.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.4026, allocations: 0.5616 MB / 356.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.4028, allocations: 128.4 kB / 356.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.438e-05/0.4029, allocations: 20.05 kB / 356.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.4034, allocations: 31.98 kB / 356.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/0.4035, allocations: 23.95 kB / 356.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.4035, allocations: 15.94 kB / 356.5 MB, free: 12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005312/0.4041, allocations: 305.2 kB / 356.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.66e-07/0.4041, allocations: 0 / 356.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006228/0.4047, allocations: 139.8 kB / 356.9 MB, free: 11.57 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.0002184/0.405, allocations: 123.2 kB / 357 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.4061, allocations: 0.5574 MB / 357.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.386e-06/0.4061, allocations: 3.938 kB / 357.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.4065, allocations: 151.9 kB / 357.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.4073, allocations: 114 kB / 357.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.409, allocations: 0.6841 MB / 358.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005782/0.4096, allocations: 0.8315 MB / 359.4 MB, free: 9.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.4099, allocations: 47.42 kB / 359.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of SimCode: time 1.578e-06/0.4099, allocations: 0 / 359.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of Templates: time 0.01509/0.425, allocations: 8.216 MB / 367.6 MB, free: 0.7773 MB / 314.7 MB "Error: Could not read variable ambient1.h in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable ambient1.h from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable ambient2.h in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable ambient2.h from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.dpNomMin in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.dpNomMin from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.h in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.h from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.k in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.k from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pump.T_q in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pump.T_q from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pump.h in file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pump.h from file Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! " Variables in the reference:time,heatCapacitor.T,pipe.T Variables in the result:TAmb,TMass,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,dTCoolant,dTMass,dTtoPipe,heatCapacitor.C,heatCapacitor.T,der(heatCapacitor.T),heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,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,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,thermalConductor.G,thermalConductor.Q_flow,thermalConductor.dT,thermalConductor.port_a.Q_flow,thermalConductor.port_a.T,thermalConductor.port_b.Q_flow,thermalConductor.port_b.T,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