Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadModel(Modelica_Synchronous): time 2.054/2.054, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.893e-05, allocations: 8 kB / 284.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09519, allocations: 50.36 MB / 334.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3614/0.4566, allocations: 77.55 MB / 412.3 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.4569, allocations: 70.27 kB / 412.3 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003135/0.4601, allocations: 0.8614 MB / 413.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4601, allocations: 0 / 413.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.4601, allocations: 1.969 kB / 413.2 MB, free: 15.93 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000425/0.4605, allocations: 334.1 kB / 413.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.4606, allocations: 12.03 kB / 413.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.864e-05/0.4607, allocations: 4.875 kB / 413.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.461, allocations: 178.6 kB / 413.7 MB, free: 15.34 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.4612, allocations: 41.58 kB / 413.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.4612, allocations: 7.938 kB / 413.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.4617, allocations: 117.6 kB / 413.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4617, allocations: 0 / 413.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.4618, allocations: 8 kB / 413.9 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.4618, allocations: 0 / 413.9 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.068e-05/0.4619, allocations: 19.5 kB / 413.9 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002076/0.4621, allocations: 157.3 kB / 414 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.4624, allocations: 143 kB / 414.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.748e-05/0.4625, allocations: 28.56 kB / 414.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.4625, allocations: 4 kB / 414.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.4625, allocations: 38.59 kB / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 2.279e-06/0.4625, allocations: 0 / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001819/0.4627, allocations: 57.27 kB / 414.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.4628, allocations: 59.33 kB / 414.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.357e-05/0.4629, allocations: 96.62 kB / 414.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.4e-05/0.4629, allocations: 29.58 kB / 414.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.463, allocations: 84.14 kB / 414.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.463, allocations: 7.906 kB / 414.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-06/0.4631, allocations: 3.812 kB / 414.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4632, allocations: 318.8 kB / 414.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.386e-05/0.4633, allocations: 11.88 kB / 414.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.75e-05/0.4633, allocations: 32.17 kB / 414.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.9e-05/0.4634, allocations: 19.86 kB / 415 MB, free: 14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4634, allocations: 0 / 415 MB, free: 14 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001397/0.4635, allocations: 65.5 kB / 415 MB, free: 13.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4636, allocations: 7.953 kB / 415 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.903e-06/0.4636, allocations: 0 / 415 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.4636, allocations: 4 kB / 415 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.4637, allocations: 12.09 kB / 415 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.101e-06/0.4637, allocations: 0 / 415 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.481e-05/0.4637, allocations: 15.59 kB / 415.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-06/0.4637, allocations: 0 / 415.1 MB, free: 13.9 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.355e-05/0.4639, allocations: 116.6 kB / 415.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.464, allocations: 64.69 kB / 415.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.464, allocations: 8.047 kB / 415.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-06/0.464, allocations: 0 / 415.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.4641, allocations: 7.984 kB / 415.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4641, allocations: 4 kB / 415.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.4642, allocations: 161.2 kB / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4642, allocations: 0 / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.801e-06/0.4643, allocations: 256 / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.911e-06/0.4643, allocations: 0 / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.4643, allocations: 4 kB / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.529e-06/0.4643, allocations: 7.953 kB / 415.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4643, allocations: 0 / 415.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/0.4645, allocations: 84.75 kB / 415.5 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.4646, allocations: 89 kB / 415.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.4646, allocations: 3.75 kB / 415.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.624e-05/0.4647, allocations: 4 kB / 415.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.677e-06/0.4647, allocations: 3.953 kB / 415.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.4647, allocations: 0 / 415.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.005e-05/0.4648, allocations: 86.91 kB / 415.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.23e-07/0.4648, allocations: 3.938 kB / 415.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000282/0.4651, allocations: 4 kB / 415.7 MB, free: 13.2 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001306/0.4653, allocations: 111.1 kB / 415.8 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.4654, allocations: 27.69 kB / 415.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.046e-06/0.4654, allocations: 0 / 415.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.422e-06/0.4654, allocations: 3.938 kB / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/0.4662, allocations: 0.7066 MB / 416.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.4665, allocations: 89.44 kB / 416.6 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.4669, allocations: 0.6926 MB / 417.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.743e-05/0.4669, allocations: 192 / 417.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.4669, allocations: 11.44 kB / 417.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.506e-06/0.4669, allocations: 0 / 417.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of Templates: time 0.00327/0.4702, allocations: 0.611 MB / 417.9 MB, free: 10.9 MB / 346.7 MB