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.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.201e-05, allocations: 4.562 kB / 255.4 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07687/0.07692, allocations: 44.49 MB / 299.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3364/0.4133, allocations: 78.13 MB / 378 MB, free: 22.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4136, allocations: 69.08 kB / 378 MB, free: 22.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05266/0.4663, allocations: 13.78 MB / 391.8 MB, free: 20.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.064e-06/0.4663, allocations: 0 / 391.8 MB, free: 20.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.4664, allocations: 15.66 kB / 391.8 MB, free: 20.3 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001567/0.468, allocations: 0.8834 MB / 392.7 MB, free: 19.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.468, allocations: 11.62 kB / 392.7 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.4682, allocations: 82.19 kB / 392.8 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007812/0.469, allocations: 460.8 kB / 393.3 MB, free: 19.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.4692, allocations: 101.3 kB / 393.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/0.4693, allocations: 45 kB / 393.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.4704, allocations: 0.5907 MB / 394 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.4704, allocations: 0 / 394 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.4705, allocations: 25.86 kB / 394 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4705, allocations: 15.81 kB / 394 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000888/0.4714, allocations: 371.5 kB / 394.4 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003823/0.4753, allocations: 1.867 MB / 396.3 MB, free: 18.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.4774, allocations: 0.6646 MB / 396.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.478, allocations: 226.8 kB / 397.2 MB, free: 18.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.903e-05/0.478, allocations: 23.62 kB / 397.2 MB, free: 18.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.4781, allocations: 42.09 kB / 397.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.297e-06/0.4781, allocations: 0 / 397.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002204/0.4803, allocations: 0.6712 MB / 397.9 MB, free: 18.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.4804, allocations: 0.5643 MB / 398.5 MB, free: 17.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007113/0.4812, allocations: 463.8 kB / 398.9 MB, free: 17.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.4813, allocations: 41.42 kB / 399 MB, free: 17.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.4815, allocations: 304.2 kB / 399.2 MB, free: 17.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.4816, allocations: 191.9 kB / 399.4 MB, free: 16.9 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.263e-05/0.4817, allocations: 11.41 kB / 399.4 MB, free: 16.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.4818, allocations: 332.6 kB / 399.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.4822, allocations: 163 kB / 399.9 MB, free: 16.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.4827, allocations: 371.8 kB / 400.3 MB, free: 16.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.4832, allocations: 233.7 kB / 400.5 MB, free: 16.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.324e-06/0.4832, allocations: 0 / 400.5 MB, free: 16.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00216/0.4854, allocations: 0.7045 MB / 401.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.13e-05/0.4855, allocations: 38.86 kB / 401.3 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.975e-06/0.4855, allocations: 3.938 kB / 401.3 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009139/0.4864, allocations: 199.5 kB / 401.5 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.4874, allocations: 132.2 kB / 401.6 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007041/0.4944, allocations: 5.036 MB / 406.6 MB, free: 28.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008454/0.4953, allocations: 81.2 kB / 406.7 MB, free: 28.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.4954, allocations: 25.11 kB / 406.7 MB, free: 28.12 MB / 330.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.0002124/0.4957, allocations: 142.9 kB / 406.9 MB, free: 28.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.4958, allocations: 66.56 kB / 406.9 MB, free: 27.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.498, allocations: 0.7152 MB / 407.7 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.4981, allocations: 7.594 kB / 407.7 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.638e-06/0.4981, allocations: 0 / 407.7 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002012/0.5001, allocations: 0.9779 MB / 408.6 MB, free: 27.31 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.5036, allocations: 1.456 MB / 410.1 MB, free: 26.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.48e-06/0.5036, allocations: 0 / 410.1 MB, free: 26.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009649/0.5046, allocations: 141.2 kB / 410.2 MB, free: 26.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007676/0.5054, allocations: 153.4 kB / 410.4 MB, free: 26.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-05/0.5055, allocations: 23.03 kB / 410.4 MB, free: 26.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006004/0.5115, allocations: 3.402 MB / 413.8 MB, free: 24.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.931e-06/0.5116, allocations: 0 / 413.8 MB, free: 24.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002624/0.5142, allocations: 0.9909 MB / 414.8 MB, free: 23.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004557/0.5147, allocations: 197.9 kB / 415 MB, free: 23.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.5148, allocations: 14.59 kB / 415 MB, free: 23.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/0.5154, allocations: 45.23 kB / 415 MB, free: 23.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.5156, allocations: 46.17 kB / 415.1 MB, free: 23.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.044e-05/0.5156, allocations: 15.56 kB / 415.1 MB, free: 23.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005834/0.5162, allocations: 362.3 kB / 415.5 MB, free: 23.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.025e-06/0.5163, allocations: 0 / 415.5 MB, free: 23.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001003/0.5173, allocations: 220.7 kB / 415.7 MB, free: 23.74 MB / 330.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.0002699/0.5176, allocations: 136.9 kB / 415.8 MB, free: 23.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.5195, allocations: 0.8991 MB / 416.7 MB, free: 23.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.03e-06/0.5196, allocations: 0 / 416.7 MB, free: 23.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.5211, allocations: 497.8 kB / 417.2 MB, free: 22.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.5229, allocations: 162.3 kB / 417.4 MB, free: 22.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.5264, allocations: 0.9109 MB / 418.3 MB, free: 22.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008032/0.5272, allocations: 0.8971 MB / 419.2 MB, free: 21.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.5276, allocations: 60.72 kB / 419.2 MB, free: 21.83 MB / 330.7 MB Notification: Performance of SimCode: time 2.863e-06/0.5277, allocations: 4 kB / 419.2 MB, free: 21.83 MB / 330.7 MB Notification: Performance of Templates: time 0.03408/0.5618, allocations: 14.29 MB / 433.5 MB, free: 15.31 MB / 330.7 MB