Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.004/2.004, allocations: 203.4 MB / 215.5 MB, free: 13.01 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 5.83e-05/5.863e-05, allocations: 5.406 kB / 264.8 MB, free: 10.46 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 46.18 MB / 310.9 MB, free: 12.2 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5333, allocations: 72.54 MB / 383.5 MB, free: 12.21 MB / 314.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001623/0.5335, allocations: 51.67 kB / 383.5 MB, free: 12.21 MB / 314.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.5446, allocations: 2.847 MB / 386.4 MB, free: 11.73 MB / 314.8 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5446, allocations: 0 / 386.4 MB, free: 11.73 MB / 314.8 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.5446, allocations: 3.875 kB / 386.4 MB, free: 11.73 MB / 314.8 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.0007219/0.5454, allocations: 447.2 kB / 386.8 MB, free: 11.34 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.5454, allocations: 11.56 kB / 386.8 MB, free: 11.34 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.068e-05/0.5455, allocations: 61.02 kB / 386.9 MB, free: 11.3 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.5456, allocations: 23.33 kB / 386.9 MB, free: 11.29 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.5458, allocations: 178.7 kB / 387.1 MB, free: 11.08 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.5458, allocations: 18.2 kB / 387.1 MB, free: 11.08 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.804e-05/0.5459, allocations: 21.72 kB / 387.1 MB, free: 11.08 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004324/0.5463, allocations: 182.8 kB / 387.3 MB, free: 11.04 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.5464, allocations: 0 / 387.3 MB, free: 11.04 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.5464, allocations: 14.7 kB / 387.3 MB, free: 11.03 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.5464, allocations: 3.844 kB / 387.3 MB, free: 11.03 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.5467, allocations: 117.2 kB / 387.4 MB, free: 11.02 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.5483, allocations: 0.7324 MB / 388.2 MB, free: 10.65 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005274/0.5489, allocations: 263.6 kB / 388.4 MB, free: 10.52 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003029/0.5492, allocations: 102.8 kB / 388.5 MB, free: 10.52 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.5492, allocations: 3.875 kB / 388.5 MB, free: 10.52 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.5495, allocations: 119.8 kB / 388.6 MB, free: 10.46 MB / 314.8 MB Notification: Performance of pre-optimization done (n=21): time 3.808e-06/0.5495, allocations: 7.938 kB / 388.7 MB, free: 10.45 MB / 314.8 MB Notification: Performance of matching and sorting (n=24): time 0.001368/0.5509, allocations: 0.5807 MB / 389.2 MB, free: 10.17 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.551, allocations: 63.05 kB / 389.3 MB, free: 10.1 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.5511, allocations: 123.4 kB / 389.4 MB, free: 10 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.5512, allocations: 31.02 kB / 389.4 MB, free: 9.973 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.981e-05/0.5513, allocations: 133.9 kB / 389.6 MB, free: 9.859 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.364e-05/0.5513, allocations: 85.27 kB / 389.7 MB, free: 9.812 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/0.5514, allocations: 8.75 kB / 389.7 MB, free: 9.809 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.5515, allocations: 330 kB / 390 MB, free: 9.492 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.5516, allocations: 56.66 kB / 390 MB, free: 9.492 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.5518, allocations: 119.8 kB / 390.2 MB, free: 9.418 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.5521, allocations: 79.47 kB / 390.2 MB, free: 9.41 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5521, allocations: 0 / 390.2 MB, free: 9.41 MB / 314.8 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005335/0.5526, allocations: 246.2 kB / 390.5 MB, free: 9.352 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.5527, allocations: 11.03 kB / 390.5 MB, free: 9.352 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.5527, allocations: 3.875 kB / 390.5 MB, free: 9.352 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.5527, allocations: 3.875 kB / 390.5 MB, free: 9.352 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.5531, allocations: 57.06 kB / 390.6 MB, free: 9.348 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.5532, allocations: 3.75 kB / 390.6 MB, free: 9.348 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.5533, allocations: 13.5 kB / 390.6 MB, free: 9.348 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.5534, allocations: 7.625 kB / 390.6 MB, free: 9.348 MB / 314.8 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.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: 10 ($PRE.intervalMeasure.last_time,intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,$whenCondition2,$whenCondition1,$PRE.intervalMeasure.next_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.prev_phi) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0001792/0.5536, allocations: 143.4 kB / 390.7 MB, free: 9.219 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.5536, allocations: 15.41 kB / 390.7 MB, free: 9.211 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.5537, allocations: 18.12 kB / 390.8 MB, free: 9.203 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.5537, allocations: 3.781 kB / 390.8 MB, free: 9.203 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.5537, allocations: 0 / 390.8 MB, free: 9.203 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.5538, allocations: 0 / 390.8 MB, free: 9.203 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.5549, allocations: 0.6138 MB / 391.4 MB, free: 8.875 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.555, allocations: 5.5 kB / 391.4 MB, free: 8.875 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.5553, allocations: 41.94 kB / 391.4 MB, free: 8.871 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/0.5554, allocations: 3.875 kB / 391.4 MB, free: 8.871 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.5554, allocations: 2.016 kB / 391.4 MB, free: 8.871 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.5554, allocations: 15.89 kB / 391.4 MB, free: 8.859 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5554, allocations: 0 / 391.4 MB, free: 8.859 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.556, allocations: 404.9 kB / 391.8 MB, free: 8.664 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.5561, allocations: 95.52 kB / 391.9 MB, free: 8.559 MB / 314.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.5562, allocations: 11.41 kB / 391.9 MB, free: 8.555 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.5564, allocations: 7.406 kB / 391.9 MB, free: 8.555 MB / 314.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.5564, allocations: 17.66 kB / 392 MB, free: 8.555 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.5565, allocations: 9.5 kB / 392 MB, free: 8.551 MB / 314.8 MB Notification: Performance of sorting global known variables: time 0.0004121/0.5569, allocations: 100.1 kB / 392.1 MB, free: 24.48 MB / 330.8 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5569, allocations: 0 / 392.1 MB, free: 24.48 MB / 330.8 MB Notification: Performance of remove unused functions: time 0.0004882/0.5574, allocations: 46.03 kB / 392.1 MB, free: 24.48 MB / 330.8 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: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time) * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0011/0.5585, allocations: 1.083 MB / 393.2 MB, free: 23.62 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0004309/0.559, allocations: 161.9 kB / 393.4 MB, free: 23.61 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.559, allocations: 4.125 kB / 393.4 MB, free: 23.61 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.5592, allocations: 91.62 kB / 393.4 MB, free: 23.6 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.5594, allocations: 11.66 kB / 393.5 MB, free: 23.6 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.5611, allocations: 0.5745 MB / 394 MB, free: 23.23 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.5615, allocations: 0.7355 MB / 394.8 MB, free: 22.54 MB / 330.8 MB Notification: Performance of simCode: alias equations: time 9.728e-05/0.5616, allocations: 19.66 kB / 394.8 MB, free: 22.54 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5617, allocations: 54.58 kB / 394.8 MB, free: 22.53 MB / 330.8 MB Notification: Performance of SimCode: time 1.353e-06/0.5618, allocations: 4 kB / 394.8 MB, free: 22.52 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.5901, allocations: 3.021 MB / 397.9 MB, free: 22.16 MB / 330.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002769/0.5905, allocations: 186.3 kB / 398 MB, free: 21.94 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.946, allocations: 0 / 398 MB, free: 21.94 MB / 330.8 MB