Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.135/2.135, allocations: 203.4 MB / 215.6 MB, free: 12.96 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.651e-05/4.648e-05, allocations: 8 kB / 264.8 MB, free: 10.42 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 46.19 MB / 310.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4189/0.5231, allocations: 72.61 MB / 383.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001608/0.5234, allocations: 48.23 kB / 383.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.011/0.5344, allocations: 2.908 MB / 386.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5344, allocations: 0 / 386.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.5345, allocations: 3.781 kB / 386.5 MB, free: 12.05 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.0006413/0.5351, allocations: 466.8 kB / 387 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.5352, allocations: 7.5 kB / 387 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.5353, allocations: 52.62 kB / 387 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.775e-05/0.5354, allocations: 27.23 kB / 387.1 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.5355, allocations: 189.5 kB / 387.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.5355, allocations: 15.5 kB / 387.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.5356, allocations: 18.19 kB / 387.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.536, allocations: 177.6 kB / 387.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.536, allocations: 4 kB / 387.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.5361, allocations: 7.688 kB / 387.5 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.5361, allocations: 3.812 kB / 387.5 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.5364, allocations: 110 kB / 387.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.538, allocations: 0.7297 MB / 388.3 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.5386, allocations: 236.2 kB / 388.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.5389, allocations: 119.9 kB / 388.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.539, allocations: 1.156 kB / 388.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.5393, allocations: 180 kB / 388.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 3.106e-06/0.5394, allocations: 0 / 388.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.001462/0.5408, allocations: 0.7357 MB / 389.6 MB, free: 10.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.5409, allocations: 142.1 kB / 389.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.541, allocations: 116.3 kB / 389.8 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.5411, allocations: 32.7 kB / 389.8 MB, free: 9.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.5412, allocations: 137.8 kB / 390 MB, free: 9.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.8e-05/0.5412, allocations: 84.98 kB / 390.1 MB, free: 9.816 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.593e-05/0.5413, allocations: 3.312 kB / 390.1 MB, free: 9.816 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.957e-05/0.5414, allocations: 331.3 kB / 390.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.5415, allocations: 63.2 kB / 390.4 MB, free: 9.492 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.5417, allocations: 123.3 kB / 390.6 MB, free: 9.422 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.5419, allocations: 105.6 kB / 390.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.5419, allocations: 0 / 390.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005216/0.5425, allocations: 281.4 kB / 390.9 MB, free: 9.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.5425, allocations: 38.55 kB / 391 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.5425, allocations: 3.875 kB / 391 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.5426, allocations: 5.844 kB / 391 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/0.543, allocations: 58.94 kB / 391.1 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.543, allocations: 7.656 kB / 391.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.5432, allocations: 12.64 kB / 391.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.5433, allocations: 11.56 kB / 391.1 MB, free: 9.254 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.0001879/0.5435, allocations: 161 kB / 391.2 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.5435, allocations: 27.09 kB / 391.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.551e-05/0.5436, allocations: 15.44 kB / 391.3 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.5436, allocations: 7.766 kB / 391.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.5436, allocations: 0 / 391.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5436, allocations: 2.625 kB / 391.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.5449, allocations: 0.6953 MB / 392 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.5449, allocations: 0 / 392 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.5453, allocations: 43.7 kB / 392 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.5453, allocations: 3.719 kB / 392 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.5454, allocations: 13.41 kB / 392 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5454, allocations: 0 / 392 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5454, allocations: 3.875 kB / 392 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007274/0.5461, allocations: 480.6 kB / 392.5 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.5465, allocations: 88.8 kB / 392.6 MB, free: 24.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/0.5466, allocations: 13.39 kB / 392.6 MB, free: 24.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.5468, allocations: 11.5 kB / 392.6 MB, free: 24.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.5469, allocations: 20.88 kB / 392.7 MB, free: 24.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.547, allocations: 7.75 kB / 392.7 MB, free: 24.37 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.904e-05/0.5471, allocations: 97.89 kB / 392.8 MB, free: 24.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5471, allocations: 0 / 392.8 MB, free: 24.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.5476, allocations: 52.69 kB / 392.8 MB, free: 24.29 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.001207/0.5488, allocations: 1.166 MB / 394 MB, free: 23.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005107/0.5494, allocations: 240.7 kB / 394.2 MB, free: 23.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.5494, allocations: 0.5 kB / 394.2 MB, free: 23.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.5496, allocations: 199.1 kB / 394.4 MB, free: 23.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.5499, allocations: 13.73 kB / 394.4 MB, free: 23.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.5517, allocations: 0.5821 MB / 395 MB, free: 22.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.5521, allocations: 0.742 MB / 395.7 MB, free: 22.19 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.409e-05/0.5522, allocations: 16.53 kB / 395.8 MB, free: 22.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.5524, allocations: 56.36 kB / 395.8 MB, free: 22.19 MB / 330.7 MB Notification: Performance of SimCode: time 2.004e-06/0.5524, allocations: 0 / 395.8 MB, free: 22.19 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.5805, allocations: 3.14 MB / 398.9 MB, free: 21.81 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/0.5809, allocations: 186.9 kB / 399.1 MB, free: 21.58 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.49/3.071, allocations: 0 / 399.1 MB, free: 21.58 MB / 330.7 MB