Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.806e-05/2.85e-05, allocations: 4 kB / 292.7 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.42 MB / 343.2 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4431/0.5527, allocations: 78.8 MB / 422 MB, free: 15.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5531, allocations: 72.98 kB / 422 MB, free: 15.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00988/0.563, allocations: 2.32 MB / 424.4 MB, free: 13.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.563, allocations: 0 / 424.4 MB, free: 13.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.563, allocations: 4 kB / 424.4 MB, free: 13.3 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.0007093/0.5638, allocations: 418.6 kB / 424.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.5638, allocations: 12.03 kB / 424.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.432e-05/0.5639, allocations: 45.05 kB / 424.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.886e-05/0.564, allocations: 11.91 kB / 424.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.5642, allocations: 200.8 kB / 425 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.5643, allocations: 11.23 kB / 425 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.5643, allocations: 14.81 kB / 425.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.565, allocations: 223.8 kB / 425.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.565, allocations: 7.859 kB / 425.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.5651, allocations: 7.812 kB / 425.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.5651, allocations: 4 kB / 425.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.5653, allocations: 58.75 kB / 425.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009063/0.5662, allocations: 0.5861 MB / 425.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004003/0.5666, allocations: 134.4 kB / 426.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.5668, allocations: 65.53 kB / 426.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.5669, allocations: 4 kB / 426.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.5669, allocations: 34.59 kB / 426.2 MB, free: 11.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.905e-06/0.5669, allocations: 0 / 426.2 MB, free: 11.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003986/0.5673, allocations: 120.4 kB / 426.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/0.5675, allocations: 114.7 kB / 426.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.5676, allocations: 117.1 kB / 426.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.5676, allocations: 29.64 kB / 426.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.5677, allocations: 123.5 kB / 426.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.5678, allocations: 23.64 kB / 426.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-06/0.5678, allocations: 3.875 kB / 426.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5679, allocations: 326.7 kB / 427 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.788e-05/0.568, allocations: 24.06 kB / 427 MB, free: 10.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.5682, allocations: 117.9 kB / 427.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.5683, allocations: 51.67 kB / 427.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5683, allocations: 0 / 427.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003743/0.5687, allocations: 156.4 kB / 427.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.5688, allocations: 8 kB / 427.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5688, allocations: 4 kB / 427.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.5688, allocations: 4 kB / 427.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.5692, allocations: 55.41 kB / 427.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.5692, allocations: 4 kB / 427.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.5694, allocations: 27.92 kB / 427.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.5694, allocations: 15.95 kB / 427.5 MB, free: 10.13 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.0001092/0.5695, allocations: 116.7 kB / 427.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.5698, allocations: 85.06 kB / 427.7 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.5699, allocations: 20.17 kB / 427.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.5699, allocations: 7.984 kB / 427.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5699, allocations: 0 / 427.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5699, allocations: 0 / 427.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.5703, allocations: 212.3 kB / 427.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5703, allocations: 0 / 427.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.5707, allocations: 43.92 kB / 427.9 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.5707, allocations: 0 / 427.9 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.5707, allocations: 4 kB / 427.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5708, allocations: 4.172 kB / 428 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5708, allocations: 0 / 428 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.5713, allocations: 370.5 kB / 428.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.53e-05/0.5714, allocations: 92.89 kB / 428.4 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.5715, allocations: 3.75 kB / 428.4 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.5717, allocations: 11.98 kB / 428.4 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.5717, allocations: 19.75 kB / 428.4 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.5718, allocations: 7.938 kB / 428.4 MB, free: 9.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.701e-05/0.5719, allocations: 103 kB / 428.5 MB, free: 9.043 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5719, allocations: 0 / 428.5 MB, free: 9.043 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005453/0.5724, allocations: 27.69 kB / 428.6 MB, free: 9.02 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.001395/0.5739, allocations: 1.043 MB / 429.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.5742, allocations: 91.28 kB / 429.7 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5742, allocations: 0 / 429.7 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.06e-05/0.5743, allocations: 19.44 kB / 429.7 MB, free: 7.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.5748, allocations: 39.39 kB / 429.8 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.5759, allocations: 345.7 kB / 430.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.5763, allocations: 0.7206 MB / 430.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.5764, allocations: 13.2 kB / 430.8 MB, free: 6.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.067e-05/0.5765, allocations: 32.69 kB / 430.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5765, allocations: 0 / 430.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.5975, allocations: 2.395 MB / 433.3 MB, free: 4.457 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003251/0.5979, allocations: 181.2 kB / 433.4 MB, free: 4.234 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/3.122, allocations: 0 / 433.4 MB, free: 4.234 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat