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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadModel(Modelica_Synchronous): time 2.524/2.524, allocations: 218.4 MB / 234.2 MB, free: 348 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.316e-05/3.326e-05, allocations: 8.359 kB / 287.6 MB, free: 8.445 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 50.38 MB / 338 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002167/0.1097, allocations: 1.148 MB / 339.1 MB, free: 9.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002371/0.11, allocations: 31.91 kB / 339.2 MB, free: 9.391 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.591e-05/0.11, allocations: 3.938 kB / 339.2 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.916e-05/0.1101, allocations: 3.938 kB / 339.2 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.255e-05/0.1101, allocations: 11.98 kB / 339.2 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.1104, allocations: 15.98 kB / 339.2 MB, free: 9.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.491e-05/0.1105, allocations: 23.97 kB / 339.2 MB, free: 9.332 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.18e-05/0.1106, allocations: 11.97 kB / 339.2 MB, free: 9.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.97e-05/0.1107, allocations: 11.94 kB / 339.2 MB, free: 9.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.237e-05/0.1108, allocations: 11.98 kB / 339.2 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.1108, allocations: 0 / 339.2 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.1108, allocations: 4 kB / 339.2 MB, free: 9.293 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.1109, allocations: 15.91 kB / 339.3 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.515e-05/0.1109, allocations: 4 kB / 339.3 MB, free: 9.273 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.383e-05/0.111, allocations: 19.97 kB / 339.3 MB, free: 9.254 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.111, allocations: 4 kB / 339.3 MB, free: 9.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.111, allocations: 0 / 339.3 MB, free: 9.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.111, allocations: 0 / 339.3 MB, free: 9.25 MB / 282.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.0005406/0.1116, allocations: 343.8 kB / 339.6 MB, free: 8.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1116, allocations: 8.031 kB / 339.6 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.1117, allocations: 4 kB / 339.6 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.1119, allocations: 171 kB / 339.8 MB, free: 8.648 MB / 282.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.0001536/0.1121, allocations: 45.64 kB / 339.9 MB, free: 8.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.1122, allocations: 8 kB / 339.9 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.1126, allocations: 123.2 kB / 340 MB, free: 8.457 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1126, allocations: 0 / 340 MB, free: 8.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1126, allocations: 4 kB / 340 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1127, allocations: 0 / 340 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.019e-05/0.1128, allocations: 15.98 kB / 340 MB, free: 8.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001996/0.113, allocations: 165.6 kB / 340.2 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.1133, allocations: 143.7 kB / 340.3 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1133, allocations: 3.953 kB / 340.3 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.1134, allocations: 30.56 kB / 340.3 MB, free: 8.016 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 2.705e-06/0.1134, allocations: 0 / 340.3 MB, free: 8.016 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003474/0.1137, allocations: 159 kB / 340.5 MB, free: 7.836 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.1138, allocations: 67.41 kB / 340.6 MB, free: 7.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.1139, allocations: 104.9 kB / 340.7 MB, free: 7.648 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.114, allocations: 25.7 kB / 340.7 MB, free: 7.617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.903e-05/0.1141, allocations: 154.6 kB / 340.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.1141, allocations: 4 kB / 340.8 MB, free: 7.461 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.1141, allocations: 0 / 340.8 MB, free: 7.461 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1143, allocations: 310.8 kB / 341.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.1143, allocations: 11.94 kB / 341.2 MB, free: 7.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.629e-05/0.1144, allocations: 44.28 kB / 341.2 MB, free: 7.078 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.631e-05/0.1144, allocations: 15.94 kB / 341.2 MB, free: 7.062 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1144, allocations: 0 / 341.2 MB, free: 7.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001586/0.1146, allocations: 65.78 kB / 341.3 MB, free: 6.992 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.1146, allocations: 11.95 kB / 341.3 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1147, allocations: 4 kB / 341.3 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.1147, allocations: 0 / 341.3 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.559e-05/0.1148, allocations: 11.92 kB / 341.3 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.1148, allocations: 4 kB / 341.3 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.1148, allocations: 0 / 341.3 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1149, allocations: 4 kB / 341.3 MB, free: 6.957 MB / 282.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 0.0001091/0.115, allocations: 113.8 kB / 341.4 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.1151, allocations: 69.53 kB / 341.5 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.1152, allocations: 11.92 kB / 341.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1152, allocations: 0 / 341.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1152, allocations: 0 / 341.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1152, allocations: 0 / 341.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.1154, allocations: 161.7 kB / 341.7 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1154, allocations: 0 / 341.7 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.606e-05/0.1154, allocations: 4 kB / 341.7 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1154, allocations: 0 / 341.7 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1155, allocations: 3.984 kB / 341.7 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1155, allocations: 3.953 kB / 341.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1155, allocations: 4 kB / 341.7 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.1157, allocations: 93.11 kB / 341.8 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.1157, allocations: 77.11 kB / 341.8 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.1158, allocations: 4.25 kB / 341.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/0.1159, allocations: 11.98 kB / 341.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-06/0.1159, allocations: 3.953 kB / 341.9 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1159, allocations: 11.88 kB / 341.9 MB, free: 6.293 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.72e-05/0.116, allocations: 83.28 kB / 342 MB, free: 6.211 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.116, allocations: 7.938 kB / 342 MB, free: 6.203 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000276/0.1163, allocations: 4 kB / 342 MB, free: 6.199 MB / 282.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.0001361/0.1164, allocations: 103.2 kB / 342.1 MB, free: 6.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000167/0.1166, allocations: 31.94 kB / 342.1 MB, free: 6.055 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1166, allocations: 0 / 342.1 MB, free: 6.055 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.1166, allocations: 4 kB / 342.1 MB, free: 6.051 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008586/0.1175, allocations: 0.7184 MB / 342.8 MB, free: 5.309 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.1179, allocations: 158.3 kB / 343 MB, free: 5.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1182, allocations: 0.6848 MB / 343.7 MB, free: 4.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.1183, allocations: 11.44 kB / 343.7 MB, free: 4.398 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1183, allocations: 64 / 343.7 MB, free: 4.398 MB / 282.7 MB Notification: Performance of Templates: time 0.002836/0.1211, allocations: 0.7478 MB / 344.4 MB, free: 3.652 MB / 282.7 MB