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.864/1.864, allocations: 171.2 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.902e-05, allocations: 0 / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08163/0.08169, allocations: 38.78 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005686/0.08743, allocations: 3.28 MB / 270.2 MB, free: 13.84 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00293/0.09042, allocations: 1.064 MB / 271.2 MB, free: 12.77 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005044/0.09098, allocations: 11.94 kB / 271.2 MB, free: 12.75 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.09131, allocations: 83.41 kB / 271.3 MB, free: 12.67 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009212/0.09224, allocations: 239.2 kB / 271.6 MB, free: 12.44 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.09287, allocations: 139.8 kB / 271.7 MB, free: 12.3 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.09418, allocations: 479.3 kB / 272.2 MB, free: 11.83 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003792/0.0946, allocations: 146.9 kB / 272.3 MB, free: 11.68 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000654/0.09527, allocations: 267.4 kB / 272.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.09594, allocations: 311 kB / 272.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.09616, allocations: 40 kB / 272.9 MB, free: 11.07 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.09633, allocations: 40 kB / 273 MB, free: 11.04 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.09651, allocations: 119.5 kB / 273.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.09678, allocations: 76 kB / 273.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009878/0.09778, allocations: 0.6196 MB / 273.8 MB, free: 10.22 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09782, allocations: 0 / 273.8 MB, free: 10.22 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.09783, allocations: 0 / 273.8 MB, free: 10.22 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.847e-05/0.09787, allocations: 0 / 273.8 MB, free: 10.22 MB / 234.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.002647/0.1005, allocations: 0.8922 MB / 274.7 MB, free: 9.27 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1006, allocations: 12.03 kB / 274.7 MB, free: 9.258 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.1009, allocations: 87.06 kB / 274.8 MB, free: 9.172 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009667/0.1019, allocations: 415.9 kB / 275.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.1022, allocations: 96.41 kB / 275.3 MB, free: 8.613 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1024, allocations: 44 kB / 275.3 MB, free: 8.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.1044, allocations: 0.6522 MB / 275.9 MB, free: 7.848 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.1044, allocations: 3.938 kB / 275.9 MB, free: 7.844 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.841e-05/0.1045, allocations: 28 kB / 276 MB, free: 7.816 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.1046, allocations: 8 kB / 276 MB, free: 7.809 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.1065, allocations: 475.6 kB / 276.4 MB, free: 7.34 MB / 234.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.1118, allocations: 1.916 MB / 278.4 MB, free: 5.301 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/0.1157, allocations: 0.7494 MB / 279.1 MB, free: 4.527 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.1158, allocations: 8.422 kB / 279.1 MB, free: 4.52 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.078e-05/0.1159, allocations: 54.89 kB / 279.2 MB, free: 4.457 MB / 234.7 MB Notification: Performance of pre-optimization done (n=54): time 3.717e-06/0.1159, allocations: 0 / 279.2 MB, free: 4.457 MB / 234.7 MB Notification: Performance of matching and sorting (n=54): time 0.0107/0.1266, allocations: 1.586 MB / 280.8 MB, free: 2.797 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004527/0.1271, allocations: 0.5683 MB / 281.3 MB, free: 2.094 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.1285, allocations: 430.1 kB / 281.8 MB, free: 1.668 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.1288, allocations: 41.7 kB / 281.8 MB, free: 1.621 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.1291, allocations: 303.2 kB / 282.1 MB, free: 1.324 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.1294, allocations: 181.3 kB / 282.3 MB, free: 1.145 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.1295, allocations: 12 kB / 282.3 MB, free: 1.133 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1296, allocations: 334.8 kB / 282.6 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.1311, allocations: 205 kB / 282.8 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.1329, allocations: 424.6 kB / 283.2 MB, free: 108 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.1345, allocations: 276 kB / 283.5 MB, free: 15.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.1346, allocations: 0 / 283.5 MB, free: 15.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.004522/0.1391, allocations: 0.8151 MB / 284.3 MB, free: 14.99 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.64e-05/0.1392, allocations: 43.56 kB / 284.3 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1393, allocations: 0 / 284.3 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.1411, allocations: 230.3 kB / 284.6 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.1426, allocations: 135.8 kB / 284.7 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.1562, allocations: 5.313 MB / 290 MB, free: 8.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.1577, allocations: 91.59 kB / 290.1 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.11e-05/0.1579, allocations: 19.98 kB / 290.1 MB, free: 8.754 MB / 250.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 (47): * Single equations (assignments): 43 * 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.0004781/0.1584, allocations: 194 kB / 290.3 MB, free: 8.555 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.1586, allocations: 67.25 kB / 290.4 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004664/0.1633, allocations: 0.8201 MB / 291.2 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.1633, allocations: 8 kB / 291.2 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1634, allocations: 0 / 291.2 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004109/0.1675, allocations: 1.089 MB / 292.3 MB, free: 6.441 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005746/0.1733, allocations: 1.51 MB / 293.8 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.1733, allocations: 0 / 293.8 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.175, allocations: 131.8 kB / 293.9 MB, free: 4.73 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001585/0.1766, allocations: 189.5 kB / 294.1 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.1767, allocations: 15.94 kB / 294.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009284/0.186, allocations: 3.592 MB / 297.7 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1861, allocations: 8.156 kB / 297.7 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2225/0.4086, allocations: 1.116 MB / 298.9 MB, free: 29.87 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005421/0.4092, allocations: 194.9 kB / 299 MB, free: 29.78 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.4094, allocations: 14.64 kB / 299.1 MB, free: 29.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4105, allocations: 47.45 kB / 299.1 MB, free: 29.78 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.4108, allocations: 50.09 kB / 299.2 MB, free: 29.78 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.4109, allocations: 15.2 kB / 299.2 MB, free: 29.78 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007174/0.4116, allocations: 345.8 kB / 299.5 MB, free: 29.69 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.4116, allocations: 0 / 299.5 MB, free: 29.69 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001324/0.4129, allocations: 208.5 kB / 299.7 MB, free: 29.69 MB / 250.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 (44): * Single equations (assignments): 42 * 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.0002976/0.4133, allocations: 115.9 kB / 299.8 MB, free: 29.6 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004455/0.4178, allocations: 1.071 MB / 300.9 MB, free: 29.19 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.4178, allocations: 1.625 kB / 300.9 MB, free: 29.19 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.4199, allocations: 0.5536 MB / 301.4 MB, free: 28.97 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.4216, allocations: 153.2 kB / 301.6 MB, free: 28.96 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.4261, allocations: 1.593 MB / 303.2 MB, free: 28.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.4267, allocations: 0.8939 MB / 304.1 MB, free: 27.54 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003182/0.427, allocations: 46.08 kB / 304.1 MB, free: 27.53 MB / 250.7 MB Notification: Performance of SimCode: time 1.813e-06/0.427, allocations: 4 kB / 304.1 MB, free: 27.53 MB / 250.7 MB Notification: Performance of Templates: time 0.02942/0.4564, allocations: 13.88 MB / 318 MB, free: 20.8 MB / 250.7 MB