Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.298/4.298, allocations: 464.6 MB / 476.8 MB, free: 2.191 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.765e-05/3.777e-05, allocations: 4 kB / 0.5732 GB, free: 5.605 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2895, allocations: 107.1 MB / 0.6778 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8493/1.139, allocations: 131.7 MB / 0.8065 GB, free: 12.55 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/1.139, allocations: 70.05 kB / 0.8065 GB, free: 12.55 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.08773/1.227, allocations: 22.24 MB / 0.8282 GB, free: 8.719 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.643e-06/1.227, allocations: 4 kB / 0.8283 GB, free: 8.715 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.07e-05/1.227, allocations: 3.812 kB / 0.8283 GB, free: 8.715 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001123/1.228, allocations: 0.6144 MB / 0.8289 GB, free: 8.109 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/1.228, allocations: 7.844 kB / 0.8289 GB, free: 8.109 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.195e-05/1.228, allocations: 52.55 kB / 0.8289 GB, free: 8.066 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/1.228, allocations: 31.14 kB / 0.8289 GB, free: 8.047 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/1.229, allocations: 249.8 kB / 0.8292 GB, free: 7.812 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/1.229, allocations: 13.66 kB / 0.8292 GB, free: 7.812 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/1.229, allocations: 20.39 kB / 0.8292 GB, free: 7.809 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007066/1.23, allocations: 449.2 kB / 0.8296 GB, free: 7.664 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/1.23, allocations: 3.938 kB / 0.8296 GB, free: 7.66 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/1.23, allocations: 11.09 kB / 0.8297 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/1.23, allocations: 3.844 kB / 0.8297 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/1.23, allocations: 314.7 kB / 0.83 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007214/1.231, allocations: 0.5578 MB / 0.8305 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/1.232, allocations: 1.017 MB / 0.8315 GB, free: 7.07 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000978/1.233, allocations: 0.6525 MB / 0.8321 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/1.233, allocations: 4.438 kB / 0.8321 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007162/1.234, allocations: 492.4 kB / 0.8326 GB, free: 6.766 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=37): time 2.966e-06/1.234, allocations: 0 / 0.8326 GB, free: 6.766 MB / 0.6355 GB Notification: Performance of matching and sorting (n=37): time 0.001421/1.236, allocations: 0.7849 MB / 0.8334 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/1.236, allocations: 140.1 kB / 0.8335 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/1.236, allocations: 225.2 kB / 0.8337 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/1.236, allocations: 40.17 kB / 0.8338 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/1.236, allocations: 124.3 kB / 0.8339 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/1.236, allocations: 74.86 kB / 0.834 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/1.236, allocations: 6.75 kB / 0.834 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.948e-05/1.236, allocations: 343.7 kB / 0.8343 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005235/1.237, allocations: 329.1 kB / 0.8346 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/1.237, allocations: 413.3 kB / 0.835 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005971/1.238, allocations: 369.9 kB / 0.8353 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.238, allocations: 7.938 kB / 0.8354 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001378/1.24, allocations: 0.81 MB / 0.8361 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.24, allocations: 3.812 kB / 0.8361 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/1.24, allocations: 3.844 kB / 0.8362 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/1.24, allocations: 3.844 kB / 0.8362 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/1.24, allocations: 38.75 kB / 0.8362 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.24, allocations: 11.77 kB / 0.8362 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/1.24, allocations: 19.25 kB / 0.8362 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003422/1.241, allocations: 216.3 kB / 0.8364 GB, free: 5.258 MB / 0.6355 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.0001932/1.241, allocations: 159.4 kB / 0.8366 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-05/1.241, allocations: 27.03 kB / 0.8366 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001201/1.241, allocations: 36.58 kB / 0.8366 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/1.241, allocations: 3.812 kB / 0.8366 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/1.241, allocations: 3.844 kB / 0.8366 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/1.241, allocations: 7.984 kB / 0.8367 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/1.244, allocations: 1.685 MB / 0.8383 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.244, allocations: 0 / 0.8383 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.87e-05/1.244, allocations: 31.31 kB / 0.8383 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/1.244, allocations: 0 / 0.8383 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/1.244, allocations: 19.22 kB / 0.8383 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/1.244, allocations: 3.875 kB / 0.8384 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.244, allocations: 0 / 0.8384 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/1.245, allocations: 1.147 MB / 0.8395 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/1.245, allocations: 104.4 kB / 0.8396 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.852e-05/1.245, allocations: 10.98 kB / 0.8396 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/1.246, allocations: 3.875 kB / 0.8396 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/1.246, allocations: 56.81 kB / 0.8396 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003375/1.246, allocations: 226.2 kB / 0.8399 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001946/1.246, allocations: 168.8 kB / 0.84 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/1.246, allocations: 0 / 0.84 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006866/1.247, allocations: 63.97 kB / 0.8401 GB, free: 3.43 MB / 0.6355 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.002107/1.249, allocations: 1.959 MB / 0.842 GB, free: 18.12 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001265/1.251, allocations: 0.7201 MB / 0.8427 GB, free: 18.02 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.251, allocations: 0 / 0.8427 GB, free: 18.02 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006824/1.251, allocations: 399.4 kB / 0.8431 GB, free: 17.78 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/1.254, allocations: 367.9 kB / 0.8434 GB, free: 17.46 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/1.256, allocations: 0.9249 MB / 0.8443 GB, free: 16.62 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/1.256, allocations: 0.7642 MB / 0.8451 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004378/1.257, allocations: 103.5 kB / 0.8452 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/1.257, allocations: 114.5 kB / 0.8453 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of SimCode: time 1.903e-06/1.257, allocations: 0 / 0.8453 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/1.3, allocations: 10.58 MB / 0.8556 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003024/1.3, allocations: 160.4 kB / 0.8558 GB, free: 5.039 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/3.799, allocations: 0 / 0.8558 GB, free: 5.039 MB / 0.6511 GB