Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadModel(Buildings): time 3.929/3.929, allocations: 432.8 MB / 444.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.152e-05/4.167e-05, allocations: 5.297 kB / 0.5337 GB, free: 12.21 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1714, allocations: 98.73 MB / 0.6301 GB, free: 6.199 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1942/0.3657, allocations: 124.8 MB / 0.752 GB, free: 9.203 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.366, allocations: 75.89 kB / 0.7521 GB, free: 9.129 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008609/0.3746, allocations: 2.239 MB / 0.7543 GB, free: 6.883 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.108e-06/0.3746, allocations: 0 / 0.7543 GB, free: 6.883 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.3747, allocations: 4 kB / 0.7543 GB, free: 6.879 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.0008842/0.3756, allocations: 479.1 kB / 0.7548 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3756, allocations: 8.031 kB / 0.7548 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.3757, allocations: 35.8 kB / 0.7548 GB, free: 6.324 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.3759, allocations: 186.9 kB / 0.755 GB, free: 6.102 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 = pre(swiCleInp1.y) elseif swiCleInp1.scenario == 4 then swiCleInp1.y = false 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 = pre(swiCleInp.y) elseif swiCleInp.scenario == 4 then swiCleInp.y = false 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 = pre(iniTruOut.y) elseif iniTruOut.scenario == 4 then iniTruOut.y = false 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 = pre(iniFalOut.y) elseif iniFalOut.scenario == 4 then iniFalOut.y = false 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 = pre(truCle.y) elseif truCle.scenario == 4 then truCle.y = false 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 = pre(falCle.y) elseif falCle.scenario == 4 then falCle.y = false else falCle.y = false end if to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006689/0.3766, allocations: 489.2 kB / 0.7554 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3767, allocations: 47.98 kB / 0.7555 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008127/0.3776, allocations: 317.4 kB / 0.7558 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3776, allocations: 0 / 0.7558 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-05/0.3777, allocations: 19.98 kB / 0.7558 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3777, allocations: 4 kB / 0.7558 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004192/0.3782, allocations: 148 kB / 0.756 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.3796, allocations: 0.6251 MB / 0.7566 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.3809, allocations: 0.5416 MB / 0.7571 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.3814, allocations: 244.8 kB / 0.7573 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.3815, allocations: 4 kB / 0.7573 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.3826, allocations: 0.554 MB / 0.7579 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 4.686e-06/0.3826, allocations: 3.938 kB / 0.7579 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001372/0.384, allocations: 0.5544 MB / 0.7584 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/0.3841, allocations: 63.83 kB / 0.7585 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.3844, allocations: 140 kB / 0.7586 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0002114/0.3847, allocations: 73.69 kB / 0.7587 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3848, allocations: 109.3 kB / 0.7588 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.385, allocations: 118.8 kB / 0.7589 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-05/0.3851, allocations: 23.94 kB / 0.7589 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.3853, allocations: 338.8 kB / 0.7592 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005043/0.3858, allocations: 193.6 kB / 0.7594 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006055/0.3864, allocations: 286.5 kB / 0.7597 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004026/0.3868, allocations: 159.2 kB / 0.7599 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.192e-06/0.3868, allocations: 0 / 0.7599 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001253/0.3881, allocations: 0.5454 MB / 0.7604 GB, free: 332 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3881, allocations: 4 kB / 0.7604 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3882, allocations: 4 kB / 0.7604 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.3882, allocations: 7.953 kB / 0.7604 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.3884, allocations: 48.09 kB / 0.7604 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.3884, allocations: 8 kB / 0.7605 GB, free: 260 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.3887, allocations: 43.83 kB / 0.7605 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.903e-05/0.3888, allocations: 32 kB / 0.7605 GB, free: 184 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 78 ($PRE.falCle.scenario,$PRE.truCle.scenario,$PRE.iniFalOut.scenario,$PRE.iniTruOut.scenario,$PRE.swiCleInp.scenario,$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,$PRE.falCle.clr,falCle.clr,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,iniTruOut.scenario,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,swiCleInp.scenario,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,swiCleInp1.scenario,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.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.0003049/0.3891, allocations: 186.7 kB / 0.7607 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3892, allocations: 35.72 kB / 0.7607 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.3894, allocations: 42.17 kB / 0.7608 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.3894, allocations: 7.953 kB / 0.7608 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.347e-06/0.3894, allocations: 0 / 0.7608 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.3894, allocations: 0 / 0.7608 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.3914, allocations: 1.005 MB / 0.7618 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3914, allocations: 4 kB / 0.7618 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.941e-05/0.3915, allocations: 7.938 kB / 0.7618 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.3915, allocations: 4 kB / 0.7618 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.709e-05/0.3916, allocations: 35.92 kB / 0.7618 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.957e-06/0.3916, allocations: 4 kB / 0.7618 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.11e-06/0.3916, allocations: 0 / 0.7618 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3929, allocations: 0.6599 MB / 0.7625 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.313e-05/0.393, allocations: 100.8 kB / 0.7626 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3932, allocations: 35.92 kB / 0.7626 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.3934, allocations: 35.94 kB / 0.7626 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/0.3938, allocations: 116.2 kB / 0.7627 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.753e-05/0.3939, allocations: 43.97 kB / 0.7628 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001099/0.394, allocations: 109.6 kB / 0.7629 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.07e-07/0.394, allocations: 0 / 0.7629 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005757/0.3946, allocations: 120 kB / 0.763 GB, free: 13.55 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 52 ($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.clr,falCle.y,falCle.scenario,truCle.u,truCle.clr,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,iniTruOut.clr,iniTruOut.y,iniTruOut.scenario,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.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.0002764/0.3949, allocations: 170.8 kB / 0.7632 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.4776/0.8725, allocations: 14.73 MB / 0.7776 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.326e-06/0.8726, allocations: 0.7812 kB / 0.7776 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.005698/0.8783, allocations: 14.51 MB / 0.7917 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.8788, allocations: 47.98 kB / 0.7918 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.8801, allocations: 493.5 kB / 0.7922 GB, free: 129.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.8804, allocations: 0.7501 MB / 0.793 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001805/0.8806, allocations: 35.72 kB / 0.793 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.8808, allocations: 48.06 kB / 0.7931 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.616e-06/0.8808, allocations: 0 / 0.7931 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of Templates: time 0.01414/0.8949, allocations: 4.935 MB / 0.7979 GB, free: 128.3 MB / 0.6511 GB