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_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica_Synchronous): time 2.219/2.219, allocations: 218.4 MB / 234.2 MB, free: 5.586 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.545e-05/3.549e-05, allocations: 4 kB / 287.6 MB, free: 72 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3247, allocations: 50.37 MB / 338 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.003516/0.3282, allocations: 1.919 MB / 339.9 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.3303, allocations: 0.7532 MB / 340.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.3306, allocations: 11.94 kB / 340.6 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000241/0.3308, allocations: 35.77 kB / 340.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.3311, allocations: 51.83 kB / 340.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.3317, allocations: 131.7 kB / 340.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.3321, allocations: 176 kB / 341 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.3323, allocations: 63.56 kB / 341.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.3326, allocations: 119.7 kB / 341.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.3329, allocations: 139.5 kB / 341.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.942e-05/0.333, allocations: 12 kB / 341.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.3331, allocations: 16 kB / 341.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.3332, allocations: 75.78 kB / 341.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.778e-05/0.3333, allocations: 20 kB / 341.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.3337, allocations: 225.3 kB / 341.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3337, allocations: 3.938 kB / 341.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3337, allocations: 0 / 341.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3337, allocations: 0 / 341.7 MB, free: 12.23 MB / 282.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.001731/0.3355, allocations: 0.5773 MB / 342.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.3355, allocations: 8.031 kB / 342.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.3357, allocations: 35.62 kB / 342.3 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.3362, allocations: 271.1 kB / 342.6 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004293/0.3366, allocations: 141.7 kB / 342.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3368, allocations: 35.91 kB / 342.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.3389, allocations: 0.5735 MB / 343.3 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.339, allocations: 11.92 kB / 343.3 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/0.339, allocations: 12 kB / 343.3 MB, free: 10.44 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.3391, allocations: 8 kB / 343.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.3416, allocations: 0.5347 MB / 343.9 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.3442, allocations: 1.014 MB / 344.9 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002943/0.3472, allocations: 0.5147 MB / 345.4 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.3474, allocations: 8.344 kB / 345.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.3475, allocations: 38.75 kB / 345.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 3.026e-06/0.3475, allocations: 0 / 345.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.08125/0.4287, allocations: 6.75 MB / 352.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/0.4289, allocations: 152.8 kB / 352.4 MB, free: 1.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.4293, allocations: 186.5 kB / 352.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001528/0.4294, allocations: 33.7 kB / 352.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.4296, allocations: 207.9 kB / 352.8 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.4299, allocations: 193.3 kB / 353 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.4301, allocations: 16 kB / 353 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4302, allocations: 338.8 kB / 353.3 MB, free: 288 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00317/0.4334, allocations: 0.6463 MB / 354 MB, free: 15.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003329/0.4368, allocations: 0.8354 MB / 354.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003003/0.4399, allocations: 0.6024 MB / 355.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/0.4399, allocations: 4 kB / 355.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006856/0.4468, allocations: 1.449 MB / 356.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.4469, allocations: 11.98 kB / 356.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.4469, allocations: 7.938 kB / 356.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.571e-05/0.4469, allocations: 15.95 kB / 356.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.4496, allocations: 227.7 kB / 357.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-05/0.4497, allocations: 8 kB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.4515, allocations: 123.8 kB / 357.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.4517, allocations: 32 kB / 357.3 MB, free: 12.24 MB / 298.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.0004607/0.4522, allocations: 177.6 kB / 357.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005025/0.4527, allocations: 149.2 kB / 357.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.4529, allocations: 59.31 kB / 357.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.4529, allocations: 11.95 kB / 357.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4529, allocations: 0 / 357.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.453, allocations: 7.984 kB / 357.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008906/0.4619, allocations: 2.285 MB / 360 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-05/0.462, allocations: 12.19 kB / 360 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.4636, allocations: 203.7 kB / 360.2 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.749e-05/0.4637, allocations: 16 kB / 360.2 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.855e-05/0.4638, allocations: 32 kB / 360.2 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.527e-05/0.4638, allocations: 19.89 kB / 360.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.735e-05/0.4639, allocations: 15.94 kB / 360.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006406/0.4703, allocations: 2.165 MB / 362.4 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003989/0.4707, allocations: 164.6 kB / 362.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.4709, allocations: 28 kB / 362.6 MB, free: 6.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4719, allocations: 95.97 kB / 362.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003302/0.4723, allocations: 107.6 kB / 362.8 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-05/0.4724, allocations: 35.98 kB / 362.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002079/0.4726, allocations: 141.2 kB / 363 MB, free: 5.906 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4726, allocations: 192 / 363 MB, free: 5.906 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009169/0.4735, allocations: 120 kB / 363.1 MB, free: 5.789 MB / 298.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.0002271/0.4738, allocations: 138.9 kB / 363.2 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005436/0.4792, allocations: 1.191 MB / 364.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/0.4793, allocations: 0 / 364.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002012/0.4813, allocations: 382 kB / 364.8 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009793/0.4823, allocations: 127.8 kB / 364.9 MB, free: 3.961 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.4865, allocations: 1.379 MB / 366.3 MB, free: 2.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.4871, allocations: 0.8129 MB / 367.1 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006105/0.4877, allocations: 51.42 kB / 367.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4877, allocations: 0 / 367.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of Templates: time 0.01714/0.5049, allocations: 6.912 MB / 374.1 MB, free: 10.6 MB / 314.7 MB