Running command: "" <> buildModelFMU(Buildings.Examples.VAVReheat.Controls.Examples.OperationModes,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_VAVReheat_Controls_Examples_OperationModes",fmuType="me",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.239/4.239, allocations: 404 MB / 410.9 MB, free: 4.914 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2738/4.513, allocations: 95.01 MB / 0.4941 GB, free: 7.328 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5914/5.105, allocations: 92.67 MB / 0.5846 GB, free: 3.383 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2785/5.383, allocations: 132.8 MB / 0.7143 GB, free: 0.8438 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003678/5.384, allocations: 87.94 kB / 0.7144 GB, free: 0.7578 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 374 * Number of variables: 374 Notification: Performance of Generate backend data structure: time 0.1513/5.535, allocations: 29.81 MB / 0.7435 GB, free: 2.746 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/5.535, allocations: 8 kB / 0.7435 GB, free: 2.738 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009204/5.536, allocations: 166.1 kB / 0.7437 GB, free: 2.574 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/5.539, allocations: 0.7684 MB / 0.7444 GB, free: 1.762 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/5.54, allocations: 59.98 kB / 0.7445 GB, free: 1.703 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005847/5.54, allocations: 100 kB / 0.7446 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005432/5.546, allocations: 1.115 MB / 0.7456 GB, free: 500 kB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005732/5.551, allocations: 1.427 MB / 0.747 GB, free: 14.95 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.557e-05/5.552, allocations: 3.984 kB / 0.747 GB, free: 14.95 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/5.552, allocations: 7.984 kB / 0.7471 GB, free: 14.94 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.378e-05/5.552, allocations: 40 kB / 0.7471 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/5.567, allocations: 5.546 MB / 0.7525 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003555/5.571, allocations: 0.886 MB / 0.7534 GB, free: 8.301 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/5.573, allocations: 484.3 kB / 0.7538 GB, free: 7.824 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/5.573, allocations: 20.98 kB / 0.7539 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002023/5.575, allocations: 0.5817 MB / 0.7544 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=124): time 6.081e-06/5.575, allocations: 0 / 0.7544 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of matching and sorting (n=124): time 0.003525/5.578, allocations: 0.8226 MB / 0.7552 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/5.579, allocations: 161.5 kB / 0.7554 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/5.58, allocations: 0.5207 MB / 0.7559 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0004311/5.58, allocations: 57.69 kB / 0.7559 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007155/5.581, allocations: 471.8 kB / 0.7564 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007073/5.582, allocations: 307.9 kB / 0.7567 GB, free: 4.816 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/5.582, allocations: 8 kB / 0.7567 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000329/5.582, allocations: 402.7 kB / 0.7571 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/5.584, allocations: 419.9 kB / 0.7575 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/5.586, allocations: 0.7478 MB / 0.7582 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/5.589, allocations: 438.1 kB / 0.7586 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.788e-05/5.589, allocations: 4 kB / 0.7586 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of matching and sorting (n=198) (initialization): time 0.005758/5.594, allocations: 1.215 MB / 0.7598 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001969/5.596, allocations: 3.828 MB / 0.7636 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-05/5.596, allocations: 15.91 kB / 0.7636 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.225e-05/5.597, allocations: 16 kB / 0.7636 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/5.599, allocations: 199.5 kB / 0.7638 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.08e-05/5.599, allocations: 23.94 kB / 0.7638 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/5.601, allocations: 163.2 kB / 0.764 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003032/5.601, allocations: 71.98 kB / 0.764 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/5.601, allocations: 4.938 kB / 0.764 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004338/5.606, allocations: 1.075 MB / 0.7651 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.139e-05/5.606, allocations: 16.06 kB / 0.7651 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.652e-05/5.606, allocations: 23.88 kB / 0.7651 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/5.608, allocations: 187.5 kB / 0.7653 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.549e-05/5.608, allocations: 23.94 kB / 0.7653 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/5.61, allocations: 139.3 kB / 0.7655 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000256/5.61, allocations: 67.98 kB / 0.7655 GB, free: 11.31 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 128 ($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.morPreCoo.inPort[2].set,operationModes.start.condition,operationModes.initialStep.inPort[1].set,$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,operationModes.morPreCoo.inPort[2].occupied,$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 (192): * Single equations (assignments): 191 * 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.0006988/5.611, allocations: 227.6 kB / 0.7657 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/5.611, allocations: 94.86 kB / 0.7658 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004131/5.615, allocations: 0.9686 MB / 0.7668 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.09e-05/5.616, allocations: 12 kB / 0.7668 GB, free: 10 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/5.616, allocations: 4 kB / 0.7668 GB, free: 10 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.797e-05/5.616, allocations: 7.969 kB / 0.7668 GB, free: 9.992 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008312/5.624, allocations: 2.247 MB / 0.769 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/5.624, allocations: 0 / 0.769 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/5.625, allocations: 115.8 kB / 0.7691 GB, free: 7.586 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.22e-05/5.625, allocations: 4 kB / 0.7691 GB, free: 7.582 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/5.626, allocations: 19.97 kB / 0.7691 GB, free: 7.562 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.29e-05/5.626, allocations: 4 kB / 0.7691 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/5.626, allocations: 4 kB / 0.7691 GB, free: 7.555 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00559/5.631, allocations: 1.606 MB / 0.7707 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007784/5.639, allocations: 2.549 MB / 0.7732 GB, free: 3.344 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008604/5.64, allocations: 255.9 kB / 0.7734 GB, free: 3.074 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/5.64, allocations: 19.91 kB / 0.7734 GB, free: 3.055 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/5.642, allocations: 75.92 kB / 0.7735 GB, free: 2.98 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006179/5.643, allocations: 145.1 kB / 0.7737 GB, free: 2.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/5.643, allocations: 51.97 kB / 0.7737 GB, free: 2.789 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0008484/5.644, allocations: 310.9 kB / 0.774 GB, free: 2.484 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.005219/5.649, allocations: 450.7 kB / 0.7744 GB, free: 2.043 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cap.T,PID.I.y,PID.D.x) * Number of discrete variables: 94 (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,$cse12,$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.inPort[2].occupied,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 (135): * Single equations (assignments): 119 * 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.0006769/5.65, allocations: 216.7 kB / 0.7746 GB, free: 1.816 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.006579/5.656, allocations: 1.965 MB / 0.7766 GB, free: 15.85 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/5.656, allocations: 0 / 0.7766 GB, free: 15.85 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001893/5.658, allocations: 0.5569 MB / 0.7771 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/5.66, allocations: 146 kB / 0.7772 GB, free: 15.15 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007822/5.668, allocations: 1.733 MB / 0.7789 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00218/5.67, allocations: 1.26 MB / 0.7802 GB, free: 12.09 MB / 0.6667 GB Notification: Performance of SimCode: time 1.773e-06/5.67, allocations: 3.938 kB / 0.7802 GB, free: 12.09 MB / 0.6667 GB