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.42/4.42, allocations: 431.3 MB / 445.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.288e-05, allocations: 4 kB / 0.5354 GB, free: 14.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6378/0.6378, allocations: 98.72 MB / 0.6318 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002224/0.6401, allocations: 1.187 MB / 0.633 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.6413, allocations: 376.5 kB / 0.6333 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.354e-05/0.6414, allocations: 4 kB / 0.6333 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 3.652e-05/0.6414, allocations: 11.86 kB / 0.6334 GB, free: 10.35 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.6415, allocations: 15.97 kB / 0.6334 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.642, allocations: 119.8 kB / 0.6335 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.6423, allocations: 163.6 kB / 0.6336 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.6424, allocations: 32.06 kB / 0.6337 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.6426, allocations: 127.8 kB / 0.6338 GB, free: 9.895 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.6428, allocations: 111.7 kB / 0.6339 GB, free: 9.785 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 7.404e-05/0.6429, allocations: 16 kB / 0.6339 GB, free: 9.77 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.643, allocations: 16 kB / 0.6339 GB, free: 9.754 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.6431, allocations: 83.83 kB / 0.634 GB, free: 9.672 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.6432, allocations: 31.94 kB / 0.634 GB, free: 9.641 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.6436, allocations: 245.7 kB / 0.6343 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.6436, allocations: 0 / 0.6343 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.135e-06/0.6436, allocations: 0 / 0.6343 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.6437, allocations: 0 / 0.6343 GB, free: 9.402 MB / 0.5105 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.001197/0.6449, allocations: 487.6 kB / 0.6347 GB, free: 8.875 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6449, allocations: 12.03 kB / 0.6348 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.6451, allocations: 35.8 kB / 0.6348 GB, free: 8.828 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007148/0.6458, allocations: 274.6 kB / 0.635 GB, free: 8.52 MB / 0.5105 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.0007692/0.6466, allocations: 492.6 kB / 0.6355 GB, free: 7.965 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.6468, allocations: 47.98 kB / 0.6356 GB, free: 7.918 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009327/0.6477, allocations: 341.3 kB / 0.6359 GB, free: 7.578 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.6477, allocations: 3.984 kB / 0.6359 GB, free: 7.574 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/0.6478, allocations: 16 kB / 0.6359 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.6478, allocations: 4 kB / 0.6359 GB, free: 7.555 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005208/0.6484, allocations: 159.8 kB / 0.6361 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.65, allocations: 0.6174 MB / 0.6367 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.6518, allocations: 0.5011 MB / 0.6372 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.6519, allocations: 8.141 kB / 0.6372 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001434/0.6533, allocations: 0.6097 MB / 0.6378 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 4.859e-06/0.6534, allocations: 4 kB / 0.6378 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48): time 0.002166/0.6556, allocations: 0.7174 MB / 0.6385 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.6557, allocations: 59.83 kB / 0.6385 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.6559, allocations: 144.1 kB / 0.6387 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001555/0.6561, allocations: 73.69 kB / 0.6387 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.6562, allocations: 121.2 kB / 0.6388 GB, free: 4.449 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.6564, allocations: 126.7 kB / 0.639 GB, free: 4.324 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.6565, allocations: 20 kB / 0.639 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.6566, allocations: 346.8 kB / 0.6393 GB, free: 3.957 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/0.6573, allocations: 217.2 kB / 0.6395 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008043/0.6581, allocations: 349.6 kB / 0.6399 GB, free: 3.352 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005542/0.6587, allocations: 166.1 kB / 0.64 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.6587, allocations: 3.938 kB / 0.64 GB, free: 3.188 MB / 0.5105 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001595/0.6603, allocations: 0.6082 MB / 0.6406 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.6604, allocations: 7.953 kB / 0.6406 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.6604, allocations: 4 kB / 0.6406 GB, free: 2.562 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.6605, allocations: 11.94 kB / 0.6406 GB, free: 2.551 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.6607, allocations: 47.84 kB / 0.6407 GB, free: 2.504 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.6608, allocations: 11.94 kB / 0.6407 GB, free: 2.492 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003885/0.6612, allocations: 59.58 kB / 0.6407 GB, free: 2.434 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/0.6613, allocations: 36 kB / 0.6408 GB, free: 2.398 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 80 ($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,tru.y,fal.y,$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,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,$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,iniTruOut.clr,iniFalOut.clr,falCle.clr,truCle.clr) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 74 * 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.0003815/0.6617, allocations: 203 kB / 0.641 GB, free: 2.191 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.6618, allocations: 35.72 kB / 0.641 GB, free: 2.156 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.662, allocations: 42.58 kB / 0.6411 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.662, allocations: 7.984 kB / 0.6411 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.662, allocations: 0 / 0.6411 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.662, allocations: 4 kB / 0.6411 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.6647, allocations: 1.091 MB / 0.6421 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.6647, allocations: 0 / 0.6421 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.222e-05/0.6648, allocations: 15.94 kB / 0.6421 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-05/0.6648, allocations: 4 kB / 0.6421 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.953e-05/0.6649, allocations: 27.97 kB / 0.6422 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.6649, allocations: 0 / 0.6422 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.665, allocations: 0 / 0.6422 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.6665, allocations: 0.6443 MB / 0.6428 GB, free: 248 kB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.6667, allocations: 104.7 kB / 0.6429 GB, free: 124 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.6668, allocations: 36 kB / 0.6429 GB, free: 88 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.6672, allocations: 39.97 kB / 0.643 GB, free: 48 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003954/0.6676, allocations: 128.2 kB / 0.6431 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.6677, allocations: 43.97 kB / 0.6431 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001152/0.6678, allocations: 110.6 kB / 0.6432 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.3e-07/0.6679, allocations: 0 / 0.6432 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006315/0.6685, allocations: 124 kB / 0.6434 GB, free: 15.65 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.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) * Number of discrete states: 12 (iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,falCle.u,falCle.y,truCle.u,truCle.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * 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.0002934/0.6688, allocations: 159.1 kB / 0.6435 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0103/0.6791, allocations: 14.8 MB / 0.658 GB, free: 184 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6792, allocations: 0 / 0.658 GB, free: 184 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009138/0.6883, allocations: 14.5 MB / 0.6721 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.6889, allocations: 45.62 kB / 0.6722 GB, free: 1.129 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.6907, allocations: 0.6026 MB / 0.6728 GB, free: 0.5078 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.6911, allocations: 0.7539 MB / 0.6735 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002528/0.6914, allocations: 43.27 kB / 0.6735 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.6917, allocations: 47.41 kB / 0.6736 GB, free: 15.63 MB / 0.5573 GB Notification: Performance of SimCode: time 8.71e-07/0.6917, allocations: 0 / 0.6736 GB, free: 15.63 MB / 0.5573 GB Notification: Performance of Templates: time 0.01642/0.7081, allocations: 5.228 MB / 0.6787 GB, free: 10.4 MB / 0.5573 GB