Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.236/2.236, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.65e-05, allocations: 4 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4528/0.5603, allocations: 79.03 MB / 421.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.5606, allocations: 67.38 kB / 421.7 MB, free: 14.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01188/0.5725, allocations: 2.706 MB / 424.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.028e-06/0.5726, allocations: 0 / 424.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.5726, allocations: 7.938 kB / 424.5 MB, free: 12.45 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000728/0.5734, allocations: 422 kB / 424.9 MB, free: 12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.5734, allocations: 8.031 kB / 424.9 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.765e-05/0.5735, allocations: 46.11 kB / 424.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.5736, allocations: 19.81 kB / 424.9 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.5739, allocations: 225.9 kB / 425.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.5739, allocations: 7.812 kB / 425.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.574, allocations: 19.78 kB / 425.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005731/0.5746, allocations: 228.7 kB / 425.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.5746, allocations: 3.953 kB / 425.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.5746, allocations: 7.875 kB / 425.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.5746, allocations: 4 kB / 425.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.5749, allocations: 59.23 kB / 425.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008996/0.5758, allocations: 0.5943 MB / 426.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004016/0.5762, allocations: 126.7 kB / 426.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.5764, allocations: 69.89 kB / 426.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.5764, allocations: 12.2 kB / 426.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.5765, allocations: 34.56 kB / 426.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.955e-06/0.5765, allocations: 0 / 426.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003984/0.5769, allocations: 116.4 kB / 426.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.577, allocations: 114.7 kB / 426.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.5772, allocations: 145.2 kB / 426.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.5772, allocations: 29.73 kB / 426.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.981e-05/0.5773, allocations: 123.8 kB / 426.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.5774, allocations: 23.55 kB / 426.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.679e-06/0.5774, allocations: 3.875 kB / 426.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5776, allocations: 326.7 kB / 427.2 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.004e-05/0.5776, allocations: 24 kB / 427.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.5778, allocations: 113.8 kB / 427.3 MB, free: 9.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.5779, allocations: 47.36 kB / 427.4 MB, free: 9.484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.578, allocations: 0 / 427.4 MB, free: 9.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000384/0.5784, allocations: 168.4 kB / 427.5 MB, free: 9.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.5784, allocations: 4 kB / 427.5 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.5784, allocations: 4 kB / 427.5 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.5784, allocations: 8.469 kB / 427.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003376/0.5788, allocations: 54.53 kB / 427.6 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.5788, allocations: 7.938 kB / 427.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.579, allocations: 23.16 kB / 427.6 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.5791, allocations: 12 kB / 427.6 MB, free: 9.227 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.0001172/0.5792, allocations: 127.3 kB / 427.8 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.5794, allocations: 86.62 kB / 427.8 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.5796, allocations: 22.62 kB / 427.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.5796, allocations: 0 / 427.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5796, allocations: 4.188 kB / 427.9 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.5796, allocations: 3.984 kB / 427.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003824/0.58, allocations: 212.2 kB / 428.1 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.58, allocations: 0 / 428.1 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003626/0.5804, allocations: 43.91 kB / 428.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.5804, allocations: 0 / 428.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.5805, allocations: 3.688 kB / 428.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.5805, allocations: 4 kB / 428.1 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5805, allocations: 4 kB / 428.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005523/0.581, allocations: 364.7 kB / 428.5 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.5812, allocations: 107.6 kB / 428.6 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.5812, allocations: 64 / 428.6 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.5815, allocations: 19.23 kB / 428.6 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.353e-05/0.5815, allocations: 7.953 kB / 428.6 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.5816, allocations: 7.812 kB / 428.6 MB, free: 8.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001318/0.5817, allocations: 113.4 kB / 428.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5817, allocations: 0 / 428.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004848/0.5822, allocations: 34.8 kB / 428.8 MB, free: 8.094 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.0009065/0.5831, allocations: 1.046 MB / 429.8 MB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.5835, allocations: 90.31 kB / 429.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5835, allocations: 0 / 429.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.352e-05/0.5836, allocations: 18.88 kB / 429.9 MB, free: 6.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.5841, allocations: 57.06 kB / 430 MB, free: 6.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.5854, allocations: 367.6 kB / 430.3 MB, free: 6.559 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.5858, allocations: 0.7206 MB / 431.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.5859, allocations: 21.19 kB / 431.1 MB, free: 5.793 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.497e-05/0.586, allocations: 43.98 kB / 431.1 MB, free: 5.77 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.586, allocations: 0 / 431.1 MB, free: 5.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.6101, allocations: 2.562 MB / 433.7 MB, free: 3.316 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.6103, allocations: 196.3 kB / 433.9 MB, free: 3.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/3.059, allocations: 0 / 433.9 MB, free: 3.086 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat