Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.067/4.067, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.29e-05/4.292e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.33 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6183/0.6184, allocations: 92.68 MB / 0.5897 GB, free: 14.45 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.8431, allocations: 121.1 MB / 0.7079 GB, free: 5.18 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003593/0.8435, allocations: 91.92 kB / 0.708 GB, free: 5.09 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.004377/0.8479, allocations: 1.054 MB / 0.709 GB, free: 4.035 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8479, allocations: 0 / 0.709 GB, free: 4.035 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.8479, allocations: 0 / 0.709 GB, free: 4.035 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006617/0.8486, allocations: 374.4 kB / 0.7094 GB, free: 3.625 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.8487, allocations: 12.03 kB / 0.7094 GB, free: 3.613 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.93e-05/0.8488, allocations: 46.48 kB / 0.7095 GB, free: 3.559 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.634e-05/0.8488, allocations: 11.95 kB / 0.7095 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.849, allocations: 174.9 kB / 0.7096 GB, free: 3.336 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.012e-05/0.8491, allocations: 45.52 kB / 0.7097 GB, free: 3.289 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.8491, allocations: 8 kB / 0.7097 GB, free: 3.281 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.8494, allocations: 81.64 kB / 0.7098 GB, free: 3.195 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.8494, allocations: 0 / 0.7098 GB, free: 3.195 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.8494, allocations: 0 / 0.7098 GB, free: 3.195 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.8494, allocations: 3.953 kB / 0.7098 GB, free: 3.191 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.8496, allocations: 55.91 kB / 0.7098 GB, free: 3.137 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008104/0.8504, allocations: 332.8 kB / 0.7101 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.8507, allocations: 90.56 kB / 0.7102 GB, free: 2.664 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.8509, allocations: 40.98 kB / 0.7103 GB, free: 2.621 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.8509, allocations: 3.953 kB / 0.7103 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004232/0.8513, allocations: 175.1 kB / 0.7104 GB, free: 2.434 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 2.565e-06/0.8513, allocations: 0 / 0.7104 GB, free: 2.434 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0004186/0.8518, allocations: 137.6 kB / 0.7106 GB, free: 2.293 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.8518, allocations: 55.41 kB / 0.7106 GB, free: 2.227 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.852, allocations: 109.2 kB / 0.7107 GB, free: 2.109 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.852, allocations: 33.7 kB / 0.7108 GB, free: 2.07 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.031e-05/0.8521, allocations: 96.2 kB / 0.7108 GB, free: 1.973 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.8522, allocations: 31.61 kB / 0.7109 GB, free: 1.941 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.8522, allocations: 4 kB / 0.7109 GB, free: 1.938 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.8523, allocations: 322.8 kB / 0.7112 GB, free: 1.613 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.8525, allocations: 40 kB / 0.7112 GB, free: 1.574 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.8526, allocations: 70.12 kB / 0.7113 GB, free: 1.496 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.528e-05/0.8528, allocations: 33.23 kB / 0.7113 GB, free: 1.465 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.8528, allocations: 4.328 kB / 0.7113 GB, free: 1.461 MB / 0.5886 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003453/0.8531, allocations: 136.1 kB / 0.7115 GB, free: 1.324 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.8532, allocations: 4 kB / 0.7115 GB, free: 1.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.8532, allocations: 0 / 0.7115 GB, free: 1.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.8532, allocations: 7.938 kB / 0.7115 GB, free: 1.312 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.8533, allocations: 19.88 kB / 0.7115 GB, free: 1.293 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.8533, allocations: 0 / 0.7115 GB, free: 1.293 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.8536, allocations: 24.06 kB / 0.7115 GB, free: 1.27 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.8536, allocations: 8 kB / 0.7115 GB, free: 1.262 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.latch1.y,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.booPul2.pulseStart,booPul2.pulseStart,$PRE.latch1.u,latch1.u,$PRE.latch1.u0,latch1.u0,latch1.y,$PRE.latch1.scenario,latch1.scenario) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * 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.0001144/0.8537, allocations: 116.3 kB / 0.7116 GB, free: 1.145 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.8538, allocations: 15.86 kB / 0.7116 GB, free: 1.129 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.087e-05/0.8539, allocations: 16.75 kB / 0.7117 GB, free: 1.113 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.8539, allocations: 0 / 0.7117 GB, free: 1.113 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.8539, allocations: 4 kB / 0.7117 GB, free: 1.109 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.8539, allocations: 7.984 kB / 0.7117 GB, free: 1.102 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.855, allocations: 430.5 kB / 0.7121 GB, free: 0.625 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.855, allocations: 0 / 0.7121 GB, free: 0.625 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.543e-05/0.8551, allocations: 4 kB / 0.7121 GB, free: 0.6211 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.8551, allocations: 0 / 0.7121 GB, free: 0.6211 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.8551, allocations: 8 kB / 0.7121 GB, free: 0.6133 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.12e-05/0.8552, allocations: 7.969 kB / 0.7121 GB, free: 0.6055 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8552, allocations: 0 / 0.7121 GB, free: 0.6055 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.8558, allocations: 247.3 kB / 0.7123 GB, free: 356 kB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.554e-05/0.8559, allocations: 93 kB / 0.7124 GB, free: 244 kB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.856, allocations: 11.98 kB / 0.7124 GB, free: 232 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.8564, allocations: 11.98 kB / 0.7124 GB, free: 220 kB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.8566, allocations: 27.95 kB / 0.7125 GB, free: 192 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.8566, allocations: 11.98 kB / 0.7125 GB, free: 180 kB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001086/0.8568, allocations: 87.28 kB / 0.7126 GB, free: 92 kB / 0.5886 GB Notification: Performance of sort global known variables: time 6.51e-07/0.8568, allocations: 4 kB / 0.7126 GB, free: 88 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0006245/0.8574, allocations: 24 kB / 0.7126 GB, free: 64 kB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition2,$whenCondition1,booPul1.pulseStart,booPul2.pulseStart,latch1.u,latch1.u0,latch1.y,latch1.scenario) * Number of discrete states: 2 (latch1.u,latch1.u0) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * 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.0009905/0.8584, allocations: 0.7865 MB / 0.7134 GB, free: 15.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003737/0.8588, allocations: 108.1 kB / 0.7135 GB, free: 15.14 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.8589, allocations: 4.062 kB / 0.7135 GB, free: 15.14 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.8591, allocations: 75.94 kB / 0.7135 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.8595, allocations: 28.08 kB / 0.7136 GB, free: 15.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007891/0.8603, allocations: 183.3 kB / 0.7137 GB, free: 14.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.8606, allocations: 0.7004 MB / 0.7144 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.376e-05/0.8607, allocations: 8.891 kB / 0.7144 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.8608, allocations: 31.42 kB / 0.7145 GB, free: 14.05 MB / 0.6042 GB Notification: Performance of SimCode: time 9.32e-07/0.8608, allocations: 0 / 0.7145 GB, free: 14.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.8883, allocations: 2.323 MB / 0.7167 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002942/0.8887, allocations: 158.1 kB / 0.7169 GB, free: 11.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/3.272, allocations: 0 / 0.7169 GB, free: 11.57 MB / 0.6042 GB