Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.971/3.971, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 5.626e-05/5.631e-05, allocations: 6.297 kB / 0.5338 GB, free: 12.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2323, allocations: 98.73 MB / 0.6302 GB, free: 6.109 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.225/0.4573, allocations: 124.8 MB / 0.7521 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.4577, allocations: 71.95 kB / 0.7522 GB, free: 9.039 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009556/0.4673, allocations: 2.231 MB / 0.7544 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4673, allocations: 0 / 0.7544 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.4673, allocations: 4 kB / 0.7544 GB, free: 6.797 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.00105/0.4684, allocations: 499.1 kB / 0.7549 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4685, allocations: 8.031 kB / 0.7549 GB, free: 6.258 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.4686, allocations: 62.53 kB / 0.7549 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.4687, allocations: 35.81 kB / 0.755 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.4689, allocations: 178.8 kB / 0.7551 GB, free: 5.938 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.0007421/0.4696, allocations: 499.8 kB / 0.7556 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4698, allocations: 43.98 kB / 0.7556 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007959/0.4706, allocations: 317.5 kB / 0.7559 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4706, allocations: 0 / 0.7559 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.4707, allocations: 15.98 kB / 0.756 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4707, allocations: 4 kB / 0.756 GB, free: 5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.4712, allocations: 151.9 kB / 0.7561 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.4727, allocations: 0.6212 MB / 0.7567 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.4743, allocations: 0.5494 MB / 0.7573 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005611/0.4749, allocations: 248.8 kB / 0.7575 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.475, allocations: 0 / 0.7575 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.4762, allocations: 0.5656 MB / 0.758 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 3.497e-06/0.4762, allocations: 0 / 0.758 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001659/0.4779, allocations: 0.5543 MB / 0.7586 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.478, allocations: 63.84 kB / 0.7586 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4782, allocations: 138.9 kB / 0.7588 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.4783, allocations: 69.69 kB / 0.7588 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.99e-05/0.4784, allocations: 101.4 kB / 0.7589 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.4786, allocations: 126.8 kB / 0.7591 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.733e-05/0.4787, allocations: 24 kB / 0.7591 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4788, allocations: 338.8 kB / 0.7594 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005689/0.4794, allocations: 193.6 kB / 0.7596 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006449/0.48, allocations: 278.5 kB / 0.7599 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/0.4805, allocations: 163.8 kB / 0.76 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.4805, allocations: 4 kB / 0.76 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00137/0.4819, allocations: 0.5416 MB / 0.7605 GB, free: 156 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.482, allocations: 4 kB / 0.7606 GB, free: 152 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.482, allocations: 7.953 kB / 0.7606 GB, free: 144 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.482, allocations: 4 kB / 0.7606 GB, free: 140 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.4823, allocations: 47.84 kB / 0.7606 GB, free: 92 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.812e-05/0.4823, allocations: 4 kB / 0.7606 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.4826, allocations: 44.08 kB / 0.7607 GB, free: 44 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-05/0.4827, allocations: 36 kB / 0.7607 GB, free: 8 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.0002798/0.483, allocations: 192.3 kB / 0.7609 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.4831, allocations: 39.7 kB / 0.7609 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.4833, allocations: 38.19 kB / 0.7609 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.4833, allocations: 7.953 kB / 0.761 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.4833, allocations: 4 kB / 0.761 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4833, allocations: 3.984 kB / 0.761 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.4853, allocations: 0.9896 MB / 0.7619 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4853, allocations: 4 kB / 0.7619 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.4854, allocations: 19.92 kB / 0.7619 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.4854, allocations: 3.953 kB / 0.762 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.592e-05/0.4855, allocations: 31.97 kB / 0.762 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.4855, allocations: 4 kB / 0.762 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4855, allocations: 0 / 0.762 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.487, allocations: 0.6599 MB / 0.7626 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.182e-05/0.4871, allocations: 100.8 kB / 0.7627 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.4872, allocations: 43.94 kB / 0.7628 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003293/0.4875, allocations: 35.97 kB / 0.7628 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.4879, allocations: 112.2 kB / 0.7629 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.642e-05/0.488, allocations: 43.97 kB / 0.763 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.687e-05/0.4881, allocations: 105.6 kB / 0.7631 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.5e-07/0.4881, allocations: 0 / 0.7631 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006014/0.4887, allocations: 120 kB / 0.7632 GB, free: 13.37 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.001899/0.4906, allocations: 1.259 MB / 0.7644 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5081/0.9988, allocations: 14.73 MB / 0.7788 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.9988, allocations: 0.6562 kB / 0.7788 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.006129/1.005, allocations: 14.52 MB / 0.793 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/1.006, allocations: 35.83 kB / 0.793 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/1.008, allocations: 0.5724 MB / 0.7936 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/1.008, allocations: 0.7457 MB / 0.7943 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002078/1.008, allocations: 40.38 kB / 0.7943 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/1.008, allocations: 83.86 kB / 0.7944 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of SimCode: time 1.012e-06/1.008, allocations: 0 / 0.7944 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03858/1.047, allocations: 6.943 MB / 0.8012 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/1.047, allocations: 155.2 kB / 0.8013 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/3.574, allocations: 0 / 0.8013 GB, free: 125.1 MB / 0.6511 GB