Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.464/2.464, allocations: 251.5 MB / 266 MB, free: 0.6602 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.1017/0.1017, allocations: 12.6 MB / 336.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.056e-05/4.066e-05, allocations: 4 kB / 399.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4105, allocations: 59.43 MB / 459.2 MB, free: 28.61 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002676/0.4132, allocations: 1.92 MB / 461.1 MB, free: 26.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.4148, allocations: 0.7572 MB / 461.9 MB, free: 25.9 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.415, allocations: 11.94 kB / 461.9 MB, free: 25.89 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.4152, allocations: 35.77 kB / 461.9 MB, free: 25.85 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.4154, allocations: 47.83 kB / 462 MB, free: 25.8 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/0.4159, allocations: 135.6 kB / 462.1 MB, free: 25.67 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.4162, allocations: 176 kB / 462.3 MB, free: 25.5 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.4164, allocations: 61.48 kB / 462.3 MB, free: 25.44 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.4166, allocations: 119.7 kB / 462.4 MB, free: 25.32 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.4168, allocations: 135.5 kB / 462.6 MB, free: 25.19 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.389e-05/0.4169, allocations: 16 kB / 462.6 MB, free: 25.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.417, allocations: 16 kB / 462.6 MB, free: 25.16 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.262e-05/0.4171, allocations: 75.78 kB / 462.7 MB, free: 25.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.317e-05/0.4171, allocations: 20 kB / 462.7 MB, free: 25.07 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.4174, allocations: 226.1 kB / 462.9 MB, free: 24.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.4174, allocations: 0 / 462.9 MB, free: 24.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4174, allocations: 0 / 462.9 MB, free: 24.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.4175, allocations: 0 / 462.9 MB, free: 24.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001439/0.4189, allocations: 0.5811 MB / 463.5 MB, free: 24.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.419, allocations: 8.031 kB / 463.5 MB, free: 24.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.4191, allocations: 39.58 kB / 463.5 MB, free: 24.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.4195, allocations: 269 kB / 463.8 MB, free: 23.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.4197, allocations: 149.7 kB / 464 MB, free: 23.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-05/0.4198, allocations: 28 kB / 464 MB, free: 23.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.4216, allocations: 0.5698 MB / 464.5 MB, free: 23.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.4216, allocations: 0 / 464.5 MB, free: 23.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.4217, allocations: 16 kB / 464.6 MB, free: 23.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.4217, allocations: 8 kB / 464.6 MB, free: 23.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.424, allocations: 0.5386 MB / 465.1 MB, free: 22.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.426, allocations: 1.014 MB / 466.1 MB, free: 21.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/0.4287, allocations: 0.5108 MB / 466.6 MB, free: 20.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.119e-05/0.4288, allocations: 16.17 kB / 466.7 MB, free: 20.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.4288, allocations: 42.69 kB / 466.7 MB, free: 20.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=44): time 3.536e-06/0.4288, allocations: 0 / 466.7 MB, free: 20.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.07852/0.5074, allocations: 6.751 MB / 473.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5075, allocations: 156.8 kB / 473.6 MB, free: 13.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.5078, allocations: 179.4 kB / 473.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.508, allocations: 33.7 kB / 473.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.117e-05/0.5081, allocations: 149.5 kB / 474 MB, free: 13.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.5083, allocations: 189.3 kB / 474.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.5084, allocations: 12 kB / 474.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.5085, allocations: 342.8 kB / 474.5 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002889/0.5114, allocations: 0.65 MB / 475.1 MB, free: 12.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002983/0.5145, allocations: 0.8353 MB / 476 MB, free: 11.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.5172, allocations: 0.6059 MB / 476.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.517e-06/0.5173, allocations: 7.953 kB / 476.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006402/0.5237, allocations: 1.452 MB / 478 MB, free: 9.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.5238, allocations: 13.08 kB / 478 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.5238, allocations: 4 kB / 478 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.464e-05/0.5238, allocations: 12 kB / 478.1 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/0.5264, allocations: 231.7 kB / 478.3 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.5264, allocations: 11.94 kB / 478.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.5282, allocations: 119.8 kB / 478.4 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.5283, allocations: 28 kB / 478.4 MB, free: 8.91 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0004125/0.5287, allocations: 181.6 kB / 478.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004357/0.5292, allocations: 153.2 kB / 478.8 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.5294, allocations: 59.31 kB / 478.8 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.5294, allocations: 8 kB / 478.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.5294, allocations: 0 / 478.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.5295, allocations: 7.984 kB / 478.8 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007926/0.5374, allocations: 2.289 MB / 481.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/0.5375, allocations: 12 kB / 481.1 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.539, allocations: 203.7 kB / 481.3 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.211e-05/0.539, allocations: 16 kB / 481.4 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.118e-05/0.5391, allocations: 24 kB / 481.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.73e-05/0.5391, allocations: 19.94 kB / 481.4 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/0.5391, allocations: 15.94 kB / 481.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00575/0.5449, allocations: 2.188 MB / 483.6 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.5453, allocations: 164.6 kB / 483.8 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.5454, allocations: 24 kB / 483.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5465, allocations: 103.9 kB / 483.9 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/0.5468, allocations: 99.66 kB / 484 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-05/0.5469, allocations: 36 kB / 484 MB, free: 2.684 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000192/0.5471, allocations: 144.3 kB / 484.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5471, allocations: 0 / 484.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009136/0.5481, allocations: 124 kB / 484.3 MB, free: 2.422 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002189/0.5483, allocations: 135.6 kB / 484.4 MB, free: 2.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005005/0.5533, allocations: 1.19 MB / 485.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.5534, allocations: 1.375 kB / 485.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.5553, allocations: 382 kB / 486 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009206/0.5562, allocations: 129.6 kB / 486.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.5602, allocations: 1.327 MB / 487.4 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.5608, allocations: 0.8207 MB / 488.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001118/0.562, allocations: 87.39 kB / 488.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005015/0.5625, allocations: 43.42 kB / 488.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5625, allocations: 4 kB / 488.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of Templates: time 0.02254/0.585, allocations: 7.261 MB / 495.7 MB, free: 6.863 MB / 362.7 MB