Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.248/2.248, allocations: 203.4 MB / 215.5 MB, free: 13.01 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.642e-05, allocations: 4 kB / 264.8 MB, free: 10.46 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1591, allocations: 46.19 MB / 310.9 MB, free: 12.19 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.5618, allocations: 71.88 MB / 382.8 MB, free: 12.22 MB / 314.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001706/0.562, allocations: 48.73 kB / 382.9 MB, free: 12.22 MB / 314.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.009252/0.5713, allocations: 2.432 MB / 385.3 MB, free: 11.77 MB / 314.8 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5713, allocations: 0 / 385.3 MB, free: 11.77 MB / 314.8 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.5713, allocations: 5.516 kB / 385.3 MB, free: 11.77 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005903/0.5719, allocations: 412.2 kB / 385.7 MB, free: 11.4 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.572, allocations: 8.906 kB / 385.7 MB, free: 11.4 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.962e-05/0.5721, allocations: 55.69 kB / 385.8 MB, free: 11.36 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.5722, allocations: 20.36 kB / 385.8 MB, free: 11.34 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.5723, allocations: 179.7 kB / 386 MB, free: 11.13 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.5723, allocations: 10.5 kB / 386 MB, free: 11.13 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.5724, allocations: 18.22 kB / 386 MB, free: 11.13 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.5728, allocations: 151.1 kB / 386.1 MB, free: 11.1 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.5728, allocations: 3.984 kB / 386.1 MB, free: 11.09 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.5729, allocations: 5.469 kB / 386.1 MB, free: 11.09 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.5729, allocations: 5.344 kB / 386.2 MB, free: 11.09 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.5731, allocations: 97.14 kB / 386.2 MB, free: 11.09 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.5746, allocations: 0.6951 MB / 386.9 MB, free: 10.68 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.5751, allocations: 218.1 kB / 387.2 MB, free: 10.56 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.5754, allocations: 93.02 kB / 387.2 MB, free: 10.55 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.5754, allocations: 3.953 kB / 387.3 MB, free: 10.55 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.5755, allocations: 42.38 kB / 387.3 MB, free: 10.5 MB / 314.8 MB Notification: Performance of pre-optimization done (n=14): time 2.996e-06/0.5755, allocations: 0 / 387.3 MB, free: 10.5 MB / 314.8 MB Notification: Performance of matching and sorting (n=16): time 0.0008966/0.5764, allocations: 446.4 kB / 387.7 MB, free: 10.21 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.5764, allocations: 56.97 kB / 387.8 MB, free: 10.15 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.013e-05/0.5765, allocations: 110 kB / 387.9 MB, free: 10.06 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.5766, allocations: 25.7 kB / 387.9 MB, free: 10.03 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.855e-05/0.5766, allocations: 136.9 kB / 388.1 MB, free: 9.91 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.06e-05/0.5767, allocations: 64.58 kB / 388.1 MB, free: 9.875 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.5767, allocations: 0 / 388.1 MB, free: 9.875 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 6.361e-05/0.5768, allocations: 326.5 kB / 388.4 MB, free: 9.562 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.5769, allocations: 37.94 kB / 388.5 MB, free: 9.562 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.577, allocations: 87.36 kB / 388.6 MB, free: 9.508 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.5772, allocations: 59.73 kB / 388.6 MB, free: 9.5 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5772, allocations: 0 / 388.6 MB, free: 9.5 MB / 314.8 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003311/0.5775, allocations: 175 kB / 388.8 MB, free: 9.453 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.5776, allocations: 3.844 kB / 388.8 MB, free: 9.453 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.5776, allocations: 11.97 kB / 388.8 MB, free: 9.445 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.5776, allocations: 0 / 388.8 MB, free: 9.445 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.5779, allocations: 49.22 kB / 388.8 MB, free: 9.441 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.578, allocations: 3.875 kB / 388.9 MB, free: 9.441 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.5781, allocations: 3.188 kB / 388.9 MB, free: 9.441 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.5781, allocations: 11.73 kB / 388.9 MB, free: 9.438 MB / 314.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 7.49e-05/0.5782, allocations: 119.6 kB / 389 MB, free: 9.324 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.5783, allocations: 11.67 kB / 389 MB, free: 9.316 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.5783, allocations: 17.53 kB / 389 MB, free: 9.309 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.5784, allocations: 7.812 kB / 389 MB, free: 9.305 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.5784, allocations: 0 / 389 MB, free: 9.305 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5784, allocations: 0 / 389 MB, free: 9.305 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000824/0.5792, allocations: 495 kB / 389.5 MB, free: 8.996 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5792, allocations: 1.781 kB / 389.5 MB, free: 8.996 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.5796, allocations: 30.95 kB / 389.5 MB, free: 8.996 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.5796, allocations: 7.969 kB / 389.5 MB, free: 8.992 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.5796, allocations: 3.312 kB / 389.5 MB, free: 8.992 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5796, allocations: 3.938 kB / 389.5 MB, free: 8.988 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5797, allocations: 0 / 389.5 MB, free: 8.988 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.58, allocations: 271.2 kB / 389.8 MB, free: 8.852 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.5804, allocations: 81.02 kB / 389.9 MB, free: 24.75 MB / 330.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.5805, allocations: 6.047 kB / 389.9 MB, free: 24.75 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.5806, allocations: 7.438 kB / 389.9 MB, free: 24.75 MB / 330.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/0.5806, allocations: 9.844 kB / 389.9 MB, free: 24.75 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.5807, allocations: 9.453 kB / 389.9 MB, free: 24.75 MB / 330.8 MB Notification: Performance of sorting global known variables: time 6.588e-05/0.5807, allocations: 87.11 kB / 390 MB, free: 24.67 MB / 330.8 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5807, allocations: 3.938 kB / 390 MB, free: 24.67 MB / 330.8 MB Notification: Performance of remove unused functions: time 0.0003868/0.5811, allocations: 34.34 kB / 390 MB, free: 24.67 MB / 330.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0007432/0.5819, allocations: 0.8161 MB / 390.9 MB, free: 24 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.5822, allocations: 118.8 kB / 391 MB, free: 23.98 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5822, allocations: 0 / 391 MB, free: 23.98 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 9.934e-05/0.5823, allocations: 49.75 kB / 391 MB, free: 23.98 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.5826, allocations: 10.89 kB / 391 MB, free: 23.98 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.584, allocations: 0.5099 MB / 391.5 MB, free: 23.64 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.5844, allocations: 0.7249 MB / 392.3 MB, free: 22.95 MB / 330.8 MB Notification: Performance of simCode: alias equations: time 6.888e-05/0.5845, allocations: 8.094 kB / 392.3 MB, free: 22.95 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/0.5846, allocations: 45.31 kB / 392.3 MB, free: 22.93 MB / 330.8 MB Notification: Performance of SimCode: time 1.192e-06/0.5846, allocations: 0 / 392.3 MB, free: 22.93 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.6053, allocations: 2.273 MB / 394.6 MB, free: 22.64 MB / 330.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.6055, allocations: 165.9 kB / 394.8 MB, free: 22.42 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.398/3.003, allocations: 11.81 kB / 394.8 MB, free: 22.41 MB / 330.8 MB