Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,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.Continuous") Notification: Performance of loadModel(Modelica_Synchronous): time 2.292/2.292, allocations: 218.4 MB / 234.2 MB, free: 4.602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.385e-05/3.406e-05, allocations: 7.984 kB / 287.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3331, allocations: 50.36 MB / 338 MB, free: 15.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.003135/0.3363, allocations: 1.755 MB / 339.7 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.338, allocations: 0.6055 MB / 340.3 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.3382, allocations: 11.94 kB / 340.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.3385, allocations: 27.83 kB / 340.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.3387, allocations: 43.84 kB / 340.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004084/0.3391, allocations: 95.81 kB / 340.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003093/0.3394, allocations: 155.7 kB / 340.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.3396, allocations: 39.7 kB / 340.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.3399, allocations: 107.7 kB / 340.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.3402, allocations: 127.6 kB / 340.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.825e-05/0.3402, allocations: 12 kB / 340.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.151e-05/0.3403, allocations: 16 kB / 340.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3404, allocations: 67.78 kB / 341 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.652e-05/0.3405, allocations: 20 kB / 341 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.3408, allocations: 201.3 kB / 341.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3408, allocations: 0 / 341.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3409, allocations: 0 / 341.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.3409, allocations: 0 / 341.2 MB, free: 12.54 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001638/0.3425, allocations: 0.5339 MB / 341.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.3426, allocations: 12.03 kB / 341.8 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.3427, allocations: 27.72 kB / 341.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/0.3432, allocations: 255.1 kB / 342 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/0.3436, allocations: 145.6 kB / 342.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.3437, allocations: 27.91 kB / 342.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.3452, allocations: 375.6 kB / 342.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.3453, allocations: 4 kB / 342.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.3453, allocations: 8 kB / 342.6 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.3454, allocations: 12 kB / 342.6 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.3479, allocations: 0.5096 MB / 343.1 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.3509, allocations: 1.027 MB / 344.1 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.3531, allocations: 358.9 kB / 344.5 MB, free: 9.066 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.3532, allocations: 8.188 kB / 344.5 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.3533, allocations: 38.78 kB / 344.5 MB, free: 9.012 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 3.146e-06/0.3533, allocations: 4 kB / 344.5 MB, free: 9.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.05545/0.4088, allocations: 6.657 MB / 351.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.4089, allocations: 55.84 kB / 351.2 MB, free: 2.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.4093, allocations: 185.4 kB / 351.4 MB, free: 2.004 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.4094, allocations: 33.7 kB / 351.5 MB, free: 1.965 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.4096, allocations: 215.1 kB / 351.7 MB, free: 1.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.4098, allocations: 177.4 kB / 351.8 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.002e-05/0.4099, allocations: 12 kB / 351.9 MB, free: 1.566 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4101, allocations: 330.8 kB / 352.2 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002595/0.4127, allocations: 0.4969 MB / 352.7 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002685/0.4154, allocations: 0.5528 MB / 353.2 MB, free: 172 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/0.4179, allocations: 438 kB / 353.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.418, allocations: 0 / 353.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005446/0.4235, allocations: 1.057 MB / 354.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.4235, allocations: 4 kB / 354.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.4236, allocations: 0 / 354.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.4236, allocations: 4 kB / 354.7 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.4256, allocations: 183.8 kB / 354.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/0.4256, allocations: 7.938 kB / 354.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.427, allocations: 107.9 kB / 355 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.089e-05/0.4271, allocations: 16 kB / 355 MB, free: 14.36 MB / 298.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0003628/0.4275, allocations: 161.7 kB / 355.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.4277, allocations: 31.72 kB / 355.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.4278, allocations: 51.3 kB / 355.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.4278, allocations: 4 kB / 355.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.4279, allocations: 0 / 355.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.4279, allocations: 3.984 kB / 355.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007658/0.4356, allocations: 1.993 MB / 357.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.4356, allocations: 8 kB / 357.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.437, allocations: 168.2 kB / 357.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.182e-05/0.437, allocations: 12 kB / 357.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.346e-05/0.4371, allocations: 23.94 kB / 357.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.97e-05/0.4371, allocations: 15.92 kB / 357.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/0.4372, allocations: 15.94 kB / 357.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005722/0.4429, allocations: 1.74 MB / 359.2 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.4432, allocations: 148.8 kB / 359.4 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.4434, allocations: 20 kB / 359.4 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009651/0.4444, allocations: 91.91 kB / 359.5 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.4447, allocations: 95.67 kB / 359.6 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.665e-05/0.4448, allocations: 28 kB / 359.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002739/0.445, allocations: 144.3 kB / 359.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4451, allocations: 3.938 kB / 359.8 MB, free: 9.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007235/0.4458, allocations: 100 kB / 359.9 MB, free: 8.992 MB / 298.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.000221/0.446, allocations: 127.7 kB / 360 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004573/0.4506, allocations: 0.9195 MB / 360.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/0.4507, allocations: 8.188 kB / 360.9 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.4526, allocations: 357.6 kB / 361.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.4533, allocations: 47.97 kB / 361.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.4571, allocations: 1.186 MB / 362.5 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.4577, allocations: 0.7843 MB / 363.3 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000497/0.4582, allocations: 39.44 kB / 363.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of SimCode: time 1.453e-06/0.4582, allocations: 3.938 kB / 363.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of Templates: time 0.01389/0.4721, allocations: 5.38 MB / 368.7 MB, free: 15.97 MB / 314.7 MB