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.859/1.859, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.539e-05, allocations: 0 / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1401, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3343/0.4745, allocations: 78.11 MB / 377.9 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.4748, allocations: 71.84 kB / 378 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05229/0.5271, allocations: 13.79 MB / 391.8 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.199e-06/0.5271, allocations: 0 / 391.8 MB, free: 20.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.441e-05/0.5272, allocations: 15.61 kB / 391.8 MB, free: 20.23 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.001659/0.5289, allocations: 0.878 MB / 392.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.5289, allocations: 11.75 kB / 392.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.5291, allocations: 85.62 kB / 392.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007355/0.5298, allocations: 449.5 kB / 393.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.53, allocations: 97.94 kB / 393.3 MB, free: 19.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.5301, allocations: 45.75 kB / 393.4 MB, free: 19.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.5312, allocations: 0.6017 MB / 394 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.5312, allocations: 0 / 394 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.5313, allocations: 25.86 kB / 394 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.5313, allocations: 11.81 kB / 394 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009201/0.5323, allocations: 387.2 kB / 394.4 MB, free: 18.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003775/0.5361, allocations: 1.865 MB / 396.3 MB, free: 18.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.5382, allocations: 0.6776 MB / 396.9 MB, free: 18.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000474/0.5388, allocations: 229.7 kB / 397.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.647e-05/0.5388, allocations: 15.98 kB / 397.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.5389, allocations: 46.62 kB / 397.2 MB, free: 18.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.529e-06/0.5389, allocations: 0 / 397.2 MB, free: 18.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002354/0.5413, allocations: 0.7032 MB / 397.9 MB, free: 17.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.5414, allocations: 0.5673 MB / 398.5 MB, free: 17.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007364/0.5422, allocations: 462.4 kB / 398.9 MB, free: 17.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.5423, allocations: 41.2 kB / 399 MB, free: 17.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.5425, allocations: 297.7 kB / 399.3 MB, free: 16.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.5426, allocations: 190.6 kB / 399.5 MB, free: 16.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.5427, allocations: 11.66 kB / 399.5 MB, free: 16.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.5428, allocations: 333.3 kB / 399.8 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/0.5432, allocations: 163.9 kB / 400 MB, free: 16.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/0.5438, allocations: 379.3 kB / 400.3 MB, free: 16.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004808/0.5443, allocations: 227.2 kB / 400.5 MB, free: 16.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.5443, allocations: 0 / 400.5 MB, free: 16.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002559/0.5469, allocations: 0.7374 MB / 401.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.569e-05/0.5469, allocations: 36.88 kB / 401.3 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.547, allocations: 3.953 kB / 401.3 MB, free: 16.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.5481, allocations: 208.6 kB / 401.5 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.5492, allocations: 145.3 kB / 401.7 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.5564, allocations: 5.018 MB / 406.7 MB, free: 28.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000856/0.5573, allocations: 91.47 kB / 406.8 MB, free: 28.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.5574, allocations: 22.09 kB / 406.8 MB, free: 28.05 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.0002128/0.5577, allocations: 142.6 kB / 406.9 MB, free: 27.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.5578, allocations: 66.41 kB / 407 MB, free: 27.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002383/0.5602, allocations: 0.7534 MB / 407.8 MB, free: 27.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.468e-06/0.5602, allocations: 3.75 kB / 407.8 MB, free: 27.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.843e-06/0.5603, allocations: 128 / 407.8 MB, free: 27.79 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002276/0.5625, allocations: 0.9945 MB / 408.8 MB, free: 27.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003427/0.566, allocations: 1.465 MB / 410.2 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.126e-06/0.566, allocations: 0 / 410.2 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000976/0.567, allocations: 135.9 kB / 410.3 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008869/0.5679, allocations: 164.8 kB / 410.5 MB, free: 26.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.89e-05/0.568, allocations: 18.95 kB / 410.5 MB, free: 26.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005644/0.5737, allocations: 3.394 MB / 413.9 MB, free: 24.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.977e-06/0.5737, allocations: 96 / 413.9 MB, free: 24.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.5764, allocations: 0.9916 MB / 414.9 MB, free: 23.88 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004441/0.5769, allocations: 202.2 kB / 415.1 MB, free: 23.74 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.577, allocations: 18.62 kB / 415.1 MB, free: 23.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005673/0.5776, allocations: 42.3 kB / 415.2 MB, free: 23.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.5778, allocations: 46.83 kB / 415.2 MB, free: 23.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.774e-05/0.5778, allocations: 22.73 kB / 415.2 MB, free: 23.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000592/0.5784, allocations: 363 kB / 415.6 MB, free: 23.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.193e-06/0.5785, allocations: 0 / 415.6 MB, free: 23.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000956/0.5794, allocations: 220.8 kB / 415.8 MB, free: 23.62 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.0002314/0.5797, allocations: 125.9 kB / 415.9 MB, free: 23.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001957/0.5817, allocations: 0.9239 MB / 416.9 MB, free: 23.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.057e-06/0.5817, allocations: 0 / 416.9 MB, free: 23.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.5827, allocations: 0.5102 MB / 417.4 MB, free: 22.85 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5838, allocations: 161.4 kB / 417.5 MB, free: 22.83 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.5859, allocations: 0.9055 MB / 418.4 MB, free: 22.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.5865, allocations: 0.9001 MB / 419.3 MB, free: 21.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.5867, allocations: 57.02 kB / 419.4 MB, free: 21.69 MB / 330.7 MB Notification: Performance of SimCode: time 1.992e-06/0.5868, allocations: 0 / 419.4 MB, free: 21.69 MB / 330.7 MB Notification: Performance of Templates: time 0.01919/0.606, allocations: 14.32 MB / 433.7 MB, free: 15.12 MB / 330.7 MB