Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 2.048/2.048, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.305e-05, allocations: 4 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.0895, allocations: 50.4 MB / 342.5 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.425/0.5146, allocations: 79.02 MB / 421.6 MB, free: 15.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.5149, allocations: 74.45 kB / 421.6 MB, free: 15.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01069/0.5256, allocations: 2.704 MB / 424.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.968e-06/0.5256, allocations: 3.938 kB / 424.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.5256, allocations: 8 kB / 424.4 MB, free: 12.79 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.0006342/0.5263, allocations: 413.3 kB / 424.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5264, allocations: 12.03 kB / 424.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.761e-05/0.5264, allocations: 15.81 kB / 424.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.5267, allocations: 225.2 kB / 425 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.5268, allocations: 7.875 kB / 425 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.5268, allocations: 11.88 kB / 425 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.5273, allocations: 235.9 kB / 425.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.5274, allocations: 0 / 425.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.5274, allocations: 11.52 kB / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.594e-06/0.5274, allocations: 0 / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.5276, allocations: 60.8 kB / 425.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008311/0.5284, allocations: 0.5935 MB / 425.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.5288, allocations: 131 kB / 426 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.529, allocations: 67.45 kB / 426.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.529, allocations: 8.25 kB / 426.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.5291, allocations: 45.62 kB / 426.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.806e-06/0.5291, allocations: 0 / 426.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003605/0.5295, allocations: 115.9 kB / 426.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.343e-05/0.5296, allocations: 109.6 kB / 426.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.5297, allocations: 139.9 kB / 426.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.5298, allocations: 37.02 kB / 426.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.13e-05/0.5299, allocations: 110.7 kB / 426.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/0.5299, allocations: 26.39 kB / 426.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.383e-06/0.5299, allocations: 10.84 kB / 426.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.5301, allocations: 326.1 kB / 427 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.902e-05/0.5302, allocations: 23.56 kB / 427 MB, free: 10.06 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.5304, allocations: 119.8 kB / 427.2 MB, free: 9.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.5305, allocations: 46.64 kB / 427.2 MB, free: 9.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5305, allocations: 0 / 427.2 MB, free: 9.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003552/0.5309, allocations: 164.9 kB / 427.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5309, allocations: 7.938 kB / 427.4 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.5309, allocations: 4 kB / 427.4 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.5309, allocations: 8 kB / 427.4 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.5312, allocations: 51.53 kB / 427.4 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.5312, allocations: 8.406 kB / 427.4 MB, free: 9.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.5314, allocations: 27.66 kB / 427.5 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.5314, allocations: 8 kB / 427.5 MB, free: 9.617 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.0001072/0.5315, allocations: 120.5 kB / 427.6 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.5318, allocations: 88.84 kB / 427.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.697e-05/0.5319, allocations: 15.25 kB / 427.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.532e-06/0.5319, allocations: 0 / 427.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.438e-06/0.5319, allocations: 4 kB / 427.7 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.08e-06/0.5319, allocations: 7.984 kB / 427.7 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.5323, allocations: 215.1 kB / 427.9 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-06/0.5323, allocations: 0 / 427.9 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.5326, allocations: 43.91 kB / 428 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.5326, allocations: 0 / 428 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.5327, allocations: 7.438 kB / 428 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5327, allocations: 0 / 428 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.052e-06/0.5327, allocations: 0 / 428 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004962/0.5332, allocations: 369 kB / 428.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.5333, allocations: 107.1 kB / 428.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.5334, allocations: 4 kB / 428.4 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.5336, allocations: 10.67 kB / 428.5 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.5337, allocations: 8.062 kB / 428.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.5337, allocations: 11.02 kB / 428.5 MB, free: 8.617 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.5338, allocations: 116.9 kB / 428.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.5338, allocations: 96 / 428.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004712/0.5343, allocations: 39.55 kB / 428.6 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.000149/0.5345, allocations: 99.95 kB / 428.7 MB, free: 8.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002604/0.5348, allocations: 93.95 kB / 428.8 MB, free: 8.305 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.997e-06/0.5348, allocations: 4.062 kB / 428.8 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.15e-05/0.5349, allocations: 15.05 kB / 428.8 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.5353, allocations: 61.02 kB / 428.9 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007599/0.5361, allocations: 315.7 kB / 429.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.5366, allocations: 0.7322 MB / 429.9 MB, free: 7.172 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.831e-05/0.5367, allocations: 13.2 kB / 429.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.196e-05/0.5367, allocations: 15.44 kB / 430 MB, free: 7.145 MB / 346.7 MB Notification: Performance of SimCode: time 1.859e-06/0.5367, allocations: 3.938 kB / 430 MB, free: 7.141 MB / 346.7 MB Notification: Performance of Templates: time 0.005005/0.5417, allocations: 1.153 MB / 431.1 MB, free: 6.012 MB / 346.7 MB