Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadModel(Modelica_Synchronous): time 2.473/2.473, allocations: 218.4 MB / 234.2 MB, free: 5.582 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.683e-05/3.714e-05, allocations: 4 kB / 287.6 MB, free: 64 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3547, allocations: 50.37 MB / 338 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.003477/0.3582, allocations: 1.895 MB / 339.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.3602, allocations: 0.7261 MB / 340.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.3605, allocations: 11.94 kB / 340.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.3607, allocations: 35.77 kB / 340.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.361, allocations: 43.84 kB / 340.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.3616, allocations: 135.7 kB / 340.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003356/0.3619, allocations: 164.1 kB / 341 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.3621, allocations: 55.33 kB / 341 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.3624, allocations: 123.7 kB / 341.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002783/0.3627, allocations: 131.6 kB / 341.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.3628, allocations: 12 kB / 341.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.3629, allocations: 16 kB / 341.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.363, allocations: 71.78 kB / 341.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.456e-05/0.3631, allocations: 20 kB / 341.4 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.3635, allocations: 221.2 kB / 341.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3635, allocations: 0 / 341.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3635, allocations: 3.938 kB / 341.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.3635, allocations: 0 / 341.6 MB, free: 12.31 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001616/0.3651, allocations: 0.5772 MB / 342.2 MB, free: 11.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3652, allocations: 12.03 kB / 342.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.3653, allocations: 35.62 kB / 342.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.3658, allocations: 267 kB / 342.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003065/0.3661, allocations: 145.6 kB / 342.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.841e-05/0.3662, allocations: 28 kB / 342.7 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.3681, allocations: 0.5494 MB / 343.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.3682, allocations: 0 / 343.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.3682, allocations: 12 kB / 343.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.3683, allocations: 4 kB / 343.2 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.3707, allocations: 0.5425 MB / 343.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002333/0.3731, allocations: 1.022 MB / 344.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.3759, allocations: 0.5148 MB / 345.3 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.292e-05/0.376, allocations: 8.172 kB / 345.3 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.3761, allocations: 38.75 kB / 345.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 3.867e-06/0.3761, allocations: 0 / 345.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.08125/0.4573, allocations: 6.754 MB / 352.1 MB, free: 1.543 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.4575, allocations: 148.8 kB / 352.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.4579, allocations: 177.8 kB / 352.4 MB, free: 1.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.458, allocations: 33.7 kB / 352.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.4582, allocations: 200 kB / 352.7 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/0.4585, allocations: 197.3 kB / 352.8 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.4586, allocations: 16 kB / 352.9 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4588, allocations: 334.8 kB / 353.2 MB, free: 412 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003116/0.4619, allocations: 0.6461 MB / 353.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/0.4652, allocations: 0.8315 MB / 354.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002986/0.4683, allocations: 0.606 MB / 355.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.4683, allocations: 4.375 kB / 355.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006816/0.4752, allocations: 1.452 MB / 356.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.4752, allocations: 10.03 kB / 356.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.4753, allocations: 4 kB / 356.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.179e-05/0.4753, allocations: 23.92 kB / 356.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/0.4779, allocations: 227.6 kB / 357 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.132e-05/0.478, allocations: 19.98 kB / 357 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.4798, allocations: 119.7 kB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.48, allocations: 35.98 kB / 357.2 MB, free: 12.35 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.000456/0.4804, allocations: 173.6 kB / 357.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004807/0.4809, allocations: 153.2 kB / 357.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002052/0.4811, allocations: 63.3 kB / 357.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.4812, allocations: 11.95 kB / 357.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.4812, allocations: 0 / 357.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4812, allocations: 7.984 kB / 357.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008725/0.4899, allocations: 2.281 MB / 359.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/0.49, allocations: 16.03 kB / 359.9 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/0.4916, allocations: 195.7 kB / 360 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.699e-05/0.4916, allocations: 20 kB / 360.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.242e-05/0.4917, allocations: 24 kB / 360.1 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.701e-05/0.4918, allocations: 23.88 kB / 360.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.706e-05/0.4918, allocations: 15.94 kB / 360.1 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006592/0.4984, allocations: 2.169 MB / 362.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003516/0.4988, allocations: 160.6 kB / 362.5 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.4989, allocations: 31.97 kB / 362.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.5, allocations: 95.98 kB / 362.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.5003, allocations: 99.66 kB / 362.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.221e-05/0.5004, allocations: 43.98 kB / 362.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002089/0.5006, allocations: 140.3 kB / 362.9 MB, free: 6.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5007, allocations: 0 / 362.9 MB, free: 6.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009393/0.5016, allocations: 120.2 kB / 363 MB, free: 5.898 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.0002211/0.5018, allocations: 131 kB / 363.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005353/0.5072, allocations: 1.191 MB / 364.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/0.5073, allocations: 320 / 364.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002005/0.5093, allocations: 377.9 kB / 364.7 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009595/0.5103, allocations: 119.5 kB / 364.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.5144, allocations: 1.379 MB / 366.2 MB, free: 2.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.515, allocations: 0.821 MB / 367 MB, free: 1.691 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006198/0.5156, allocations: 43.42 kB / 367 MB, free: 1.648 MB / 298.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5156, allocations: 0 / 367 MB, free: 1.648 MB / 298.7 MB Notification: Performance of Templates: time 0.01669/0.5323, allocations: 6.883 MB / 373.9 MB, free: 10.75 MB / 314.7 MB