Running command: "" <> buildModelFMU(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,fileNamePrefix="Buildings_latest_Buildings_Examples_VAVReheat_Controls_Examples_OperationModes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.227/4.227, allocations: 464.6 MB / 476.8 MB, free: 2.121 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.948e-05/3.981e-05, allocations: 4 kB / 0.5732 GB, free: 5.633 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2386, allocations: 107.2 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9205/1.159, allocations: 145.3 MB / 0.8197 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/1.16, allocations: 88.48 kB / 0.8198 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.106/1.266, allocations: 27.93 MB / 0.847 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.974e-06/1.266, allocations: 0 / 0.847 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001237/1.266, allocations: 43.61 kB / 0.8471 GB, free: 14.91 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.004432/1.27, allocations: 1.369 MB / 0.8484 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/1.27, allocations: 8.031 kB / 0.8484 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006425/1.271, allocations: 213.8 kB / 0.8486 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/1.272, allocations: 168.6 kB / 0.8488 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/1.274, allocations: 0.7372 MB / 0.8495 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/1.274, allocations: 128.4 kB / 0.8496 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004254/1.275, allocations: 169.3 kB / 0.8498 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004391/1.279, allocations: 1.59 MB / 0.8513 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-05/1.279, allocations: 3.938 kB / 0.8513 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/1.279, allocations: 62.25 kB / 0.8514 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-05/1.279, allocations: 43.95 kB / 0.8514 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003617/1.283, allocations: 1.118 MB / 0.8525 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/1.298, allocations: 5.737 MB / 0.8581 GB, free: 5.785 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/1.302, allocations: 1.05 MB / 0.8592 GB, free: 5.055 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/1.304, allocations: 491.3 kB / 0.8596 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001574/1.304, allocations: 23.84 kB / 0.8597 GB, free: 4.742 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002128/1.307, allocations: 0.5916 MB / 0.8602 GB, free: 4.312 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=120): time 1.033e-05/1.307, allocations: 3.984 kB / 0.8602 GB, free: 4.309 MB / 0.6511 GB Notification: Performance of matching and sorting (n=120): time 0.003794/1.31, allocations: 0.9315 MB / 0.8612 GB, free: 3.605 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/1.311, allocations: 156.2 kB / 0.8613 GB, free: 3.43 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/1.312, allocations: 0.561 MB / 0.8618 GB, free: 2.996 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0003961/1.313, allocations: 78.25 kB / 0.8619 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008629/1.313, allocations: 0.5352 MB / 0.8624 GB, free: 2.551 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006194/1.314, allocations: 300.5 kB / 0.8627 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/1.314, allocations: 35.38 kB / 0.8628 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0003468/1.315, allocations: 403.9 kB / 0.8632 GB, free: 1.949 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/1.317, allocations: 438.1 kB / 0.8636 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/1.319, allocations: 0.7505 MB / 0.8643 GB, free: 0.9844 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/1.321, allocations: 472.5 kB / 0.8648 GB, free: 0.6562 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-05/1.321, allocations: 11.95 kB / 0.8648 GB, free: 0.6445 MB / 0.6511 GB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00541/1.326, allocations: 1.382 MB / 0.8661 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/1.327, allocations: 48.69 kB / 0.8662 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.881e-05/1.327, allocations: 15.98 kB / 0.8662 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.057e-05/1.327, allocations: 20 kB / 0.8662 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/1.329, allocations: 185.2 kB / 0.8664 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.095e-05/1.329, allocations: 23.92 kB / 0.8664 GB, free: 15.31 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/1.331, allocations: 178.9 kB / 0.8666 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/1.331, allocations: 68.42 kB / 0.8666 GB, free: 15.11 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 125 ($PRE.operationModes.start.enableFire,$PRE.operationModes.t2.enableFire,$PRE.operationModes.t1.enableFire,$PRE.operationModes.t6.enableFire,$PRE.operationModes.t5.enableFire,$PRE.operationModes.t3.enableFire,$PRE.operationModes.t4.enableFire,$PRE.operationModes.t7.enableFire,$PRE.operationModes.t9.enableFire,$PRE.operationModes.t8.enableFire,operationModes.stateGraphRoot.resume,operationModes.stateGraphRoot.suspend,operationModes.start.condition,$whenCondition4,$whenCondition5,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.operationModes.initialStep.localActive,operationModes.initialStep.localActive,$PRE.operationModes.initialStep.newActive,operationModes.initialStep.newActive,$PRE.operationModes.initialStep.oldActive,operationModes.initialStep.oldActive,operationModes.initialStep.active,operationModes.start.enableFire,$PRE.operationModes.unOccOff.localActive,operationModes.unOccOff.localActive,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[4].available,$PRE.operationModes.unOccOff.newActive,operationModes.unOccOff.newActive,$PRE.operationModes.unOccOff.oldActive,operationModes.unOccOff.oldActive,operationModes.unOccOff.active,$PRE.operationModes.unOccNigSetBac.localActive,operationModes.unOccNigSetBac.localActive,operationModes.unOccNigSetBac.outPort[2].available,$PRE.operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.newActive,$PRE.operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.active,operationModes.t2.enableFire,operationModes.t2.fire,$PRE.operationModes.t2.t_start,operationModes.t2.t_start,operationModes.t2.condition,operationModes.t1.enableFire,operationModes.t1.fire,$PRE.operationModes.t1.t_start,operationModes.t1.t_start,operationModes.t1.condition,operationModes.stateGraphRoot.activeSteps,$PRE.operationModes.morWarUp.localActive,operationModes.morWarUp.localActive,operationModes.morWarUp.inPort[2].occupied,$PRE.operationModes.morWarUp.newActive,operationModes.morWarUp.newActive,$PRE.operationModes.morWarUp.oldActive,operationModes.morWarUp.oldActive,operationModes.morWarUp.active,operationModes.t6.enableFire,operationModes.t6.fire,$PRE.operationModes.t6.t_start,operationModes.t6.t_start,operationModes.t5.enableFire,$PRE.operationModes.occ.localActive,operationModes.occ.localActive,operationModes.occ.inPort[2].occupied,operationModes.occ.inPort[3].occupied,$PRE.operationModes.occ.newActive,operationModes.occ.newActive,$PRE.operationModes.occ.oldActive,operationModes.occ.oldActive,operationModes.occ.active,operationModes.t3.enableFire,operationModes.t3.condition,operationModes.t4.enableFire,$PRE.operationModes.morPreCoo.localActive,operationModes.morPreCoo.localActive,$PRE.operationModes.morPreCoo.newActive,operationModes.morPreCoo.newActive,$PRE.operationModes.morPreCoo.oldActive,operationModes.morPreCoo.oldActive,operationModes.morPreCoo.active,operationModes.t7.enableFire,operationModes.t7.condition,operationModes.and1.u2,operationModes.and1.y,operationModes.preCooSta.y,operationModes.preCooSta.and3.u[1],operationModes.preCooSta.and3.u[3],operationModes.t9.enableFire,operationModes.and2.u2,operationModes.and2.y,operationModes.t8.enableFire,operationModes.sum.u[1],operationModes.sum.u[2],operationModes.sum.u[3],operationModes.sum.u[4],operationModes.sum.u[5],operationModes.yFan,mode.u,modSel.y,modSel1.y,$PRE.occSch.occupied,occSch.occupied,$PRE.occSch.nexStaInd,occSch.nexStaInd,$PRE.occSch.nexStoInd,occSch.nexStoInd,$PRE.occSch.iPerSta,occSch.iPerSta,$PRE.occSch.iPerSto,occSch.iPerSto,$PRE.occSch.tOcc,occSch.tOcc,$PRE.occSch.tNonOcc,occSch.tNonOcc,operationModes.preCooSta.and3.u[2],PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 184 * 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.000726/1.332, allocations: 266.5 kB / 0.8669 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003853/1.333, allocations: 98.81 kB / 0.867 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004376/1.337, allocations: 1.082 MB / 0.868 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.43e-05/1.337, allocations: 19.98 kB / 0.8681 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.337, allocations: 0 / 0.8681 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/1.337, allocations: 3.984 kB / 0.8681 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009173/1.346, allocations: 2.477 MB / 0.8705 GB, free: 12.22 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/1.346, allocations: 0 / 0.8705 GB, free: 12.22 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/1.348, allocations: 116.8 kB / 0.8706 GB, free: 12.12 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.593e-05/1.348, allocations: 4 kB / 0.8706 GB, free: 12.11 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001949/1.348, allocations: 31.09 kB / 0.8706 GB, free: 12.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-05/1.348, allocations: 8 kB / 0.8706 GB, free: 12.09 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.348, allocations: 3.953 kB / 0.8706 GB, free: 12.09 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/1.354, allocations: 1.674 MB / 0.8723 GB, free: 10.9 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009178/1.355, allocations: 265.5 kB / 0.8725 GB, free: 10.67 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/1.355, allocations: 34.94 kB / 0.8726 GB, free: 10.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/1.357, allocations: 89.81 kB / 0.8726 GB, free: 10.58 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006401/1.358, allocations: 158.3 kB / 0.8728 GB, free: 10.46 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.358, allocations: 49.3 kB / 0.8728 GB, free: 10.43 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0009203/1.359, allocations: 350.5 kB / 0.8732 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of sort global known variables: time 6.21e-07/1.359, allocations: 0 / 0.8732 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00217/1.361, allocations: 298.6 kB / 0.8735 GB, free: 9.91 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (cap.T,PID.I.y) * Number of discrete variables: 93 (operationModes.t6.enableFire,operationModes.t2.enableFire,operationModes.t1.enableFire,operationModes.morPreCoo.localActive,operationModes.occ.localActive,operationModes.morWarUp.localActive,operationModes.unOccNigSetBac.localActive,operationModes.unOccOff.localActive,operationModes.initialStep.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition4,$whenCondition5,$whenCondition3,$whenCondition2,$whenCondition1,operationModes.initialStep.newActive,operationModes.initialStep.oldActive,operationModes.initialStep.active,operationModes.start.enableFire,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[4].available,operationModes.unOccOff.newActive,operationModes.unOccOff.oldActive,operationModes.unOccOff.active,operationModes.unOccNigSetBac.outPort[2].available,operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.active,operationModes.t2.fire,operationModes.t2.t_start,operationModes.t2.condition,operationModes.t1.fire,operationModes.t1.t_start,operationModes.t1.condition,operationModes.stateGraphRoot.activeSteps,operationModes.morWarUp.inPort[2].occupied,operationModes.morWarUp.newActive,operationModes.morWarUp.oldActive,operationModes.morWarUp.active,operationModes.t6.fire,operationModes.t6.t_start,operationModes.t5.enableFire,operationModes.occ.inPort[2].occupied,operationModes.occ.inPort[3].occupied,operationModes.occ.newActive,operationModes.occ.oldActive,operationModes.occ.active,operationModes.t3.enableFire,operationModes.t3.condition,operationModes.t4.enableFire,operationModes.morPreCoo.newActive,operationModes.morPreCoo.oldActive,operationModes.morPreCoo.active,operationModes.t7.enableFire,operationModes.t7.condition,operationModes.and1.u2,operationModes.and1.y,operationModes.preCooSta.y,operationModes.preCooSta.and3.u[1],operationModes.preCooSta.and3.u[3],operationModes.t9.enableFire,operationModes.and2.u2,operationModes.and2.y,operationModes.t8.enableFire,operationModes.sum.u[1],operationModes.sum.u[2],operationModes.sum.u[3],operationModes.sum.u[4],operationModes.sum.u[5],operationModes.yFan,mode.u,modSel.y,modSel1.y,occSch.occupied,occSch.nexStaInd,occSch.nexStoInd,occSch.iPerSta,occSch.iPerSto,occSch.tOcc,occSch.tNonOcc) * Number of discrete states: 13 (occSch.tNonOcc,occSch.tOcc,operationModes.initialStep.newActive,operationModes.unOccOff.newActive,operationModes.unOccNigSetBac.newActive,operationModes.morWarUp.newActive,operationModes.occ.newActive,operationModes.morPreCoo.newActive,occSch.iPerSto,occSch.nexStoInd,occSch.occupied,occSch.nexStaInd,occSch.iPerSta) * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.006044/1.367, allocations: 2.414 MB / 0.8758 GB, free: 7.996 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00357/1.371, allocations: 1.267 MB / 0.8771 GB, free: 7.125 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.371, allocations: 1 kB / 0.8771 GB, free: 7.125 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.00149/1.372, allocations: 0.5529 MB / 0.8776 GB, free: 6.746 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/1.374, allocations: 167 kB / 0.8778 GB, free: 6.633 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005663/1.379, allocations: 1.796 MB / 0.8795 GB, free: 5.102 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/1.38, allocations: 1.137 MB / 0.8806 GB, free: 3.945 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001058/1.381, allocations: 172.2 kB / 0.8808 GB, free: 3.773 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009121/1.382, allocations: 465.6 kB / 0.8812 GB, free: 3.656 MB / 0.6667 GB Notification: Performance of SimCode: time 1.322e-06/1.382, allocations: 0 / 0.8812 GB, free: 3.656 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0755/1.458, allocations: 21.09 MB / 0.9018 GB, free: 14.73 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003293/1.458, allocations: 174 kB / 0.902 GB, free: 14.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.418/4.877, allocations: 0 / 0.902 GB, free: 14.5 MB / 0.698 GB