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 4.237/4.237, allocations: 431.3 MB / 445.8 MB, free: 5.449 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.882e-05/4.883e-05, allocations: 6.188 kB / 0.5354 GB, free: 14.85 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7064/0.7065, allocations: 98.71 MB / 0.6318 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.00208/0.7086, allocations: 1.191 MB / 0.633 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0009959/0.7097, allocations: 360.5 kB / 0.6333 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.736e-05/0.7098, allocations: 8 kB / 0.6333 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.7098, allocations: 11.86 kB / 0.6333 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 9.731e-05/0.7099, allocations: 15.95 kB / 0.6334 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.7103, allocations: 111.8 kB / 0.6335 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0002559/0.7105, allocations: 155.7 kB / 0.6336 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.7107, allocations: 32.06 kB / 0.6336 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.7109, allocations: 119.8 kB / 0.6338 GB, free: 9.98 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.7111, allocations: 103.7 kB / 0.6339 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 7.527e-05/0.7112, allocations: 16 kB / 0.6339 GB, free: 9.863 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.7113, allocations: 16 kB / 0.6339 GB, free: 9.848 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.7114, allocations: 83.77 kB / 0.634 GB, free: 9.766 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.7115, allocations: 35.94 kB / 0.634 GB, free: 9.73 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0003489/0.7118, allocations: 229.8 kB / 0.6342 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.7119, allocations: 0 / 0.6342 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7119, allocations: 0 / 0.6342 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.078e-05/0.7119, allocations: 0 / 0.6342 GB, free: 9.508 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.001174/0.7131, allocations: 487.6 kB / 0.6347 GB, free: 8.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.7131, allocations: 12.03 kB / 0.6347 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.7133, allocations: 35.8 kB / 0.6347 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006431/0.7139, allocations: 278.6 kB / 0.635 GB, free: 8.621 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 = 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.0007196/0.7147, allocations: 488.6 kB / 0.6355 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.7148, allocations: 47.98 kB / 0.6355 GB, free: 8.023 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/0.7157, allocations: 321.4 kB / 0.6358 GB, free: 7.703 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.7157, allocations: 4 kB / 0.6358 GB, free: 7.699 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/0.7158, allocations: 19.98 kB / 0.6358 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.7158, allocations: 4 kB / 0.6358 GB, free: 7.676 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005291/0.7163, allocations: 163.8 kB / 0.636 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.7179, allocations: 0.6135 MB / 0.6366 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.7196, allocations: 0.495 MB / 0.6371 GB, free: 6.348 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.7197, allocations: 8.141 kB / 0.6371 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.7209, allocations: 0.5473 MB / 0.6376 GB, free: 5.781 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 3.787e-06/0.721, allocations: 0 / 0.6376 GB, free: 5.781 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48): time 0.001985/0.7229, allocations: 0.7057 MB / 0.6383 GB, free: 5.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.723, allocations: 59.84 kB / 0.6384 GB, free: 5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.7232, allocations: 148.5 kB / 0.6385 GB, free: 4.848 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.7234, allocations: 73.62 kB / 0.6386 GB, free: 4.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.7235, allocations: 121.2 kB / 0.6387 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.7237, allocations: 118.7 kB / 0.6388 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-05/0.7237, allocations: 24 kB / 0.6388 GB, free: 4.508 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.7239, allocations: 338.8 kB / 0.6392 GB, free: 4.168 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006307/0.7245, allocations: 205.2 kB / 0.6394 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.7252, allocations: 308.5 kB / 0.6396 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.7258, allocations: 162.1 kB / 0.6398 GB, free: 3.477 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.7258, allocations: 7.938 kB / 0.6398 GB, free: 3.469 MB / 0.5105 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00148/0.7273, allocations: 0.5611 MB / 0.6404 GB, free: 2.902 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.7273, allocations: 8.266 kB / 0.6404 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.7274, allocations: 8 kB / 0.6404 GB, free: 2.887 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.7274, allocations: 4 kB / 0.6404 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.7277, allocations: 47.84 kB / 0.6404 GB, free: 2.836 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.293e-05/0.7277, allocations: 15.92 kB / 0.6404 GB, free: 2.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003555/0.7281, allocations: 55.58 kB / 0.6405 GB, free: 2.766 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.7282, allocations: 36 kB / 0.6405 GB, free: 2.73 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 80 ($PRE.falCle.scenario,$PRE.truCle.scenario,$PRE.iniFalOut.scenario,$PRE.iniTruOut.scenario,$PRE.swiCleInp.scenario,$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,$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,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.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.0003299/0.7285, allocations: 198.9 kB / 0.6407 GB, free: 2.527 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.7286, allocations: 39.72 kB / 0.6408 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.7288, allocations: 34.58 kB / 0.6408 GB, free: 2.453 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.7288, allocations: 8 kB / 0.6408 GB, free: 2.445 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.7288, allocations: 0 / 0.6408 GB, free: 2.445 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.7288, allocations: 7.969 kB / 0.6408 GB, free: 2.438 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.7308, allocations: 0.9661 MB / 0.6417 GB, free: 1.418 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.7309, allocations: 0 / 0.6417 GB, free: 1.418 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.731, allocations: 19.88 kB / 0.6418 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.731, allocations: 0 / 0.6418 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.529e-05/0.7311, allocations: 31.97 kB / 0.6418 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.7311, allocations: 0 / 0.6418 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7311, allocations: 0 / 0.6418 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.7326, allocations: 0.6442 MB / 0.6424 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.706e-05/0.7327, allocations: 96.83 kB / 0.6425 GB, free: 0.5898 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.7329, allocations: 39.88 kB / 0.6426 GB, free: 0.5508 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.7332, allocations: 35.97 kB / 0.6426 GB, free: 0.5156 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003155/0.7335, allocations: 100.2 kB / 0.6427 GB, free: 428 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.294e-05/0.7336, allocations: 43.97 kB / 0.6427 GB, free: 384 kB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001202/0.7338, allocations: 110.1 kB / 0.6428 GB, free: 276 kB / 0.5105 GB Notification: Performance of sort global known variables: time 3.61e-07/0.7338, allocations: 0 / 0.6428 GB, free: 276 kB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000596/0.7344, allocations: 127.9 kB / 0.643 GB, free: 148 kB / 0.5105 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 ($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.clr,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.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.0003279/0.7347, allocations: 148 kB / 0.6431 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009924/0.7447, allocations: 14.78 MB / 0.6575 GB, free: 0.7109 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.7447, allocations: 0 / 0.6575 GB, free: 0.7109 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008968/0.7537, allocations: 14.51 MB / 0.6717 GB, free: 1.695 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.7542, allocations: 39.94 kB / 0.6717 GB, free: 1.656 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.756, allocations: 0.595 MB / 0.6723 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.7564, allocations: 0.7501 MB / 0.673 GB, free: 260 kB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002359/0.7567, allocations: 35.28 kB / 0.6731 GB, free: 224 kB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.7569, allocations: 47.41 kB / 0.6731 GB, free: 176 kB / 0.5417 GB Notification: Performance of SimCode: time 1.493e-06/0.7569, allocations: 0 / 0.6731 GB, free: 176 kB / 0.5417 GB Notification: Performance of Templates: time 0.01546/0.7724, allocations: 4.756 MB / 0.6778 GB, free: 11.41 MB / 0.5573 GB