Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadModel(Buildings): time 4.011/4.011, allocations: 432.8 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.679e-05/3.691e-05, allocations: 5.188 kB / 0.5337 GB, free: 12.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1702, allocations: 98.72 MB / 0.6301 GB, free: 6.195 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1921/0.3623, allocations: 124.9 MB / 0.7521 GB, free: 9.16 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.3626, allocations: 71.95 kB / 0.7521 GB, free: 9.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008881/0.3715, allocations: 2.266 MB / 0.7544 GB, free: 6.816 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.087e-06/0.3716, allocations: 0 / 0.7544 GB, free: 6.816 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.3716, allocations: 4 kB / 0.7544 GB, free: 6.812 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.0009035/0.3725, allocations: 480 kB / 0.7548 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3725, allocations: 12.03 kB / 0.7548 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.3727, allocations: 43.8 kB / 0.7549 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.3729, allocations: 186.8 kB / 0.755 GB, free: 6.023 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.0006713/0.3736, allocations: 495.8 kB / 0.7555 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.3737, allocations: 40 kB / 0.7556 GB, free: 5.43 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007587/0.3744, allocations: 337.4 kB / 0.7559 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3745, allocations: 3.984 kB / 0.7559 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.3745, allocations: 20 kB / 0.7559 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.083e-06/0.3746, allocations: 0 / 0.7559 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004271/0.375, allocations: 152 kB / 0.756 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.3764, allocations: 0.629 MB / 0.7567 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3778, allocations: 0.5532 MB / 0.7572 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005029/0.3783, allocations: 240.8 kB / 0.7574 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.3783, allocations: 4 kB / 0.7574 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.3795, allocations: 0.6203 MB / 0.758 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 4.327e-06/0.3796, allocations: 3.938 kB / 0.758 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001376/0.3809, allocations: 0.5621 MB / 0.7586 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.381, allocations: 63.84 kB / 0.7587 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.3812, allocations: 139.2 kB / 0.7588 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.3813, allocations: 73.69 kB / 0.7589 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.3815, allocations: 109.3 kB / 0.759 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.3816, allocations: 122.8 kB / 0.7591 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/0.3817, allocations: 20 kB / 0.7591 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001891/0.3819, allocations: 338.8 kB / 0.7594 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005451/0.3825, allocations: 205.6 kB / 0.7596 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006322/0.3831, allocations: 323.7 kB / 0.7599 GB, free: 0.7773 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.3835, allocations: 171.7 kB / 0.7601 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.3836, allocations: 0 / 0.7601 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001352/0.3849, allocations: 0.5649 MB / 0.7606 GB, free: 44 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.385, allocations: 8.438 kB / 0.7606 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.084e-06/0.385, allocations: 0 / 0.7606 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.385, allocations: 15.95 kB / 0.7607 GB, free: 20 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.3852, allocations: 47.92 kB / 0.7607 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/0.3853, allocations: 11.94 kB / 0.7607 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.3856, allocations: 43.83 kB / 0.7608 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.3857, allocations: 36 kB / 0.7608 GB, free: 15.88 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.000269/0.386, allocations: 186 kB / 0.761 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.733e-05/0.3861, allocations: 35.72 kB / 0.761 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.3862, allocations: 50.16 kB / 0.7611 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.3862, allocations: 7.953 kB / 0.7611 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.24e-06/0.3862, allocations: 0 / 0.7611 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.688e-06/0.3862, allocations: 0 / 0.7611 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.3887, allocations: 1.157 MB / 0.7622 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3888, allocations: 4.125 kB / 0.7622 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.3888, allocations: 15.88 kB / 0.7622 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.3889, allocations: 4 kB / 0.7622 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.878e-05/0.3889, allocations: 39.95 kB / 0.7623 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.524e-06/0.389, allocations: 0 / 0.7623 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.197e-06/0.389, allocations: 4 kB / 0.7623 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.3904, allocations: 0.7263 MB / 0.763 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.231e-05/0.3905, allocations: 96.83 kB / 0.7631 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.3906, allocations: 43.92 kB / 0.7631 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.3909, allocations: 43.92 kB / 0.7631 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003095/0.3913, allocations: 128.2 kB / 0.7633 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.783e-05/0.3914, allocations: 43.97 kB / 0.7633 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001103/0.3915, allocations: 109.6 kB / 0.7634 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.5e-07/0.3915, allocations: 0 / 0.7634 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000621/0.3921, allocations: 124 kB / 0.7635 GB, free: 12.93 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.0002847/0.3924, allocations: 165.3 kB / 0.7637 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.4746/0.8671, allocations: 14.74 MB / 0.7781 GB, free: 142.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.905e-06/0.8671, allocations: 0.5625 kB / 0.7781 GB, free: 142.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.005792/0.8729, allocations: 14.48 MB / 0.7922 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.8735, allocations: 39.62 kB / 0.7923 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.8749, allocations: 499.1 kB / 0.7927 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.8752, allocations: 0.7479 MB / 0.7935 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002081/0.8754, allocations: 42.88 kB / 0.7935 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.8756, allocations: 50.64 kB / 0.7936 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.845e-06/0.8756, allocations: 0 / 0.7936 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.01572/0.8913, allocations: 5.337 MB / 0.7988 GB, free: 127.4 MB / 0.6511 GB