Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.028/2.028, allocations: 203.4 MB / 215.5 MB, free: 13 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 4.36e-05/4.369e-05, allocations: 4 kB / 264.8 MB, free: 10.46 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1252, allocations: 46.19 MB / 310.9 MB, free: 12.18 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4358/0.5611, allocations: 72.03 MB / 383 MB, free: 12.18 MB / 314.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001504/0.5613, allocations: 51.72 kB / 383 MB, free: 12.18 MB / 314.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01038/0.5717, allocations: 2.64 MB / 385.7 MB, free: 11.72 MB / 314.8 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5717, allocations: 0 / 385.7 MB, free: 11.72 MB / 314.8 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.5717, allocations: 10.33 kB / 385.7 MB, free: 11.71 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006504/0.5724, allocations: 423.9 kB / 386.1 MB, free: 11.33 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.5725, allocations: 9.688 kB / 386.1 MB, free: 11.33 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.732e-05/0.5725, allocations: 52.44 kB / 386.1 MB, free: 11.29 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.5726, allocations: 22.8 kB / 386.2 MB, free: 11.28 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.5727, allocations: 182.6 kB / 386.3 MB, free: 11.07 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.5728, allocations: 11.78 kB / 386.4 MB, free: 11.07 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.5729, allocations: 27.84 kB / 386.4 MB, free: 11.06 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004026/0.5733, allocations: 160.9 kB / 386.5 MB, free: 11.03 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.5733, allocations: 5.266 kB / 386.5 MB, free: 11.02 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.5733, allocations: 4.562 kB / 386.6 MB, free: 11.02 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5734, allocations: 9.375 kB / 386.6 MB, free: 11.02 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.5737, allocations: 102 kB / 386.7 MB, free: 11.01 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.5751, allocations: 0.7172 MB / 387.4 MB, free: 10.61 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.5755, allocations: 232 kB / 387.6 MB, free: 10.48 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.5758, allocations: 87.78 kB / 387.7 MB, free: 10.47 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.5758, allocations: 3.844 kB / 387.7 MB, free: 10.47 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.576, allocations: 95.42 kB / 387.8 MB, free: 10.41 MB / 314.8 MB Notification: Performance of pre-optimization done (n=16): time 3.176e-06/0.5761, allocations: 3.844 kB / 387.8 MB, free: 10.41 MB / 314.8 MB Notification: Performance of matching and sorting (n=18): time 0.0009712/0.577, allocations: 473.5 kB / 388.3 MB, free: 10.12 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.5771, allocations: 51.41 kB / 388.3 MB, free: 10.06 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.675e-05/0.5772, allocations: 117.7 kB / 388.4 MB, free: 9.965 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.5772, allocations: 35.48 kB / 388.5 MB, free: 9.93 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.629e-05/0.5773, allocations: 132.5 kB / 388.6 MB, free: 9.816 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.622e-05/0.5774, allocations: 71.11 kB / 388.7 MB, free: 9.773 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.304e-05/0.5774, allocations: 3.625 kB / 388.7 MB, free: 9.773 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 6.478e-05/0.5775, allocations: 331.5 kB / 389 MB, free: 9.457 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.5776, allocations: 41.38 kB / 389 MB, free: 9.457 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.5777, allocations: 97.98 kB / 389.1 MB, free: 9.395 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.5779, allocations: 64.47 kB / 389.2 MB, free: 9.387 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5779, allocations: 0 / 389.2 MB, free: 9.387 MB / 314.8 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003741/0.5783, allocations: 201.2 kB / 389.4 MB, free: 9.336 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.5783, allocations: 11.94 kB / 389.4 MB, free: 9.332 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.5783, allocations: 0 / 389.4 MB, free: 9.332 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.5784, allocations: 5.766 kB / 389.4 MB, free: 9.332 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.5787, allocations: 48.36 kB / 389.4 MB, free: 9.328 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.5788, allocations: 3.875 kB / 389.4 MB, free: 9.328 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.5789, allocations: 7.312 kB / 389.5 MB, free: 9.328 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.5789, allocations: 11.62 kB / 389.5 MB, free: 9.328 MB / 314.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.sampleHold.w,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 8.422e-05/0.579, allocations: 112.5 kB / 389.6 MB, free: 9.219 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.579, allocations: 13.7 kB / 389.6 MB, free: 9.211 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.663e-05/0.5791, allocations: 19.5 kB / 389.6 MB, free: 9.199 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5791, allocations: 7.859 kB / 389.6 MB, free: 9.195 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.5791, allocations: 0 / 389.6 MB, free: 9.195 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5792, allocations: 1.969 kB / 389.6 MB, free: 9.195 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008896/0.5801, allocations: 0.5083 MB / 390.1 MB, free: 8.887 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5801, allocations: 2.156 kB / 390.1 MB, free: 8.887 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.5804, allocations: 43.17 kB / 390.2 MB, free: 8.879 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5805, allocations: 3.906 kB / 390.2 MB, free: 8.879 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.5805, allocations: 0 / 390.2 MB, free: 8.879 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.5805, allocations: 0 / 390.2 MB, free: 8.879 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5805, allocations: 3.875 kB / 390.2 MB, free: 8.879 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.581, allocations: 287.8 kB / 390.5 MB, free: 8.738 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004064/0.5814, allocations: 92.8 kB / 390.5 MB, free: 24.63 MB / 330.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.5814, allocations: 3.625 kB / 390.5 MB, free: 24.63 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.5816, allocations: 13.89 kB / 390.6 MB, free: 24.63 MB / 330.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.5816, allocations: 6.234 kB / 390.6 MB, free: 24.63 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.5817, allocations: 11.41 kB / 390.6 MB, free: 24.62 MB / 330.8 MB Notification: Performance of sorting global known variables: time 8.404e-05/0.5818, allocations: 100.6 kB / 390.7 MB, free: 24.54 MB / 330.8 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5818, allocations: 0 / 390.7 MB, free: 24.54 MB / 330.8 MB Notification: Performance of remove unused functions: time 0.0004266/0.5822, allocations: 38.09 kB / 390.7 MB, free: 24.54 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,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000804/0.583, allocations: 0.8374 MB / 391.6 MB, free: 23.87 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.5833, allocations: 123 kB / 391.7 MB, free: 23.86 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5834, allocations: 0 / 391.7 MB, free: 23.86 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.5835, allocations: 56.94 kB / 391.7 MB, free: 23.86 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.5837, allocations: 10.62 kB / 391.7 MB, free: 23.86 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.5852, allocations: 0.533 MB / 392.3 MB, free: 23.51 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.5856, allocations: 0.7262 MB / 393 MB, free: 22.82 MB / 330.8 MB Notification: Performance of simCode: alias equations: time 7.945e-05/0.5857, allocations: 16.66 kB / 393 MB, free: 22.81 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.414e-05/0.5858, allocations: 47.09 kB / 393.1 MB, free: 22.8 MB / 330.8 MB Notification: Performance of SimCode: time 1.072e-06/0.5858, allocations: 0 / 393.1 MB, free: 22.8 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06713/0.6529, allocations: 2.487 MB / 395.5 MB, free: 22.48 MB / 330.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.6532, allocations: 186.6 kB / 395.7 MB, free: 22.25 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.097, allocations: 0 / 395.7 MB, free: 22.25 MB / 330.8 MB