Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.198e-05, allocations: 4 kB / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1237, allocations: 50.41 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4764/0.6002, allocations: 79.01 MB / 422.2 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003736/0.6007, allocations: 74.64 kB / 422.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01332/0.614, allocations: 2.702 MB / 424.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6141, allocations: 11.94 kB / 424.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.6141, allocations: 0 / 424.9 MB, free: 12.85 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.0007054/0.6148, allocations: 415.7 kB / 425.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.6149, allocations: 12.03 kB / 425.4 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.567e-05/0.6149, allocations: 45.67 kB / 425.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.615, allocations: 15.81 kB / 425.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.6153, allocations: 224 kB / 425.6 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.6154, allocations: 7.5 kB / 425.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.6154, allocations: 15.22 kB / 425.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.616, allocations: 236.2 kB / 425.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.616, allocations: 3.953 kB / 425.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.6161, allocations: 6.312 kB / 425.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.6161, allocations: 0 / 425.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.6163, allocations: 67.92 kB / 426 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.6171, allocations: 0.5919 MB / 426.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.6176, allocations: 126.2 kB / 426.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.6177, allocations: 67.77 kB / 426.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.6178, allocations: 8.016 kB / 426.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.6178, allocations: 38.19 kB / 426.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.134e-06/0.6178, allocations: 0 / 426.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004104/0.6182, allocations: 116.2 kB / 426.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.361e-05/0.6183, allocations: 118.2 kB / 427 MB, free: 10.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.6185, allocations: 138.5 kB / 427.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.6186, allocations: 33.02 kB / 427.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/0.6186, allocations: 111.7 kB / 427.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.6187, allocations: 32.72 kB / 427.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-06/0.6187, allocations: 3 kB / 427.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.6189, allocations: 328.5 kB / 427.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.6189, allocations: 22.88 kB / 427.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.6191, allocations: 118.8 kB / 427.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.6192, allocations: 46.61 kB / 427.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.6193, allocations: 0 / 427.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003741/0.6196, allocations: 165.6 kB / 428 MB, free: 9.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.6197, allocations: 8.031 kB / 428 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.6197, allocations: 4 kB / 428 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.6197, allocations: 8 kB / 428 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.62, allocations: 51.59 kB / 428.1 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.6201, allocations: 11.92 kB / 428.1 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.6203, allocations: 19.84 kB / 428.1 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.6203, allocations: 11.44 kB / 428.1 MB, free: 9.629 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.0001044/0.6204, allocations: 131.9 kB / 428.2 MB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.6206, allocations: 87.75 kB / 428.3 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.302e-05/0.6207, allocations: 20.31 kB / 428.4 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.6207, allocations: 4 kB / 428.4 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.6208, allocations: 0 / 428.4 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6208, allocations: 3.984 kB / 428.4 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003633/0.6212, allocations: 207.1 kB / 428.6 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.6212, allocations: 0 / 428.6 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000342/0.6215, allocations: 43.91 kB / 428.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.6215, allocations: 4 kB / 428.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.6216, allocations: 7.938 kB / 428.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.6216, allocations: 0 / 428.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6216, allocations: 0 / 428.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005209/0.6221, allocations: 369.4 kB / 429 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.6223, allocations: 108 kB / 429.1 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.6223, allocations: 4 kB / 429.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.6225, allocations: 10.73 kB / 429.1 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.6226, allocations: 12.03 kB / 429.1 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.6226, allocations: 4 kB / 429.1 MB, free: 8.621 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001319/0.6228, allocations: 117 kB / 429.2 MB, free: 8.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6228, allocations: 3.938 kB / 429.2 MB, free: 8.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004703/0.6233, allocations: 39.3 kB / 429.3 MB, free: 8.48 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.0008914/0.6242, allocations: 1.042 MB / 430.3 MB, free: 7.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.6245, allocations: 88.8 kB / 430.4 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6245, allocations: 0 / 430.4 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.891e-05/0.6246, allocations: 22.94 kB / 430.4 MB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005416/0.6251, allocations: 58.23 kB / 430.5 MB, free: 7.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.6264, allocations: 362.9 kB / 430.8 MB, free: 6.953 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.6267, allocations: 0.7314 MB / 431.6 MB, free: 6.199 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.869e-05/0.6269, allocations: 9.203 kB / 431.6 MB, free: 6.191 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.627, allocations: 39.67 kB / 431.6 MB, free: 6.172 MB / 346.7 MB Notification: Performance of SimCode: time 1.763e-06/0.627, allocations: 0 / 431.6 MB, free: 6.172 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.6498, allocations: 2.562 MB / 434.2 MB, free: 3.719 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003075/0.6502, allocations: 191.9 kB / 434.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/3.155, allocations: 0 / 434.4 MB, free: 3.496 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat