Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.135/2.135, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.546e-05/3.549e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4543/0.5642, allocations: 78.92 MB / 421.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004157/0.5647, allocations: 71.97 kB / 421.6 MB, free: 15.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01879/0.5835, allocations: 2.591 MB / 424.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5836, allocations: 0 / 424.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.854e-05/0.5836, allocations: 8 kB / 424.2 MB, free: 13.01 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001014/0.5847, allocations: 408.4 kB / 424.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.097e-05/0.5848, allocations: 16.03 kB / 424.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.977e-05/0.5849, allocations: 52.62 kB / 424.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.489e-05/0.585, allocations: 7.906 kB / 424.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.5854, allocations: 196.8 kB / 424.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.5855, allocations: 10.38 kB / 424.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-05/0.5856, allocations: 15.19 kB / 424.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007876/0.5864, allocations: 215.2 kB / 425.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.5864, allocations: 0 / 425.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.5865, allocations: 15.45 kB / 425.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.5865, allocations: 0 / 425.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.5868, allocations: 50.5 kB / 425.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.5882, allocations: 0.6064 MB / 425.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006014/0.5889, allocations: 140.7 kB / 425.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.5891, allocations: 67.78 kB / 426 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.5892, allocations: 0 / 426 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.5892, allocations: 41.88 kB / 426.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 3.036e-06/0.5893, allocations: 3.938 kB / 426.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005933/0.5899, allocations: 110.4 kB / 426.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.59, allocations: 114.2 kB / 426.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.5903, allocations: 125.6 kB / 426.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.5903, allocations: 29.7 kB / 426.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.5904, allocations: 113.8 kB / 426.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.5905, allocations: 23.16 kB / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.496e-05/0.5906, allocations: 4.031 kB / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.5907, allocations: 326.1 kB / 426.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.5909, allocations: 23.12 kB / 426.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.5911, allocations: 131.9 kB / 427 MB, free: 10.12 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.5916, allocations: 131.2 kB / 427.2 MB, free: 9.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.5917, allocations: 0 / 427.2 MB, free: 9.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005885/0.5923, allocations: 161.4 kB / 427.3 MB, free: 9.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.5923, allocations: 8 kB / 427.3 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.5923, allocations: 4 kB / 427.3 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.5924, allocations: 4 kB / 427.3 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/0.5929, allocations: 52.38 kB / 427.4 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-05/0.5929, allocations: 4 kB / 427.4 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/0.5932, allocations: 30.97 kB / 427.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.05e-05/0.5933, allocations: 8 kB / 427.4 MB, free: 9.738 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.000203/0.5935, allocations: 119.1 kB / 427.5 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003684/0.5939, allocations: 91.5 kB / 427.6 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.398e-05/0.594, allocations: 22.67 kB / 427.7 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.594, allocations: 4 kB / 427.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5941, allocations: 4 kB / 427.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5941, allocations: 0 / 427.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.5947, allocations: 203.2 kB / 427.9 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.5947, allocations: 4 kB / 427.9 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006135/0.5953, allocations: 39.97 kB / 427.9 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.5954, allocations: 7.938 kB / 427.9 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.5954, allocations: 7.359 kB / 427.9 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.346e-05/0.5955, allocations: 0 / 427.9 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.5955, allocations: 15.88 kB / 427.9 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000792/0.5963, allocations: 360.2 kB / 428.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.5964, allocations: 92.97 kB / 428.4 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.5965, allocations: 4 kB / 428.4 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.597, allocations: 15.31 kB / 428.4 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.88e-05/0.5971, allocations: 7.938 kB / 428.4 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.5971, allocations: 4 kB / 428.4 MB, free: 8.746 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001683/0.5973, allocations: 111.9 kB / 428.5 MB, free: 8.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.5973, allocations: 0 / 428.5 MB, free: 8.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009249/0.5983, allocations: 31.47 kB / 428.6 MB, free: 8.621 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.00231/0.6006, allocations: 1.045 MB / 429.6 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.6014, allocations: 92.5 kB / 429.7 MB, free: 7.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6014, allocations: 4.062 kB / 429.7 MB, free: 7.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.899e-05/0.6015, allocations: 10.75 kB / 429.7 MB, free: 7.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006042/0.6021, allocations: 56.14 kB / 429.8 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.6036, allocations: 377.4 kB / 430.1 MB, free: 7.074 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.604, allocations: 0.7206 MB / 430.8 MB, free: 6.328 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.345e-05/0.6041, allocations: 13.2 kB / 430.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.925e-05/0.6042, allocations: 41.86 kB / 430.9 MB, free: 6.293 MB / 346.7 MB Notification: Performance of SimCode: time 1.984e-06/0.6042, allocations: 0 / 430.9 MB, free: 6.293 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.6325, allocations: 2.573 MB / 433.5 MB, free: 3.836 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003342/0.6329, allocations: 206.7 kB / 433.7 MB, free: 3.605 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/3.159, allocations: 0 / 433.7 MB, free: 3.605 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat