Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadModel(Buildings): time 4.069/4.069, allocations: 464.6 MB / 476.8 MB, free: 2.113 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.103e-05, allocations: 4 kB / 0.5731 GB, free: 5.723 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.225, allocations: 107.2 MB / 0.6778 GB, free: 10.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8454/1.07, allocations: 139.5 MB / 0.814 GB, free: 12.45 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/1.071, allocations: 93.16 kB / 0.8141 GB, free: 12.45 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02929/1.1, allocations: 8.706 MB / 0.8226 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.976e-06/1.1, allocations: 0 / 0.8226 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.221e-05/1.1, allocations: 19.44 kB / 0.8226 GB, free: 11.01 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001282/1.101, allocations: 0.7364 MB / 0.8234 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/1.101, allocations: 7.531 kB / 0.8234 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/1.102, allocations: 66.02 kB / 0.8234 GB, free: 10.4 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/1.102, allocations: 423.6 kB / 0.8238 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.519e-05/1.102, allocations: 34.69 kB / 0.8239 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.159e-05/1.102, allocations: 49.22 kB / 0.8239 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009719/1.103, allocations: 0.4949 MB / 0.8244 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/1.103, allocations: 7.891 kB / 0.8244 GB, free: 9.914 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/1.103, allocations: 18.12 kB / 0.8244 GB, free: 9.914 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/1.104, allocations: 14.95 kB / 0.8244 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007834/1.104, allocations: 332.5 kB / 0.8247 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/1.107, allocations: 1.908 MB / 0.8266 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007507/1.108, allocations: 295.5 kB / 0.8269 GB, free: 8.598 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/1.108, allocations: 133.5 kB / 0.827 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.521e-05/1.108, allocations: 3.844 kB / 0.827 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004101/1.108, allocations: 192.7 kB / 0.8272 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=34): time 3.99e-06/1.108, allocations: 0 / 0.8272 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of matching and sorting (n=34): time 0.000686/1.109, allocations: 291.6 kB / 0.8275 GB, free: 8.418 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/1.109, allocations: 110.3 kB / 0.8276 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/1.11, allocations: 364.2 kB / 0.8279 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/1.11, allocations: 48.75 kB / 0.828 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/1.11, allocations: 244.3 kB / 0.8282 GB, free: 7.965 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 8.533e-05/1.11, allocations: 93.39 kB / 0.8283 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/1.11, allocations: 11.59 kB / 0.8283 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.982e-05/1.11, allocations: 357 kB / 0.8287 GB, free: 7.57 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/1.11, allocations: 122.8 kB / 0.8288 GB, free: 7.566 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/1.111, allocations: 239.6 kB / 0.829 GB, free: 7.43 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/1.111, allocations: 154.8 kB / 0.8291 GB, free: 7.383 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.201e-06/1.111, allocations: 0 / 0.8291 GB, free: 7.383 MB / 0.6355 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000933/1.112, allocations: 453.7 kB / 0.8296 GB, free: 7.242 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/1.112, allocations: 37.5 kB / 0.8296 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.112, allocations: 7.812 kB / 0.8296 GB, free: 7.203 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.169e-05/1.112, allocations: 7.797 kB / 0.8296 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/1.113, allocations: 85.86 kB / 0.8297 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/1.113, allocations: 11.73 kB / 0.8297 GB, free: 7.172 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/1.113, allocations: 77.8 kB / 0.8298 GB, free: 7.145 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/1.113, allocations: 23.41 kB / 0.8298 GB, free: 7.141 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001536/1.114, allocations: 143.7 kB / 0.83 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.684e-05/1.114, allocations: 42.89 kB / 0.83 GB, free: 7 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007919/1.114, allocations: 331.9 kB / 0.8303 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.097e-06/1.115, allocations: 3.875 kB / 0.8303 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.396e-06/1.115, allocations: 0 / 0.8303 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.201e-06/1.115, allocations: 7.984 kB / 0.8303 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/1.116, allocations: 0.9159 MB / 0.8312 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.876e-06/1.116, allocations: 0 / 0.8312 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/1.117, allocations: 64.83 kB / 0.8313 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/1.117, allocations: 3.656 kB / 0.8313 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/1.117, allocations: 7.562 kB / 0.8313 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.162e-06/1.117, allocations: 0 / 0.8313 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.117, allocations: 4 kB / 0.8313 GB, free: 6.414 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/1.118, allocations: 0.5693 MB / 0.8319 GB, free: 22.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/1.118, allocations: 159.3 kB / 0.832 GB, free: 22.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.687e-05/1.118, allocations: 9.938 kB / 0.832 GB, free: 22.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005106/1.119, allocations: 46.58 kB / 0.8321 GB, free: 22.05 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/1.119, allocations: 60.05 kB / 0.8321 GB, free: 22.02 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/1.119, allocations: 10.81 kB / 0.8321 GB, free: 22.02 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003914/1.119, allocations: 269.7 kB / 0.8324 GB, free: 21.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.5e-07/1.119, allocations: 0 / 0.8324 GB, free: 21.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005688/1.12, allocations: 89.38 kB / 0.8325 GB, free: 21.9 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002241/1.12, allocations: 130.2 kB / 0.8326 GB, free: 21.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000765/1.121, allocations: 370 kB / 0.8329 GB, free: 21.71 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.451e-06/1.121, allocations: 0 / 0.8329 GB, free: 21.71 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003412/1.121, allocations: 147.8 kB / 0.8331 GB, free: 21.71 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/1.122, allocations: 75.52 kB / 0.8332 GB, free: 21.69 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/1.123, allocations: 0.5332 MB / 0.8337 GB, free: 21.44 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/1.124, allocations: 0.8375 MB / 0.8345 GB, free: 20.67 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003198/1.124, allocations: 50.25 kB / 0.8345 GB, free: 20.64 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/1.124, allocations: 38.23 kB / 0.8346 GB, free: 20.63 MB / 0.6511 GB Notification: Performance of SimCode: time 1.649e-06/1.124, allocations: 0 / 0.8346 GB, free: 20.63 MB / 0.6511 GB Notification: Performance of Templates: time 0.01329/1.138, allocations: 4.787 MB / 0.8393 GB, free: 18.29 MB / 0.6511 GB