Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadModel(ModelicaByExample): time 1.849/1.849, allocations: 203.4 MB / 215.5 MB, free: 12.97 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.755e-05/3.773e-05, allocations: 0 / 264.7 MB, free: 10.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08191, allocations: 46.18 MB / 310.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3873/0.4693, allocations: 72.62 MB / 383.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001113/0.4694, allocations: 51.66 kB / 383.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01014/0.4796, allocations: 2.896 MB / 386.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.361e-06/0.4796, allocations: 0 / 386.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.4797, allocations: 4.031 kB / 386.4 MB, free: 12.21 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005124/0.4802, allocations: 465.1 kB / 386.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.4802, allocations: 10.84 kB / 386.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.4803, allocations: 27.36 kB / 386.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4804, allocations: 174.8 kB / 387.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.4805, allocations: 23.59 kB / 387.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.4805, allocations: 22.47 kB / 387.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.4809, allocations: 172.1 kB / 387.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.4809, allocations: 0 / 387.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.481, allocations: 10.62 kB / 387.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.918e-06/0.481, allocations: 3.875 kB / 387.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.4813, allocations: 112.9 kB / 387.4 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.4825, allocations: 0.7297 MB / 388.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/0.4829, allocations: 235.2 kB / 388.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.4832, allocations: 123.2 kB / 388.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.4832, allocations: 0 / 388.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.4835, allocations: 179.8 kB / 388.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.781e-06/0.4835, allocations: 0 / 388.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.001213/0.4848, allocations: 0.7338 MB / 389.4 MB, free: 10.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.4848, allocations: 143.5 kB / 389.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.2e-05/0.4849, allocations: 122.8 kB / 389.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.485, allocations: 29.27 kB / 389.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/0.485, allocations: 137.8 kB / 389.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.164e-05/0.4851, allocations: 83.66 kB / 389.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.4851, allocations: 6.625 kB / 389.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.4852, allocations: 330.3 kB / 390.2 MB, free: 9.695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.4854, allocations: 64.64 kB / 390.3 MB, free: 9.691 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4855, allocations: 117.7 kB / 390.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.4857, allocations: 111.9 kB / 390.5 MB, free: 9.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.799e-06/0.4857, allocations: 0 / 390.5 MB, free: 9.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005027/0.4863, allocations: 287.1 kB / 390.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.4863, allocations: 33.27 kB / 390.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4863, allocations: 2.406 kB / 390.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4863, allocations: 2.219 kB / 390.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.4866, allocations: 63.09 kB / 390.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.4867, allocations: 2.5 kB / 390.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.4868, allocations: 13.14 kB / 390.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.4869, allocations: 13.62 kB / 390.9 MB, free: 9.453 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(fixed = false ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * 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.0001547/0.487, allocations: 166.7 kB / 391.1 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.4871, allocations: 16.66 kB / 391.1 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.4871, allocations: 15.95 kB / 391.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.928e-06/0.4871, allocations: 1.719 kB / 391.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.27e-06/0.4872, allocations: 2.094 kB / 391.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.801e-06/0.4872, allocations: 3.938 kB / 391.1 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.4883, allocations: 0.7014 MB / 391.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.367e-06/0.4883, allocations: 4 kB / 391.8 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002528/0.4886, allocations: 43.73 kB / 391.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.675e-06/0.4886, allocations: 3.719 kB / 391.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.4886, allocations: 11.42 kB / 391.9 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.4887, allocations: 1.594 kB / 391.9 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4887, allocations: 4.062 kB / 391.9 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.4893, allocations: 478.9 kB / 392.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4896, allocations: 88.83 kB / 392.5 MB, free: 24.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.188e-05/0.4897, allocations: 9.344 kB / 392.5 MB, free: 24.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.4899, allocations: 19.23 kB / 392.5 MB, free: 24.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.705e-05/0.49, allocations: 21.3 kB / 392.5 MB, free: 24.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.49, allocations: 3.875 kB / 392.5 MB, free: 24.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.747e-05/0.4901, allocations: 100.5 kB / 392.6 MB, free: 24.49 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.27e-07/0.4901, allocations: 0 / 392.6 MB, free: 24.49 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004409/0.4906, allocations: 59.16 kB / 392.7 MB, free: 24.49 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001831/0.4908, allocations: 119.6 kB / 392.8 MB, free: 24.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004226/0.4912, allocations: 243.2 kB / 393 MB, free: 24.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.984e-06/0.4912, allocations: 0 / 393 MB, free: 24.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.4914, allocations: 193.6 kB / 393.2 MB, free: 24.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.4917, allocations: 9.109 kB / 393.2 MB, free: 24.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.4928, allocations: 0.5186 MB / 393.7 MB, free: 23.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.4932, allocations: 0.7325 MB / 394.5 MB, free: 23.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.891e-05/0.4933, allocations: 25.86 kB / 394.5 MB, free: 23.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.4933, allocations: 15.28 kB / 394.5 MB, free: 23.23 MB / 330.7 MB Notification: Performance of SimCode: time 1.471e-06/0.4934, allocations: 0 / 394.5 MB, free: 23.23 MB / 330.7 MB Notification: Performance of Templates: time 0.005304/0.4987, allocations: 1.481 MB / 396 MB, free: 23.07 MB / 330.7 MB