Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.927/3.927, allocations: 432.7 MB / 444.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 5.089e-05/5.11e-05, allocations: 6.094 kB / 0.5338 GB, free: 12.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 98.73 MB / 0.6302 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2267/0.4328, allocations: 124.9 MB / 0.7522 GB, free: 9.078 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.4332, allocations: 71.95 kB / 0.7522 GB, free: 9.008 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00995/0.4432, allocations: 2.262 MB / 0.7544 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.402e-06/0.4432, allocations: 0 / 0.7544 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.4432, allocations: 4 kB / 0.7545 GB, free: 6.734 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00109/0.4443, allocations: 491.2 kB / 0.7549 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.976e-05/0.4444, allocations: 12.03 kB / 0.7549 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.4445, allocations: 62.53 kB / 0.755 GB, free: 6.129 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.4447, allocations: 31.81 kB / 0.755 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.4449, allocations: 186.9 kB / 0.7552 GB, free: 5.875 MB / 0.6355 GB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: swiCleInp1.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if swiCleInp1.scenario == 1 then swiCleInp1.y = if swiCleInp1.clr then false else pre(swiCleInp1.y) elseif swiCleInp1.scenario == 2 then swiCleInp1.y = true elseif swiCleInp1.scenario == 3 then swiCleInp1.y = false elseif swiCleInp1.scenario == 4 then swiCleInp1.y = pre(swiCleInp1.y) else swiCleInp1.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: swiCleInp.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if swiCleInp.scenario == 1 then swiCleInp.y = if swiCleInp.clr then false else pre(swiCleInp.y) elseif swiCleInp.scenario == 2 then swiCleInp.y = true elseif swiCleInp.scenario == 3 then swiCleInp.y = false elseif swiCleInp.scenario == 4 then swiCleInp.y = pre(swiCleInp.y) else swiCleInp.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: iniTruOut.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if iniTruOut.scenario == 1 then iniTruOut.y = if iniTruOut.clr then false else pre(iniTruOut.y) elseif iniTruOut.scenario == 2 then iniTruOut.y = true elseif iniTruOut.scenario == 3 then iniTruOut.y = false elseif iniTruOut.scenario == 4 then iniTruOut.y = pre(iniTruOut.y) else iniTruOut.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: iniFalOut.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if iniFalOut.scenario == 1 then iniFalOut.y = if iniFalOut.clr then false else pre(iniFalOut.y) elseif iniFalOut.scenario == 2 then iniFalOut.y = true elseif iniFalOut.scenario == 3 then iniFalOut.y = false elseif iniFalOut.scenario == 4 then iniFalOut.y = pre(iniFalOut.y) else iniFalOut.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: truCle.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if truCle.scenario == 1 then truCle.y = if truCle.clr then false else pre(truCle.y) elseif truCle.scenario == 2 then truCle.y = true elseif truCle.scenario == 3 then truCle.y = false elseif truCle.scenario == 4 then truCle.y = pre(truCle.y) else truCle.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: falCle.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if falCle.scenario == 1 then falCle.y = if falCle.clr then false else pre(falCle.y) elseif falCle.scenario == 2 then falCle.y = true elseif falCle.scenario == 3 then falCle.y = false elseif falCle.scenario == 4 then falCle.y = pre(falCle.y) else falCle.y = false end if to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007159/0.4456, allocations: 480.3 kB / 0.7557 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.4457, allocations: 51.98 kB / 0.7557 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008754/0.4466, allocations: 337.4 kB / 0.756 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.4466, allocations: 0 / 0.756 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.4467, allocations: 19.98 kB / 0.756 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.4467, allocations: 4 kB / 0.7561 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004907/0.4472, allocations: 151.9 kB / 0.7562 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.4489, allocations: 0.629 MB / 0.7568 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.4506, allocations: 0.5455 MB / 0.7573 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.4512, allocations: 244.8 kB / 0.7576 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.4512, allocations: 0 / 0.7576 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001381/0.4526, allocations: 0.628 MB / 0.7582 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 3.987e-06/0.4527, allocations: 0 / 0.7582 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001558/0.4542, allocations: 0.5583 MB / 0.7587 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.4543, allocations: 55.84 kB / 0.7588 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.4545, allocations: 144.9 kB / 0.7589 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.4547, allocations: 81.69 kB / 0.759 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.4548, allocations: 97.45 kB / 0.7591 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.455, allocations: 130.8 kB / 0.7592 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.4551, allocations: 20 kB / 0.7592 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.4552, allocations: 338.8 kB / 0.7596 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005961/0.4558, allocations: 201.6 kB / 0.7598 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007245/0.4566, allocations: 332.2 kB / 0.7601 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/0.457, allocations: 167.2 kB / 0.7602 GB, free: 480 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.4571, allocations: 0 / 0.7602 GB, free: 480 kB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001482/0.4586, allocations: 0.5649 MB / 0.7608 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.4586, allocations: 10.19 kB / 0.7608 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4586, allocations: 7.953 kB / 0.7608 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.4587, allocations: 4 kB / 0.7608 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.4589, allocations: 47.86 kB / 0.7609 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.459, allocations: 12.42 kB / 0.7609 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003631/0.4593, allocations: 51.83 kB / 0.7609 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.217e-05/0.4594, allocations: 32 kB / 0.7609 GB, free: 15.74 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 78 ($PRE.falCle.clr,$PRE.falCle.scenario,$PRE.truCle.clr,$PRE.truCle.scenario,$PRE.iniFalOut.clr,$PRE.iniFalOut.scenario,$PRE.iniTruOut.clr,$PRE.iniTruOut.scenario,$PRE.swiCleInp.clr,$PRE.swiCleInp.scenario,$PRE.swiCleInp1.clr,$PRE.swiCleInp1.scenario,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.clr,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,iniTruOut.scenario,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,swiCleInp.scenario,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,swiCleInp1.scenario,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 6 * 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.0002878/0.4597, allocations: 182 kB / 0.7611 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.4599, allocations: 47.69 kB / 0.7612 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.46, allocations: 38.19 kB / 0.7612 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.46, allocations: 7.953 kB / 0.7612 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4601, allocations: 3.938 kB / 0.7612 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4601, allocations: 3.984 kB / 0.7612 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.4629, allocations: 1.153 MB / 0.7623 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.463, allocations: 4 kB / 0.7623 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.4631, allocations: 11.92 kB / 0.7624 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.4631, allocations: 4 kB / 0.7624 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-05/0.4632, allocations: 36.09 kB / 0.7624 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.717e-05/0.4632, allocations: 11.94 kB / 0.7624 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4632, allocations: 0 / 0.7624 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.4648, allocations: 0.7224 MB / 0.7631 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.19e-05/0.4649, allocations: 104.8 kB / 0.7632 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.4651, allocations: 36 kB / 0.7632 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003647/0.4655, allocations: 39.92 kB / 0.7633 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/0.4659, allocations: 140.1 kB / 0.7634 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.466, allocations: 47.97 kB / 0.7635 GB, free: 13 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001103/0.4661, allocations: 107.3 kB / 0.7636 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4661, allocations: 0 / 0.7636 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006638/0.4668, allocations: 120 kB / 0.7637 GB, free: 12.78 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 52 (swiCleInp.clr,swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,falCle.scenario,truCle.u,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,iniTruOut.y,iniTruOut.scenario,swiCleInp.u,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 6 * 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.002132/0.469, allocations: 1.599 MB / 0.7652 GB, free: 11.13 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5246/0.9936, allocations: 14.73 MB / 0.7796 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.9937, allocations: 6.656 kB / 0.7796 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.005876/0.9996, allocations: 14.48 MB / 0.7938 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/1, allocations: 41.44 kB / 0.7938 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/1.002, allocations: 0.5685 MB / 0.7944 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/1.003, allocations: 0.7519 MB / 0.7951 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002111/1.003, allocations: 40.02 kB / 0.7951 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/1.003, allocations: 91.5 kB / 0.7952 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.062e-06/1.003, allocations: 0 / 0.7952 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/1.038, allocations: 7.365 MB / 0.8024 GB, free: 124.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/1.038, allocations: 157 kB / 0.8026 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.483, allocations: 0 / 0.8026 GB, free: 124.7 MB / 0.6511 GB