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_LinearSystems2): time 2.454/2.454, allocations: 251.5 MB / 266 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.0978/0.0978, allocations: 12.59 MB / 336.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.285e-05/5.299e-05, allocations: 11.94 kB / 399.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3798, allocations: 59.43 MB / 459.2 MB, free: 28.62 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001606/0.3815, allocations: 1.153 MB / 460.3 MB, free: 27.46 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000214/0.3817, allocations: 31.91 kB / 460.4 MB, free: 27.43 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.403e-05/0.3818, allocations: 0 / 460.4 MB, free: 27.43 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.325e-05/0.3819, allocations: 3.938 kB / 460.4 MB, free: 27.42 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.391e-05/0.3819, allocations: 7.984 kB / 460.4 MB, free: 27.41 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.3822, allocations: 31.95 kB / 460.4 MB, free: 27.38 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.906e-05/0.3823, allocations: 15.98 kB / 460.4 MB, free: 27.37 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.388e-05/0.3824, allocations: 8 kB / 460.4 MB, free: 27.36 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.29e-05/0.3824, allocations: 15.92 kB / 460.5 MB, free: 27.34 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.499e-05/0.3825, allocations: 19.91 kB / 460.5 MB, free: 27.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.693e-05/0.3825, allocations: 4 kB / 460.5 MB, free: 27.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.3825, allocations: 0 / 460.5 MB, free: 27.32 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.774e-05/0.3826, allocations: 11.94 kB / 460.5 MB, free: 27.31 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.3826, allocations: 0 / 460.5 MB, free: 27.31 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.852e-05/0.3827, allocations: 26.62 kB / 460.5 MB, free: 27.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.3827, allocations: 0 / 460.5 MB, free: 27.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3827, allocations: 0 / 460.5 MB, free: 27.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3827, allocations: 0 / 460.5 MB, free: 27.29 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.0003882/0.3831, allocations: 339.3 kB / 460.9 MB, free: 26.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3832, allocations: 12.03 kB / 460.9 MB, free: 26.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.3832, allocations: 0 / 460.9 MB, free: 26.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.3834, allocations: 179 kB / 461 MB, free: 26.68 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.3835, allocations: 37.69 kB / 461.1 MB, free: 26.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.3835, allocations: 7.938 kB / 461.1 MB, free: 26.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.3839, allocations: 123.3 kB / 461.2 MB, free: 26.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3839, allocations: 0 / 461.2 MB, free: 26.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.3839, allocations: 3.984 kB / 461.2 MB, free: 26.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.384, allocations: 0 / 461.2 MB, free: 26.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.464e-05/0.3841, allocations: 19.88 kB / 461.2 MB, free: 26.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.3842, allocations: 177.5 kB / 461.4 MB, free: 26.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.3845, allocations: 139.8 kB / 461.5 MB, free: 26.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.3846, allocations: 0 / 461.5 MB, free: 26.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.3846, allocations: 34.56 kB / 461.6 MB, free: 26.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 2.074e-06/0.3846, allocations: 0 / 461.6 MB, free: 26.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003314/0.385, allocations: 150.8 kB / 461.7 MB, free: 25.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.385, allocations: 63.34 kB / 461.8 MB, free: 25.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.82e-05/0.3851, allocations: 96.98 kB / 461.9 MB, free: 25.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.3851, allocations: 29.7 kB / 461.9 MB, free: 25.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.592e-05/0.3852, allocations: 84.14 kB / 462 MB, free: 25.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.3852, allocations: 7.906 kB / 462 MB, free: 25.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.3852, allocations: 0 / 462 MB, free: 25.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.952e-05/0.3853, allocations: 322.8 kB / 462.3 MB, free: 25.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.215e-05/0.3853, allocations: 8 kB / 462.3 MB, free: 25.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.927e-05/0.3853, allocations: 40.28 kB / 462.4 MB, free: 25.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.906e-05/0.3854, allocations: 19.94 kB / 462.4 MB, free: 25.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3854, allocations: 4 kB / 462.4 MB, free: 25.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001306/0.3855, allocations: 65.62 kB / 462.4 MB, free: 25.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3856, allocations: 4 kB / 462.4 MB, free: 25.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3856, allocations: 0 / 462.4 MB, free: 25.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3856, allocations: 4.156 kB / 462.5 MB, free: 25.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.207e-05/0.3857, allocations: 11.94 kB / 462.5 MB, free: 25.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3857, allocations: 0 / 462.5 MB, free: 25.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.65e-05/0.3857, allocations: 7.906 kB / 462.5 MB, free: 25.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.3858, allocations: 11.98 kB / 462.5 MB, free: 25.05 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 7.082e-05/0.3858, allocations: 121.8 kB / 462.6 MB, free: 24.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.386, allocations: 58.06 kB / 462.7 MB, free: 24.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.386, allocations: 11.97 kB / 462.7 MB, free: 24.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.386, allocations: 0 / 462.7 MB, free: 24.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3861, allocations: 7.938 kB / 462.7 MB, free: 24.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3861, allocations: 4 kB / 462.7 MB, free: 24.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.975e-05/0.3862, allocations: 161.6 kB / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3862, allocations: 0 / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.596e-06/0.3862, allocations: 0 / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3862, allocations: 0 / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.3862, allocations: 4 kB / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3862, allocations: 0 / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3862, allocations: 0 / 462.8 MB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.3864, allocations: 93.02 kB / 462.9 MB, free: 24.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.824e-05/0.3864, allocations: 89.06 kB / 463 MB, free: 24.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.3865, allocations: 0 / 463 MB, free: 24.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.905e-05/0.3866, allocations: 7.938 kB / 463 MB, free: 24.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-06/0.3866, allocations: 0 / 463 MB, free: 24.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3866, allocations: 3.984 kB / 463 MB, free: 24.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.484e-05/0.3866, allocations: 87.28 kB / 463.1 MB, free: 24.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3866, allocations: 0 / 463.1 MB, free: 24.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.3869, allocations: 8 kB / 463.1 MB, free: 24.3 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 8.764e-05/0.387, allocations: 103.2 kB / 463.2 MB, free: 24.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.3871, allocations: 35.92 kB / 463.3 MB, free: 24.15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3871, allocations: 0 / 463.3 MB, free: 24.15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.41e-07/0.3872, allocations: 0 / 463.3 MB, free: 24.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.3878, allocations: 0.718 MB / 464 MB, free: 23.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002965/0.3881, allocations: 129.3 kB / 464.1 MB, free: 23.26 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.3882, allocations: 0.6952 MB / 464.8 MB, free: 22.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.677e-05/0.3883, allocations: 4.172 kB / 464.8 MB, free: 22.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.15e-05/0.3883, allocations: 11.44 kB / 464.8 MB, free: 22.52 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3883, allocations: 0 / 464.8 MB, free: 22.52 MB / 346.7 MB Notification: Performance of Templates: time 0.003339/0.3916, allocations: 0.6266 MB / 465.4 MB, free: 21.9 MB / 346.7 MB