Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.312e-05/3.332e-05, allocations: 4 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08921/0.08926, allocations: 50.42 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.488, allocations: 79.57 MB / 422.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.4883, allocations: 78.62 kB / 422.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02442/0.5127, allocations: 5.586 MB / 428.3 MB, free: 9.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.261e-06/0.5128, allocations: 0 / 428.3 MB, free: 9.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.5128, allocations: 4 kB / 428.3 MB, free: 9.836 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001155/0.514, allocations: 0.538 MB / 428.9 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.5141, allocations: 12.03 kB / 428.9 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.64e-05/0.5142, allocations: 27.72 kB / 428.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.5146, allocations: 241.5 kB / 429.1 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/0.5149, allocations: 146.6 kB / 429.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.786e-05/0.515, allocations: 18.62 kB / 429.3 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006671/0.5156, allocations: 310.9 kB / 429.6 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5157, allocations: 0 / 429.6 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.393e-05/0.5157, allocations: 10.83 kB / 429.6 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.169e-06/0.5157, allocations: 8 kB / 429.6 MB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008762/0.5166, allocations: 379.7 kB / 430 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.519, allocations: 1.036 MB / 431 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007701/0.5198, allocations: 254 kB / 431.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.5202, allocations: 133.5 kB / 431.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.5202, allocations: 8 kB / 431.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.5203, allocations: 38.31 kB / 431.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.84e-06/0.5203, allocations: 0 / 431.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.01016/0.5305, allocations: 3.082 MB / 434.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.5306, allocations: 59.84 kB / 434.6 MB, free: 4.574 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.5309, allocations: 190.8 kB / 434.8 MB, free: 4.406 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.336e-05/0.531, allocations: 36.52 kB / 434.8 MB, free: 4.371 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.5311, allocations: 144.9 kB / 434.9 MB, free: 4.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.5313, allocations: 181.6 kB / 435.1 MB, free: 4.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.5314, allocations: 10.19 kB / 435.1 MB, free: 4.078 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.5316, allocations: 339.7 kB / 435.5 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007176/0.5323, allocations: 324.5 kB / 435.8 MB, free: 3.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007628/0.5331, allocations: 382 kB / 436.2 MB, free: 3.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.5337, allocations: 266.1 kB / 436.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.95e-06/0.5338, allocations: 0 / 436.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001704/0.5355, allocations: 0.715 MB / 437.1 MB, free: 2.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.5355, allocations: 8 kB / 437.1 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5355, allocations: 3.938 kB / 437.1 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.5356, allocations: 7.953 kB / 437.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.5369, allocations: 183.4 kB / 437.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.5369, allocations: 4 kB / 437.3 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008681/0.5378, allocations: 107 kB / 437.4 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.5379, allocations: 23.44 kB / 437.5 MB, free: 2.449 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.000235/0.5382, allocations: 135.8 kB / 437.6 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.5383, allocations: 27.16 kB / 437.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.5385, allocations: 52.02 kB / 437.7 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.5385, allocations: 7.953 kB / 437.7 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.811e-06/0.5385, allocations: 0 / 437.7 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.5385, allocations: 7.984 kB / 437.7 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004382/0.5429, allocations: 1.703 MB / 439.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.543, allocations: 8 kB / 439.4 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009041/0.5439, allocations: 163.4 kB / 439.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.396e-05/0.544, allocations: 12 kB / 439.6 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.205e-05/0.544, allocations: 23.5 kB / 439.6 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.828e-05/0.5441, allocations: 15.92 kB / 439.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.436e-05/0.5441, allocations: 15.94 kB / 439.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.5462, allocations: 1.329 MB / 440.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002934/0.5465, allocations: 149.6 kB / 441.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/0.5466, allocations: 22.3 kB / 441.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007545/0.5474, allocations: 90.17 kB / 441.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/0.5476, allocations: 101.5 kB / 441.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.5477, allocations: 22.88 kB / 441.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002014/0.5479, allocations: 154.1 kB / 441.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.5479, allocations: 0 / 441.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006947/0.5486, allocations: 98.31 kB / 441.6 MB, free: 14.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0002221/0.5489, allocations: 133.6 kB / 441.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.5502, allocations: 0.6005 MB / 442.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.321e-06/0.5503, allocations: 0 / 442.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006118/0.5509, allocations: 214.3 kB / 442.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.5515, allocations: 48.03 kB / 442.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.5538, allocations: 0.8402 MB / 443.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.5543, allocations: 0.7848 MB / 444.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006971/0.555, allocations: 82.88 kB / 444.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002844/0.5553, allocations: 27.44 kB / 444.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.708e-06/0.5554, allocations: 0 / 444.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of Templates: time 0.01365/0.569, allocations: 5.072 MB / 449.4 MB, free: 7.055 MB / 362.7 MB