Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.02/4.02, allocations: 432.7 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.48e-05/3.485e-05, allocations: 3.922 kB / 0.5338 GB, free: 12.21 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2057, allocations: 98.73 MB / 0.6302 GB, free: 6.102 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.4279, allocations: 124.4 MB / 0.7517 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.4282, allocations: 63.97 kB / 0.7518 GB, free: 9.457 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1014/0.5296, allocations: 22.24 MB / 0.7735 GB, free: 3.18 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5297, allocations: 0 / 0.7735 GB, free: 3.18 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.141e-05/0.5297, allocations: 4 kB / 0.7735 GB, free: 3.176 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001263/0.531, allocations: 0.6152 MB / 0.7741 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.531, allocations: 12.03 kB / 0.7741 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.656e-05/0.5311, allocations: 46.55 kB / 0.7742 GB, free: 2.422 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.046e-05/0.5312, allocations: 31.58 kB / 0.7742 GB, free: 2.391 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.5317, allocations: 257.7 kB / 0.7744 GB, free: 2.102 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.103e-05/0.5318, allocations: 16.27 kB / 0.7745 GB, free: 2.086 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.5319, allocations: 20 kB / 0.7745 GB, free: 2.066 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000908/0.5328, allocations: 450.5 kB / 0.7749 GB, free: 1.609 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.5328, allocations: 4 kB / 0.7749 GB, free: 1.605 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.5329, allocations: 4 kB / 0.7749 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.5329, allocations: 4 kB / 0.7749 GB, free: 1.598 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006528/0.5335, allocations: 323.7 kB / 0.7752 GB, free: 1.281 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009883/0.5346, allocations: 0.5548 MB / 0.7758 GB, free: 0.668 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5225/1.057, allocations: 1.011 MB / 0.7768 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/1.058, allocations: 0.6545 MB / 0.7774 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/1.058, allocations: 5.547 kB / 0.7774 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008916/1.059, allocations: 473 kB / 0.7778 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.025e-06/1.059, allocations: 0 / 0.7778 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002093/1.061, allocations: 0.7824 MB / 0.7786 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/1.062, allocations: 141.1 kB / 0.7787 GB, free: 144.3 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/1.062, allocations: 224 kB / 0.779 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/1.062, allocations: 35.52 kB / 0.779 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/1.062, allocations: 124.5 kB / 0.7791 GB, free: 144.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/1.062, allocations: 79.44 kB / 0.7792 GB, free: 144.1 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/1.062, allocations: 8.531 kB / 0.7792 GB, free: 144.1 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.511e-05/1.062, allocations: 345.3 kB / 0.7795 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006038/1.063, allocations: 324.9 kB / 0.7798 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006542/1.064, allocations: 417.2 kB / 0.7802 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007444/1.064, allocations: 356.9 kB / 0.7806 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/1.064, allocations: 1.125 kB / 0.7806 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001675/1.066, allocations: 0.8211 MB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/1.066, allocations: 5.688 kB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.066, allocations: 6.891 kB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/1.066, allocations: 5.062 kB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/1.067, allocations: 41.48 kB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/1.067, allocations: 7.391 kB / 0.7814 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/1.067, allocations: 21.27 kB / 0.7815 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004402/1.067, allocations: 213.6 kB / 0.7817 GB, free: 143.6 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001942/1.068, allocations: 156.6 kB / 0.7818 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/1.068, allocations: 26.94 kB / 0.7818 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/1.068, allocations: 36.92 kB / 0.7819 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/1.068, allocations: 8.969 kB / 0.7819 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.068, allocations: 1.25 kB / 0.7819 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/1.068, allocations: 2.594 kB / 0.7819 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/1.071, allocations: 1.704 MB / 0.7835 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.071, allocations: 6.25 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.99e-05/1.071, allocations: 23.41 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/1.071, allocations: 2.797 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-05/1.071, allocations: 19.16 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/1.071, allocations: 2.562 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.071, allocations: 3.312 kB / 0.7836 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/1.073, allocations: 1.152 MB / 0.7847 GB, free: 142.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.522e-05/1.073, allocations: 96.91 kB / 0.7848 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/1.073, allocations: 9.984 kB / 0.7848 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/1.074, allocations: 10.67 kB / 0.7848 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/1.074, allocations: 55.5 kB / 0.7849 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004598/1.074, allocations: 224.4 kB / 0.7851 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000239/1.074, allocations: 168.5 kB / 0.7853 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.11e-07/1.074, allocations: 0 / 0.7853 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008055/1.075, allocations: 65.67 kB / 0.7853 GB, free: 142.3 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002086/1.077, allocations: 1.938 MB / 0.7872 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001601/1.079, allocations: 0.7248 MB / 0.7879 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.079, allocations: 0 / 0.7879 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000889/1.08, allocations: 402 kB / 0.7883 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002641/1.083, allocations: 363.7 kB / 0.7887 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/1.085, allocations: 0.9239 MB / 0.7896 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/1.086, allocations: 0.7651 MB / 0.7903 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0005747/1.086, allocations: 99.23 kB / 0.7904 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/1.086, allocations: 120.2 kB / 0.7905 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.322e-06/1.086, allocations: 0 / 0.7905 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/1.128, allocations: 10.6 MB / 0.8009 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/1.129, allocations: 151.1 kB / 0.801 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/3.609, allocations: 7.5 kB / 0.801 GB, free: 136.2 MB / 0.6511 GB