Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.977e-05, allocations: 2.031 kB / 292.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09144, allocations: 50.41 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.4591, allocations: 82.94 MB / 425.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.4594, allocations: 77 kB / 425.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05616/0.5156, allocations: 13.8 MB / 439.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.128e-06/0.5156, allocations: 0 / 439.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.696e-05/0.5157, allocations: 12 kB / 439.4 MB, free: 15.69 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001939/0.5176, allocations: 0.9046 MB / 440.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.5177, allocations: 8.031 kB / 440.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.5179, allocations: 91.06 kB / 440.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009526/0.5189, allocations: 450.8 kB / 440.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.5191, allocations: 94.09 kB / 440.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.5192, allocations: 44.88 kB / 440.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.5205, allocations: 0.6036 MB / 441.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.5206, allocations: 7.938 kB / 441.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.217e-05/0.5206, allocations: 19.38 kB / 441.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.5207, allocations: 12 kB / 441.6 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009863/0.5217, allocations: 374.3 kB / 442 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/0.5261, allocations: 1.893 MB / 443.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002316/0.5285, allocations: 0.6605 MB / 444.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.5291, allocations: 235.9 kB / 444.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.514e-05/0.5291, allocations: 16.3 kB / 444.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.5292, allocations: 40.44 kB / 444.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 4.322e-06/0.5292, allocations: 0 / 444.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.002403/0.5316, allocations: 0.6729 MB / 445.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003504/0.532, allocations: 0.5645 MB / 446 MB, free: 9.859 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008939/0.5329, allocations: 479 kB / 446.5 MB, free: 9.496 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.5331, allocations: 41.45 kB / 446.5 MB, free: 9.457 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.5333, allocations: 307.6 kB / 446.8 MB, free: 9.242 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.5336, allocations: 190.2 kB / 447 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.5336, allocations: 15 kB / 447 MB, free: 9.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.5338, allocations: 332.4 kB / 447.4 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004332/0.5343, allocations: 157.2 kB / 447.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006659/0.5349, allocations: 375.6 kB / 447.9 MB, free: 8.301 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005325/0.5355, allocations: 220.4 kB / 448.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.507e-06/0.5355, allocations: 0 / 448.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002305/0.5378, allocations: 0.7076 MB / 448.8 MB, free: 7.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.5379, allocations: 33.7 kB / 448.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5379, allocations: 3.984 kB / 448.8 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009794/0.5389, allocations: 199.4 kB / 449 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.54, allocations: 139.5 kB / 449.2 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008286/0.5483, allocations: 5.014 MB / 454.2 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008589/0.5492, allocations: 86.36 kB / 454.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.5493, allocations: 19.06 kB / 454.3 MB, free: 2.27 MB / 362.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.0002343/0.5495, allocations: 138.1 kB / 454.4 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.5497, allocations: 83.19 kB / 454.5 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.5522, allocations: 0.7245 MB / 455.2 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.5522, allocations: 4 kB / 455.2 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.5523, allocations: 128 / 455.2 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00233/0.5546, allocations: 0.9841 MB / 456.2 MB, free: 260 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003945/0.5586, allocations: 1.464 MB / 457.7 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.213e-06/0.5586, allocations: 0 / 457.7 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.5597, allocations: 135.8 kB / 457.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008179/0.5606, allocations: 153.6 kB / 458 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.655e-05/0.5606, allocations: 15.98 kB / 458 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005962/0.5666, allocations: 3.396 MB / 461.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.925e-06/0.5667, allocations: 4.031 kB / 461.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/0.5696, allocations: 0.9842 MB / 462.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.5702, allocations: 208.1 kB / 462.6 MB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.5703, allocations: 12.19 kB / 462.6 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005765/0.5709, allocations: 43.92 kB / 462.6 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.5711, allocations: 56.44 kB / 462.7 MB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.318e-05/0.5712, allocations: 11.98 kB / 462.7 MB, free: 9.398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006863/0.5719, allocations: 373.6 kB / 463.1 MB, free: 9.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.001e-06/0.5719, allocations: 0 / 463.1 MB, free: 9.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001023/0.5729, allocations: 227.8 kB / 463.3 MB, free: 8.812 MB / 378.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.0002628/0.5732, allocations: 139 kB / 463.4 MB, free: 8.668 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.5754, allocations: 0.8888 MB / 464.3 MB, free: 7.734 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.006e-06/0.5754, allocations: 0 / 464.3 MB, free: 7.734 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.5766, allocations: 0.4899 MB / 464.8 MB, free: 7.227 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5777, allocations: 157.9 kB / 464.9 MB, free: 7.074 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.5803, allocations: 0.9431 MB / 465.9 MB, free: 6.094 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.581, allocations: 0.8997 MB / 466.8 MB, free: 5.164 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/0.5813, allocations: 55.42 kB / 466.8 MB, free: 5.113 MB / 378.7 MB Notification: Performance of SimCode: time 1.779e-06/0.5813, allocations: 0 / 466.8 MB, free: 5.113 MB / 378.7 MB Notification: Performance of Templates: time 0.02586/0.6072, allocations: 14.59 MB / 481.4 MB, free: 6.555 MB / 394.7 MB