Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.207/2.207, allocations: 216.8 MB / 229 MB, free: 15.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.85e-05/3.862e-05, allocations: 8 kB / 282 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1373, allocations: 49.99 MB / 332 MB, free: 8.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5837, allocations: 81.81 MB / 413.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/0.5841, allocations: 83.77 kB / 413.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09211/0.6762, allocations: 16.73 MB / 430.6 MB, free: 184 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6763, allocations: 4 kB / 430.6 MB, free: 180 kB / 346.7 MB Notification: Performance of Transformations before backend: time 8.945e-05/0.6764, allocations: 11.94 kB / 430.6 MB, free: 168 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002225/0.6787, allocations: 0.8517 MB / 431.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.6788, allocations: 12.03 kB / 431.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.6789, allocations: 49.84 kB / 431.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.6792, allocations: 71.11 kB / 431.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.6813, allocations: 0.5465 MB / 432.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.6814, allocations: 10.83 kB / 432.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.735e-05/0.6815, allocations: 18.88 kB / 432.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008395/0.6824, allocations: 245.5 kB / 432.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.6824, allocations: 0 / 432.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.677e-05/0.6825, allocations: 7.938 kB / 432.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.6825, allocations: 4 kB / 432.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000509/0.683, allocations: 123.7 kB / 432.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.6856, allocations: 0.7952 MB / 433.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.6869, allocations: 269.3 kB / 433.6 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.6873, allocations: 95.41 kB / 433.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.6873, allocations: 7.484 kB / 433.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000698/0.688, allocations: 221.7 kB / 433.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 4.599e-06/0.6881, allocations: 0 / 433.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001378/0.6895, allocations: 350.8 kB / 434.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.6896, allocations: 196 kB / 434.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.692, allocations: 0.7949 MB / 435.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.191e-05/0.6921, allocations: 39.7 kB / 435.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.6926, allocations: 288.8 kB / 435.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.6927, allocations: 83.48 kB / 435.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.6928, allocations: 5.938 kB / 435.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.693, allocations: 328.7 kB / 436 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.6933, allocations: 74.55 kB / 436.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006033/0.6939, allocations: 262.8 kB / 436.3 MB, free: 11.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.6943, allocations: 105 kB / 436.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.6944, allocations: 0 / 436.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001298/0.6957, allocations: 351.8 kB / 436.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.6957, allocations: 8 kB / 436.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.6958, allocations: 7.984 kB / 436.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.836e-05/0.6958, allocations: 4 kB / 436.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.6963, allocations: 47.92 kB / 436.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.479e-05/0.6964, allocations: 11.92 kB / 436.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.697, allocations: 43.83 kB / 436.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.465e-05/0.6971, allocations: 19.69 kB / 436.9 MB, free: 10.69 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.y,countUP.combiTimeTable.nextTimeEvent,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003429/0.6975, allocations: 153.5 kB / 437 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.6977, allocations: 67.16 kB / 437.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/0.6992, allocations: 402.9 kB / 437.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.6992, allocations: 7.938 kB / 437.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.6993, allocations: 0 / 437.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.6993, allocations: 3.984 kB / 437.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.7006, allocations: 0.5062 MB / 438 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.7006, allocations: 3.984 kB / 438 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.7009, allocations: 16 kB / 438 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.617e-05/0.7009, allocations: 4 kB / 438 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.726e-05/0.701, allocations: 11.48 kB / 438.1 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.701, allocations: 4 kB / 438.1 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.701, allocations: 0 / 438.1 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.7026, allocations: 408.3 kB / 438.5 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005096/0.7031, allocations: 199.3 kB / 438.7 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.7034, allocations: 11.88 kB / 438.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.7039, allocations: 31.72 kB / 438.7 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.7041, allocations: 27.91 kB / 438.7 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-05/0.7042, allocations: 19.67 kB / 438.7 MB, free: 9.074 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00171/0.7059, allocations: 0.6281 MB / 439.4 MB, free: 8.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.706, allocations: 0 / 439.4 MB, free: 8.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001096/0.7071, allocations: 143.5 kB / 439.5 MB, free: 8.492 MB / 362.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: 22 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,countUP.y,countUP.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 12 (counter.Value,counter.Sd,counter.CUd,counter.CDd,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.002797/0.7099, allocations: 1.3 MB / 440.8 MB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000885/0.7108, allocations: 271.5 kB / 441.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7109, allocations: 0.625 kB / 441.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.7112, allocations: 138.3 kB / 441.2 MB, free: 7.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.7124, allocations: 134.6 kB / 441.3 MB, free: 6.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.7154, allocations: 0.9742 MB / 442.3 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.7161, allocations: 0.9175 MB / 443.2 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005902/0.7167, allocations: 115.2 kB / 443.3 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004482/0.7172, allocations: 216.3 kB / 443.6 MB, free: 4.961 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7172, allocations: 0 / 443.6 MB, free: 4.961 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04977/0.767, allocations: 13.47 MB / 457 MB, free: 7.547 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003385/0.7674, allocations: 222 kB / 457.2 MB, free: 7.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.935/3.702, allocations: 7.844 kB / 457.3 MB, free: 7.312 MB / 378.7 MB