Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.143/2.143, allocations: 216.8 MB / 229 MB, free: 15.09 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.28e-05, allocations: 4 kB / 282 MB, free: 10.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1223, allocations: 50 MB / 332 MB, free: 8.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4693/0.5917, allocations: 81.7 MB / 413.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.592, allocations: 86 kB / 413.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04272/0.6348, allocations: 9.113 MB / 422.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6348, allocations: 0 / 422.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.115e-05/0.6349, allocations: 8 kB / 422.9 MB, free: 6.746 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001128/0.636, allocations: 0.5673 MB / 423.5 MB, free: 6.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.6361, allocations: 12.03 kB / 423.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.668e-05/0.6362, allocations: 46.3 kB / 423.5 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.6363, allocations: 31.58 kB / 423.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008329/0.6372, allocations: 322.7 kB / 423.9 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.6372, allocations: 8.062 kB / 423.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.505e-05/0.6373, allocations: 19.86 kB / 423.9 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.6377, allocations: 141.8 kB / 424 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.6377, allocations: 3.938 kB / 424 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.6377, allocations: 7.938 kB / 424 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.6377, allocations: 0 / 424 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.638, allocations: 74.62 kB / 424.1 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.6392, allocations: 0.4907 MB / 424.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.6397, allocations: 131 kB / 424.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.6398, allocations: 59.08 kB / 424.8 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.6399, allocations: 8 kB / 424.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/0.6402, allocations: 121.5 kB / 424.9 MB, free: 4.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 3.627e-06/0.6402, allocations: 3.938 kB / 424.9 MB, free: 4.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000752/0.641, allocations: 211.7 kB / 425.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.205e-05/0.6411, allocations: 106.8 kB / 425.2 MB, free: 4.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007371/0.6419, allocations: 356.5 kB / 425.6 MB, free: 4.219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.403e-05/0.642, allocations: 29.58 kB / 425.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.6421, allocations: 159.3 kB / 425.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.215e-05/0.6422, allocations: 45.95 kB / 425.8 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.305e-05/0.6422, allocations: 0 / 425.8 MB, free: 4.035 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.6425, allocations: 347.1 kB / 426.2 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.6426, allocations: 37.81 kB / 426.2 MB, free: 3.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.6429, allocations: 151.7 kB / 426.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.6431, allocations: 54.8 kB / 426.4 MB, free: 3.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6431, allocations: 3.938 kB / 426.4 MB, free: 3.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005917/0.6437, allocations: 217.3 kB / 426.6 MB, free: 3.297 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.6437, allocations: 8.25 kB / 426.6 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.6438, allocations: 4 kB / 426.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.6438, allocations: 4 kB / 426.6 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.6441, allocations: 31.92 kB / 426.7 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.6441, allocations: 4 kB / 426.7 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.6444, allocations: 27.45 kB / 426.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.6444, allocations: 11 kB / 426.7 MB, free: 3.215 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = false ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(fixed = false ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.timer.Sd,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002434/0.6446, allocations: 128.7 kB / 426.8 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.6448, allocations: 35.66 kB / 426.9 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007068/0.6455, allocations: 233 kB / 427.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.6455, allocations: 0 / 427.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.6455, allocations: 3.938 kB / 427.1 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.6455, allocations: 7.891 kB / 427.1 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.646, allocations: 310.5 kB / 427.4 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.6461, allocations: 4 kB / 427.4 MB, free: 2.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.6462, allocations: 10.69 kB / 427.4 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.6462, allocations: 4 kB / 427.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.6462, allocations: 3.984 kB / 427.4 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.6463, allocations: 4 kB / 427.4 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.6463, allocations: 0 / 427.4 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.6469, allocations: 251.8 kB / 427.7 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.647, allocations: 123.3 kB / 427.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.6471, allocations: 7.188 kB / 427.8 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.6473, allocations: 15.98 kB / 427.8 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.6474, allocations: 15.3 kB / 427.8 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.6475, allocations: 8 kB / 427.8 MB, free: 2.152 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005059/0.648, allocations: 276.8 kB / 428.1 MB, free: 1.941 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.648, allocations: 0 / 428.1 MB, free: 1.941 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006111/0.6486, allocations: 78.91 kB / 428.2 MB, free: 1.871 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.002204/0.6508, allocations: 1.115 MB / 429.3 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005503/0.6514, allocations: 138.2 kB / 429.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6514, allocations: 8.062 kB / 429.4 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.6517, allocations: 80.48 kB / 429.5 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006734/0.6524, allocations: 75.12 kB / 429.6 MB, free: 0.625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.6539, allocations: 454.6 kB / 430 MB, free: 208 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.6544, allocations: 0.7753 MB / 430.8 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002723/0.6547, allocations: 46.03 kB / 430.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.655, allocations: 87.59 kB / 430.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.655, allocations: 0 / 430.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.6889, allocations: 6.676 MB / 437.6 MB, free: 8.703 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003201/0.6893, allocations: 214.6 kB / 437.8 MB, free: 8.477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.772/3.462, allocations: 0 / 437.8 MB, free: 8.477 MB / 362.7 MB