Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadModel(IndustrialControlSystems): time 2.105/2.105, allocations: 216.8 MB / 229 MB, free: 15.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.933e-05, allocations: 4 kB / 281.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.08896, allocations: 50 MB / 331.9 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4572, allocations: 82.91 MB / 414.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.4576, allocations: 84.58 kB / 414.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04305/0.5006, allocations: 10.17 MB / 425.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.789e-06/0.5007, allocations: 4 kB / 425.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.263e-05/0.5007, allocations: 11.94 kB / 425.1 MB, free: 4.973 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.001126/0.5019, allocations: 0.6033 MB / 425.7 MB, free: 4.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.5019, allocations: 8.031 kB / 425.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.5021, allocations: 43.42 kB / 425.7 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000694/0.5028, allocations: 332.6 kB / 426 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.5028, allocations: 11.12 kB / 426.1 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.5029, allocations: 15.25 kB / 426.1 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.5033, allocations: 191.2 kB / 426.3 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5033, allocations: 0 / 426.3 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.5034, allocations: 6.625 kB / 426.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.029e-06/0.5034, allocations: 0 / 426.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.5037, allocations: 84.72 kB / 426.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.5048, allocations: 0.5583 MB / 426.9 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004736/0.5053, allocations: 157.5 kB / 427.1 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.5055, allocations: 64.22 kB / 427.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.5055, allocations: 7.562 kB / 427.1 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003704/0.5059, allocations: 164.7 kB / 427.3 MB, free: 2.875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.334e-06/0.5059, allocations: 0 / 427.3 MB, free: 2.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000627/0.5066, allocations: 243.8 kB / 427.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5067, allocations: 136.7 kB / 427.7 MB, free: 2.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005777/0.5073, allocations: 349.2 kB / 428 MB, free: 2.246 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.5073, allocations: 33.39 kB / 428 MB, free: 2.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.5075, allocations: 165.8 kB / 428.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.434e-05/0.5076, allocations: 58.64 kB / 428.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.5076, allocations: 3.938 kB / 428.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.5078, allocations: 338.2 kB / 428.6 MB, free: 1.723 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.508, allocations: 51.73 kB / 428.6 MB, free: 1.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.5082, allocations: 166.5 kB / 428.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.5084, allocations: 77.86 kB / 428.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.25e-06/0.5084, allocations: 0 / 428.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005831/0.509, allocations: 246.2 kB / 429.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.5091, allocations: 8 kB / 429.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.5091, allocations: 4 kB / 429.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.5091, allocations: 4 kB / 429.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.5094, allocations: 36.06 kB / 429.2 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.5094, allocations: 11.92 kB / 429.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.5097, allocations: 39.91 kB / 429.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.5097, allocations: 19.73 kB / 429.2 MB, free: 1.133 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.0002246/0.5099, allocations: 135.8 kB / 429.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.51, allocations: 31.62 kB / 429.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006596/0.5107, allocations: 280.9 kB / 429.7 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.018e-06/0.5107, allocations: 4 kB / 429.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.672e-06/0.5108, allocations: 3.953 kB / 429.7 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.712e-06/0.5108, allocations: 0 / 429.7 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/0.5112, allocations: 326.7 kB / 430 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.501e-06/0.5113, allocations: 0 / 430 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.5114, allocations: 15.94 kB / 430 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.023e-06/0.5114, allocations: 7.938 kB / 430 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.5115, allocations: 7.922 kB / 430 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.869e-06/0.5115, allocations: 8 kB / 430 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5115, allocations: 0 / 430 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000593/0.5121, allocations: 281.8 kB / 430.3 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.5123, allocations: 116.6 kB / 430.4 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.437e-05/0.5124, allocations: 11.88 kB / 430.4 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.5126, allocations: 19.61 kB / 430.5 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.5127, allocations: 23.89 kB / 430.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.317e-05/0.5128, allocations: 8 kB / 430.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004397/0.5132, allocations: 275.7 kB / 430.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.6e-07/0.5132, allocations: 0 / 430.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005704/0.5138, allocations: 99.64 kB / 430.9 MB, free: 15.68 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.001533/0.5153, allocations: 439.9 kB / 431.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005226/0.5159, allocations: 165.8 kB / 431.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.707e-06/0.5159, allocations: 4 kB / 431.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.5161, allocations: 86.86 kB / 431.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.5167, allocations: 64.81 kB / 431.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.5177, allocations: 384.7 kB / 432 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.5182, allocations: 0.7755 MB / 432.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002336/0.5185, allocations: 54.92 kB / 432.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.5186, allocations: 31.38 kB / 432.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of SimCode: time 2.225e-06/0.5186, allocations: 0 / 432.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of Templates: time 0.01262/0.5312, allocations: 4.26 MB / 437.1 MB, free: 9.621 MB / 362.7 MB