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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.384/4.384, allocations: 404.1 MB / 411.3 MB, free: 456 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.784e-05, allocations: 8 kB / 0.4946 GB, free: 1.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6278/0.6278, allocations: 92.68 MB / 0.5851 GB, free: 2.312 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2429/0.8707, allocations: 120.4 MB / 0.7027 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003643/0.8712, allocations: 83.94 kB / 0.7028 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.004901/0.8761, allocations: 1.058 MB / 0.7038 GB, free: 8.57 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8761, allocations: 4 kB / 0.7038 GB, free: 8.566 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.8762, allocations: 4 kB / 0.7038 GB, free: 8.562 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.0007088/0.8769, allocations: 366.4 kB / 0.7042 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.877, allocations: 8.031 kB / 0.7042 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.448e-05/0.877, allocations: 15.89 kB / 0.7042 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.8772, allocations: 182.9 kB / 0.7043 GB, free: 7.918 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.478e-05/0.8773, allocations: 37.7 kB / 0.7044 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.8774, allocations: 4 kB / 0.7044 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001956/0.8776, allocations: 39.98 kB / 0.7044 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.8778, allocations: 81.62 kB / 0.7045 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.8778, allocations: 0 / 0.7045 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.8779, allocations: 0 / 0.7045 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.8779, allocations: 3.953 kB / 0.7045 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008671/0.8788, allocations: 313.3 kB / 0.7048 GB, free: 7.398 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.8791, allocations: 90.56 kB / 0.7049 GB, free: 7.301 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.8792, allocations: 36.98 kB / 0.7049 GB, free: 7.262 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.8792, allocations: 0 / 0.7049 GB, free: 7.262 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.8797, allocations: 171.1 kB / 0.7051 GB, free: 7.082 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 2.755e-06/0.8797, allocations: 0 / 0.7051 GB, free: 7.082 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0004486/0.8802, allocations: 129.6 kB / 0.7052 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.8802, allocations: 55.41 kB / 0.7053 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.8804, allocations: 113.1 kB / 0.7054 GB, free: 6.762 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.8804, allocations: 33.7 kB / 0.7054 GB, free: 6.723 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.8805, allocations: 88.14 kB / 0.7055 GB, free: 6.633 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.8806, allocations: 27.61 kB / 0.7055 GB, free: 6.605 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.8806, allocations: 4 kB / 0.7055 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.8808, allocations: 326.8 kB / 0.7058 GB, free: 6.273 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.8809, allocations: 32 kB / 0.7059 GB, free: 6.242 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.8811, allocations: 76.05 kB / 0.7059 GB, free: 6.156 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.614e-05/0.8812, allocations: 25.72 kB / 0.706 GB, free: 6.133 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.8812, allocations: 0 / 0.706 GB, free: 6.133 MB / 0.5886 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003679/0.8816, allocations: 125.4 kB / 0.7061 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.8816, allocations: 8 kB / 0.7061 GB, free: 5.996 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.8817, allocations: 0 / 0.7061 GB, free: 5.996 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.8817, allocations: 0 / 0.7061 GB, free: 5.996 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.8818, allocations: 15.92 kB / 0.7061 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.8818, allocations: 0 / 0.7061 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.8821, allocations: 20.08 kB / 0.7061 GB, free: 5.961 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.8821, allocations: 8 kB / 0.7061 GB, free: 5.953 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.000123/0.8822, allocations: 108.8 kB / 0.7062 GB, free: 5.84 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003632/0.8826, allocations: 145.5 kB / 0.7064 GB, free: 5.691 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.8827, allocations: 7.906 kB / 0.7064 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.877e-05/0.8827, allocations: 16.75 kB / 0.7064 GB, free: 5.668 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.8827, allocations: 0 / 0.7064 GB, free: 5.668 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.8828, allocations: 4 kB / 0.7064 GB, free: 5.664 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.8828, allocations: 3.984 kB / 0.7064 GB, free: 5.66 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000658/0.8835, allocations: 387.3 kB / 0.7068 GB, free: 5.238 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8835, allocations: 0 / 0.7068 GB, free: 5.238 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-05/0.8835, allocations: 7.938 kB / 0.7068 GB, free: 5.23 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.8835, allocations: 0 / 0.7068 GB, free: 5.23 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.8836, allocations: 11.98 kB / 0.7068 GB, free: 5.219 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.8836, allocations: 0 / 0.7068 GB, free: 5.219 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.8836, allocations: 0 / 0.7068 GB, free: 5.219 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.884, allocations: 239.5 kB / 0.707 GB, free: 4.969 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.8841, allocations: 81.02 kB / 0.7071 GB, free: 4.871 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.8842, allocations: 7.984 kB / 0.7071 GB, free: 4.863 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.8844, allocations: 11.98 kB / 0.7071 GB, free: 4.852 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.8846, allocations: 39.88 kB / 0.7072 GB, free: 4.812 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.8846, allocations: 4 kB / 0.7072 GB, free: 4.809 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.712e-05/0.8847, allocations: 95.59 kB / 0.7073 GB, free: 4.715 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8848, allocations: 0 / 0.7073 GB, free: 4.715 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004311/0.8852, allocations: 23.98 kB / 0.7073 GB, free: 4.691 MB / 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.0007995/0.886, allocations: 0.7709 MB / 0.708 GB, free: 3.895 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003595/0.8864, allocations: 110.9 kB / 0.7081 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8864, allocations: 0 / 0.7081 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.8866, allocations: 67.94 kB / 0.7082 GB, free: 3.723 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.887, allocations: 20.44 kB / 0.7082 GB, free: 3.703 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008708/0.8879, allocations: 178.2 kB / 0.7084 GB, free: 3.488 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.8882, allocations: 0.7003 MB / 0.7091 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001047/0.8884, allocations: 12.88 kB / 0.7091 GB, free: 2.75 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.8885, allocations: 31.42 kB / 0.7091 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of SimCode: time 8.52e-07/0.8885, allocations: 0 / 0.7091 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04712/0.9356, allocations: 1.992 MB / 0.7111 GB, free: 0.7422 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003273/0.936, allocations: 153 kB / 0.7112 GB, free: 0.543 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.541/3.477, allocations: 0 / 0.7112 GB, free: 0.543 MB / 0.5886 GB