Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.44e-05/4.453e-05, allocations: 5.562 kB / 292.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 50.41 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5448, allocations: 78.79 MB / 421.9 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5451, allocations: 72.39 kB / 422 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009751/0.5549, allocations: 2.301 MB / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.5549, allocations: 0 / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.555, allocations: 4 kB / 424.3 MB, free: 13.02 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006885/0.5557, allocations: 409.6 kB / 424.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.5557, allocations: 12.03 kB / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.975e-05/0.5558, allocations: 45.14 kB / 424.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.5559, allocations: 11.91 kB / 424.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.5561, allocations: 201.5 kB / 425 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.5562, allocations: 7.438 kB / 425 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.5562, allocations: 11.69 kB / 425 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.5568, allocations: 221 kB / 425.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.5568, allocations: 0 / 425.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.5568, allocations: 7.141 kB / 425.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.5568, allocations: 4 kB / 425.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.557, allocations: 61.92 kB / 425.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008327/0.5579, allocations: 0.5889 MB / 425.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.5582, allocations: 129.7 kB / 426 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.5584, allocations: 62.41 kB / 426.1 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.5584, allocations: 4 kB / 426.1 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.5585, allocations: 45.88 kB / 426.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.245e-06/0.5585, allocations: 0 / 426.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003691/0.5589, allocations: 104.5 kB / 426.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.559, allocations: 114 kB / 426.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.5591, allocations: 116.5 kB / 426.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.5592, allocations: 33.67 kB / 426.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.319e-05/0.5593, allocations: 113.6 kB / 426.6 MB, free: 10.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.5593, allocations: 27.2 kB / 426.6 MB, free: 10.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.5593, allocations: 7.438 kB / 426.6 MB, free: 10.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5595, allocations: 322.5 kB / 426.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.417e-05/0.5596, allocations: 27.69 kB / 427 MB, free: 10.31 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.5597, allocations: 116.3 kB / 427.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.5599, allocations: 43.66 kB / 427.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5599, allocations: 0 / 427.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003545/0.5602, allocations: 155.4 kB / 427.3 MB, free: 9.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.5603, allocations: 4 kB / 427.3 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5603, allocations: 4 kB / 427.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.5603, allocations: 4 kB / 427.3 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.5607, allocations: 56.09 kB / 427.3 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.5607, allocations: 7.953 kB / 427.3 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.5609, allocations: 23.34 kB / 427.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.5609, allocations: 8 kB / 427.4 MB, free: 9.891 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001021/0.561, allocations: 119.8 kB / 427.5 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.5612, allocations: 79.03 kB / 427.6 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.078e-05/0.5613, allocations: 15.62 kB / 427.6 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.5613, allocations: 4 kB / 427.6 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.5614, allocations: 4 kB / 427.6 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.5614, allocations: 7.953 kB / 427.6 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.5618, allocations: 210.8 kB / 427.8 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.5618, allocations: 0 / 427.8 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003288/0.5621, allocations: 34.92 kB / 427.8 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.5621, allocations: 3.984 kB / 427.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.5622, allocations: 4 kB / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.5622, allocations: 0 / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5622, allocations: 0 / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.5628, allocations: 361.4 kB / 428.2 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.5629, allocations: 85.05 kB / 428.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.5629, allocations: 3.688 kB / 428.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.5631, allocations: 20 kB / 428.3 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.266e-05/0.5632, allocations: 15.58 kB / 428.3 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.5632, allocations: 7.938 kB / 428.3 MB, free: 8.914 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.49e-05/0.5633, allocations: 102.3 kB / 428.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5633, allocations: 0 / 428.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004585/0.5638, allocations: 26.66 kB / 428.5 MB, free: 8.797 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 (14): * Single equations (assignments): 14 * 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.0009008/0.5647, allocations: 1.038 MB / 429.5 MB, free: 7.766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002694/0.565, allocations: 92.09 kB / 429.6 MB, free: 7.695 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.565, allocations: 4.312 kB / 429.6 MB, free: 7.691 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.571e-05/0.5651, allocations: 15.31 kB / 429.6 MB, free: 7.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.5656, allocations: 41.89 kB / 429.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.5667, allocations: 339.8 kB / 430 MB, free: 7.309 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.5671, allocations: 0.7165 MB / 430.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.705e-05/0.5672, allocations: 12.78 kB / 430.7 MB, free: 6.551 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.5673, allocations: 31.98 kB / 430.7 MB, free: 6.535 MB / 346.7 MB Notification: Performance of SimCode: time 1.163e-06/0.5673, allocations: 0 / 430.7 MB, free: 6.535 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.5886, allocations: 2.355 MB / 433.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.5889, allocations: 199 kB / 433.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.381/2.97, allocations: 0 / 433.3 MB, free: 4.059 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat