Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.702e-05, allocations: 4 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.08971, allocations: 50.41 MB / 342.6 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3491/0.4388, allocations: 76.4 MB / 419 MB, free: 1.715 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.4391, allocations: 74.7 kB / 419 MB, free: 1.672 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00307/0.4422, allocations: 0.8759 MB / 419.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.145e-06/0.4422, allocations: 0 / 419.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.4422, allocations: 4 kB / 419.9 MB, free: 0.8828 MB / 330.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.0003797/0.4426, allocations: 326.1 kB / 420.2 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4427, allocations: 8.031 kB / 420.2 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.4427, allocations: 12.55 kB / 420.2 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.443, allocations: 174.9 kB / 420.4 MB, free: 304 kB / 330.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.0001259/0.4431, allocations: 41.69 kB / 420.5 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.4431, allocations: 3.938 kB / 420.5 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.4435, allocations: 126.1 kB / 420.6 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.54e-06/0.4435, allocations: 0 / 420.6 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.4435, allocations: 0 / 420.6 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.4435, allocations: 11.89 kB / 420.6 MB, free: 128 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.227e-05/0.4436, allocations: 15.86 kB / 420.6 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001912/0.4438, allocations: 165.3 kB / 420.8 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.444, allocations: 131.4 kB / 420.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/0.4441, allocations: 24.7 kB / 420.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.232e-06/0.4442, allocations: 0 / 420.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.4442, allocations: 38.38 kB / 421 MB, free: 15.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 2.254e-06/0.4442, allocations: 3.938 kB / 421 MB, free: 15.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001813/0.4444, allocations: 65.28 kB / 421 MB, free: 15.63 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.4445, allocations: 59.28 kB / 421.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.417e-05/0.4446, allocations: 100.8 kB / 421.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.4446, allocations: 25.7 kB / 421.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.4447, allocations: 150.6 kB / 421.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.4447, allocations: 11.86 kB / 421.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.4448, allocations: 0 / 421.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4449, allocations: 310.8 kB / 421.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.135e-05/0.445, allocations: 11.5 kB / 421.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.267e-05/0.445, allocations: 34.92 kB / 421.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.009e-05/0.4451, allocations: 19.3 kB / 421.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.607e-06/0.4451, allocations: 4 kB / 421.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001402/0.4452, allocations: 68.03 kB / 421.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.4453, allocations: 4 kB / 421.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.4453, allocations: 4 kB / 421.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.4453, allocations: 0 / 421.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.966e-05/0.4454, allocations: 4 kB / 421.8 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.574e-06/0.4454, allocations: 4 kB / 421.8 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.091e-05/0.4454, allocations: 3.938 kB / 421.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.4455, allocations: 12.05 kB / 421.8 MB, free: 14.79 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.42e-05/0.4456, allocations: 118.5 kB / 422 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.4457, allocations: 53.56 kB / 422 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.275e-05/0.4457, allocations: 8.094 kB / 422 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4458, allocations: 0 / 422 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.65e-06/0.4458, allocations: 0 / 422 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.051e-06/0.4458, allocations: 4.078 kB / 422 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.4459, allocations: 164.5 kB / 422.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.147e-06/0.446, allocations: 4.234 kB / 422.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.106e-05/0.446, allocations: 4 kB / 422.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.112e-06/0.446, allocations: 8 kB / 422.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.51e-06/0.446, allocations: 0 / 422.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.126e-06/0.446, allocations: 0 / 422.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.501e-06/0.446, allocations: 3.938 kB / 422.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.4462, allocations: 92.73 kB / 422.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.4463, allocations: 77.11 kB / 422.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.4463, allocations: 7.547 kB / 422.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.229e-05/0.4464, allocations: 4 kB / 422.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.304e-06/0.4464, allocations: 4 kB / 422.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.4464, allocations: 4 kB / 422.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.856e-05/0.4465, allocations: 82.16 kB / 422.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.88e-07/0.4465, allocations: 0 / 422.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002643/0.4468, allocations: 15.38 kB / 422.5 MB, free: 14.1 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.0001299/0.4469, allocations: 103.2 kB / 422.6 MB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.4471, allocations: 30.25 kB / 422.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.81e-06/0.4471, allocations: 4.062 kB / 422.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.865e-06/0.4472, allocations: 0 / 422.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009727/0.4481, allocations: 0.7153 MB / 423.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.4484, allocations: 108.8 kB / 423.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.4488, allocations: 0.6848 MB / 424.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.4488, allocations: 15.5 kB / 424.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/0.4488, allocations: 0 / 424.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of Templates: time 0.002395/0.4513, allocations: 0.7355 MB / 424.9 MB, free: 11.65 MB / 346.7 MB