Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.142/2.142, allocations: 216.8 MB / 229 MB, free: 15.09 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.316e-05/3.322e-05, allocations: 0 / 282 MB, free: 10.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 50.01 MB / 332 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5169/0.6293, allocations: 82.93 MB / 414.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.6296, allocations: 81.52 kB / 415 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04498/0.6746, allocations: 10.16 MB / 425.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6747, allocations: 7.938 kB / 425.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.066e-05/0.6747, allocations: 7.984 kB / 425.2 MB, free: 4.648 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001301/0.676, allocations: 0.6082 MB / 425.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.6761, allocations: 16.03 kB / 425.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.993e-05/0.6762, allocations: 50.98 kB / 425.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.6763, allocations: 39.52 kB / 425.9 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007297/0.6771, allocations: 329.9 kB / 426.2 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.6771, allocations: 13.56 kB / 426.2 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.6772, allocations: 10.88 kB / 426.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004424/0.6776, allocations: 188.8 kB / 426.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.6776, allocations: 0 / 426.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.6777, allocations: 7.625 kB / 426.4 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.6777, allocations: 4 kB / 426.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.678, allocations: 85.61 kB / 426.5 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.6792, allocations: 0.5653 MB / 427.1 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005439/0.6798, allocations: 158.4 kB / 427.2 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.68, allocations: 58.41 kB / 427.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.68, allocations: 0 / 427.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003948/0.6804, allocations: 165.2 kB / 427.5 MB, free: 2.492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.204e-06/0.6805, allocations: 4 kB / 427.5 MB, free: 2.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006828/0.6812, allocations: 248.3 kB / 427.7 MB, free: 2.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.6813, allocations: 140.1 kB / 427.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006015/0.6819, allocations: 339.4 kB / 428.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.6819, allocations: 32.95 kB / 428.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.6821, allocations: 172.2 kB / 428.4 MB, free: 1.707 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.6822, allocations: 46.28 kB / 428.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.289e-05/0.6822, allocations: 7.562 kB / 428.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.6824, allocations: 347.9 kB / 428.8 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.6826, allocations: 47.88 kB / 428.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.6828, allocations: 170.4 kB / 429 MB, free: 1.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.683, allocations: 74.81 kB / 429 MB, free: 1.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.6831, allocations: 4 kB / 429 MB, free: 1.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006195/0.6837, allocations: 237.6 kB / 429.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.6837, allocations: 4.344 kB / 429.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.6837, allocations: 11.98 kB / 429.3 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.6838, allocations: 7.953 kB / 429.3 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.6841, allocations: 43.03 kB / 429.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.6841, allocations: 7.938 kB / 429.4 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.6844, allocations: 35.08 kB / 429.4 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.6844, allocations: 11 kB / 429.4 MB, free: 0.75 MB / 346.7 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(fixed = false ) "output" type: Boolean 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: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$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,$whenCondition4,$whenCondition3,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.set.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0002558/0.6847, allocations: 140 kB / 429.5 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.6848, allocations: 35 kB / 429.6 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.686, allocations: 272.9 kB / 429.8 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.686, allocations: 0 / 429.8 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.686, allocations: 3.953 kB / 429.8 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.6861, allocations: 11.94 kB / 429.9 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.6868, allocations: 321.9 kB / 430.2 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.6868, allocations: 0 / 430.2 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.687, allocations: 23.11 kB / 430.2 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.6871, allocations: 0 / 430.2 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.6871, allocations: 4 kB / 430.2 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.6871, allocations: 0 / 430.2 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6872, allocations: 0 / 430.2 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.6883, allocations: 289.9 kB / 430.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.6886, allocations: 123.6 kB / 430.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.6888, allocations: 7.375 kB / 430.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.6893, allocations: 23.16 kB / 430.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.6894, allocations: 19.22 kB / 430.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-05/0.6895, allocations: 7.984 kB / 430.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006967/0.6902, allocations: 277.9 kB / 430.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.296e-06/0.6902, allocations: 4 kB / 430.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6913, allocations: 96.97 kB / 431 MB, free: 15.29 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: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.003258/0.6946, allocations: 1.138 MB / 432.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008388/0.6955, allocations: 176.9 kB / 432.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.6955, allocations: 0 / 432.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003349/0.6959, allocations: 89.36 kB / 432.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008851/0.6968, allocations: 64.5 kB / 432.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.6989, allocations: 481.5 kB / 433 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.6995, allocations: 0.7835 MB / 433.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003771/0.6999, allocations: 58.81 kB / 433.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002978/0.7002, allocations: 95.97 kB / 433.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7003, allocations: 0 / 433.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04016/0.7404, allocations: 7.179 MB / 441.1 MB, free: 5.551 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003804/0.7409, allocations: 225.3 kB / 441.3 MB, free: 5.324 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.689/3.43, allocations: 0 / 441.3 MB, free: 5.324 MB / 362.7 MB