Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.194/2.194, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.473e-05, allocations: 7.234 kB / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 50.41 MB / 342.6 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4508/0.5729, allocations: 78.84 MB / 421.5 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.5732, allocations: 70.47 kB / 421.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009844/0.5831, allocations: 2.319 MB / 423.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5832, allocations: 4 kB / 423.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.5832, allocations: 0 / 423.9 MB, free: 12.98 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007524/0.584, allocations: 417 kB / 424.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.584, allocations: 8.031 kB / 424.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.5841, allocations: 45.17 kB / 424.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.106e-05/0.5842, allocations: 11.91 kB / 424.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.5844, allocations: 205.9 kB / 424.5 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.5845, allocations: 11.44 kB / 424.5 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.5845, allocations: 14.31 kB / 424.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.5851, allocations: 224.7 kB / 424.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.5851, allocations: 7.859 kB / 424.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.5852, allocations: 2.312 kB / 424.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.5852, allocations: 4 kB / 424.8 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.5854, allocations: 58.81 kB / 424.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008609/0.5863, allocations: 0.5857 MB / 425.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003936/0.5867, allocations: 136.5 kB / 425.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.5869, allocations: 65.58 kB / 425.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.587, allocations: 7.125 kB / 425.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.587, allocations: 38.78 kB / 425.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.667e-06/0.587, allocations: 4 kB / 425.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003924/0.5874, allocations: 110.9 kB / 425.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.5876, allocations: 109.9 kB / 425.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.5877, allocations: 123 kB / 426 MB, free: 10.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.5877, allocations: 28.95 kB / 426 MB, free: 10.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.5878, allocations: 118.8 kB / 426.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.5879, allocations: 25.52 kB / 426.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.5879, allocations: 3.062 kB / 426.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.588, allocations: 330.2 kB / 426.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.819e-05/0.5881, allocations: 26.56 kB / 426.5 MB, free: 10.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.5883, allocations: 120.2 kB / 426.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.5885, allocations: 46.08 kB / 426.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5885, allocations: 0 / 426.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003762/0.5889, allocations: 160.4 kB / 426.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.5889, allocations: 4 kB / 426.9 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.5889, allocations: 4 kB / 426.9 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.589, allocations: 8 kB / 426.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.5893, allocations: 47.91 kB / 426.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.5893, allocations: 4 kB / 426.9 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.5895, allocations: 32.02 kB / 427 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.5896, allocations: 11.95 kB / 427 MB, free: 9.805 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001046/0.5897, allocations: 119.4 kB / 427.1 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.5899, allocations: 86.09 kB / 427.2 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.5901, allocations: 17.48 kB / 427.2 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.5901, allocations: 4 kB / 427.2 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.5901, allocations: 3.938 kB / 427.2 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.5901, allocations: 0 / 427.2 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.5905, allocations: 213.1 kB / 427.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5905, allocations: 0 / 427.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.5909, allocations: 38.86 kB / 427.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/0.5909, allocations: 7.984 kB / 427.4 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.5909, allocations: 4 kB / 427.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.5909, allocations: 0 / 427.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.591, allocations: 4 kB / 427.5 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.5915, allocations: 360.4 kB / 427.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.834e-05/0.5916, allocations: 96.83 kB / 427.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.5917, allocations: 11.55 kB / 427.9 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.5919, allocations: 7.688 kB / 427.9 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.379e-05/0.592, allocations: 11.94 kB / 427.9 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.592, allocations: 12 kB / 427.9 MB, free: 8.812 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.664e-05/0.5921, allocations: 98.86 kB / 428 MB, free: 8.723 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5921, allocations: 0 / 428 MB, free: 8.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004683/0.5926, allocations: 31.86 kB / 428.1 MB, free: 8.695 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008652/0.5935, allocations: 1.044 MB / 429.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002939/0.5938, allocations: 85.8 kB / 429.2 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5938, allocations: 0 / 429.2 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-05/0.5939, allocations: 20.69 kB / 429.2 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004754/0.5944, allocations: 50.52 kB / 429.3 MB, free: 7.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.5955, allocations: 337.3 kB / 429.6 MB, free: 7.199 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.5958, allocations: 0.7235 MB / 430.3 MB, free: 6.453 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.796e-05/0.5959, allocations: 9.203 kB / 430.3 MB, free: 6.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.367e-05/0.596, allocations: 42.05 kB / 430.4 MB, free: 6.418 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.596, allocations: 0 / 430.4 MB, free: 6.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.6225, allocations: 2.387 MB / 432.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003426/0.6229, allocations: 195.3 kB / 433 MB, free: 3.902 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/3.008, allocations: 0 / 433 MB, free: 3.902 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat