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.689/1.689, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.809e-05, allocations: 0 / 225 MB, free: 2.828 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2087, allocations: 38.77 MB / 263.8 MB, free: 9.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3195, allocations: 72.78 MB / 336.5 MB, free: 1 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.3198, allocations: 67.97 kB / 336.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05704/0.3769, allocations: 13.75 MB / 350.4 MB, free: 3.113 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.316e-06/0.3769, allocations: 4 kB / 350.4 MB, free: 3.109 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.574e-05/0.377, allocations: 12 kB / 350.4 MB, free: 3.098 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001951/0.3789, allocations: 0.8721 MB / 351.2 MB, free: 2.164 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.379, allocations: 12.03 kB / 351.3 MB, free: 2.152 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.3793, allocations: 87 kB / 351.3 MB, free: 2.066 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009837/0.3803, allocations: 451.9 kB / 351.8 MB, free: 1.586 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.3805, allocations: 96.39 kB / 351.9 MB, free: 1.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3806, allocations: 51.89 kB / 351.9 MB, free: 1.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.3819, allocations: 0.5918 MB / 352.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.382, allocations: 7.938 kB / 352.5 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.192e-05/0.3821, allocations: 20 kB / 352.5 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.3821, allocations: 8 kB / 352.6 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.3831, allocations: 373.9 kB / 352.9 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004503/0.3877, allocations: 1.871 MB / 354.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.3901, allocations: 0.6624 MB / 355.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006146/0.3908, allocations: 234.5 kB / 355.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.1e-05/0.3909, allocations: 8.547 kB / 355.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.3909, allocations: 47.12 kB / 355.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.79e-06/0.391, allocations: 0 / 355.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002471/0.3934, allocations: 0.6728 MB / 356.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003504/0.3938, allocations: 0.5645 MB / 357 MB, free: 12.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008921/0.3947, allocations: 460.9 kB / 357.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.3949, allocations: 41.7 kB / 357.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.3952, allocations: 307.2 kB / 357.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.3954, allocations: 189.2 kB / 357.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.3955, allocations: 16 kB / 358 MB, free: 11.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3957, allocations: 326.8 kB / 358.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004585/0.3961, allocations: 161.1 kB / 358.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000701/0.3969, allocations: 371.5 kB / 358.8 MB, free: 10.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005717/0.3974, allocations: 230.2 kB / 359 MB, free: 9.852 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.883e-06/0.3975, allocations: 0 / 359 MB, free: 9.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002512/0.4, allocations: 0.7058 MB / 359.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.4001, allocations: 33.7 kB / 359.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.624e-06/0.4001, allocations: 0 / 359.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.4011, allocations: 202.5 kB / 360 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.4022, allocations: 139.8 kB / 360.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008632/0.4108, allocations: 5.028 MB / 365.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008822/0.4118, allocations: 87.64 kB / 365.2 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.015e-05/0.4119, allocations: 16 kB / 365.2 MB, free: 3.203 MB / 314.7 MB 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.0002311/0.4121, allocations: 145.1 kB / 365.4 MB, free: 3.055 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.4123, allocations: 67.25 kB / 365.4 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002497/0.4148, allocations: 0.7223 MB / 366.2 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.4148, allocations: 8 kB / 366.2 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.561e-06/0.4149, allocations: 0 / 366.2 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002361/0.4172, allocations: 0.9803 MB / 367.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1862/0.6034, allocations: 1.451 MB / 368.6 MB, free: 89.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.994e-06/0.6035, allocations: 0.5 kB / 368.6 MB, free: 89.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.6046, allocations: 141 kB / 368.7 MB, free: 89.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008823/0.6055, allocations: 152.2 kB / 368.9 MB, free: 89.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/0.6056, allocations: 13.3 kB / 368.9 MB, free: 89.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005282/0.6109, allocations: 3.408 MB / 372.3 MB, free: 86.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.804e-06/0.611, allocations: 0 / 372.3 MB, free: 86.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002836/0.6138, allocations: 0.9851 MB / 373.3 MB, free: 86.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.6143, allocations: 193.1 kB / 373.5 MB, free: 86.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.6144, allocations: 18.11 kB / 373.5 MB, free: 86.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/0.615, allocations: 47.2 kB / 373.5 MB, free: 86.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.6152, allocations: 44.39 kB / 373.6 MB, free: 86.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.6152, allocations: 16.59 kB / 373.6 MB, free: 86.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000552/0.6158, allocations: 367 kB / 374 MB, free: 86.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.5e-07/0.6158, allocations: 0 / 374 MB, free: 86.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009238/0.6167, allocations: 223.5 kB / 374.2 MB, free: 86.34 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.0002794/0.617, allocations: 134.8 kB / 374.3 MB, free: 86.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.6202, allocations: 0.8925 MB / 375.2 MB, free: 85.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.6202, allocations: 3.781 kB / 375.2 MB, free: 85.87 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.622, allocations: 0.4892 MB / 375.7 MB, free: 85.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.6238, allocations: 156.6 kB / 375.9 MB, free: 85.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.6277, allocations: 0.9608 MB / 376.8 MB, free: 85.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.6283, allocations: 0.8986 MB / 377.7 MB, free: 84.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.6288, allocations: 62.22 kB / 377.8 MB, free: 84.63 MB / 314.7 MB Notification: Performance of SimCode: time 2.37e-06/0.6288, allocations: 0 / 377.8 MB, free: 84.63 MB / 314.7 MB Notification: Performance of Templates: time 0.03381/0.6626, allocations: 14.24 MB / 392 MB, free: 77.12 MB / 314.7 MB