Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.707/1.707, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.543e-05, allocations: 8 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.0983, allocations: 38.77 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01584/0.1142, allocations: 7.183 MB / 274.1 MB, free: 9.902 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007428/0.1217, allocations: 2.065 MB / 276.2 MB, free: 7.832 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.1236, allocations: 51.88 kB / 276.2 MB, free: 7.781 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.1246, allocations: 230.4 kB / 276.4 MB, free: 7.555 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002502/0.1271, allocations: 482.5 kB / 276.9 MB, free: 7.082 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001697/0.1289, allocations: 343.5 kB / 277.2 MB, free: 6.746 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003633/0.1325, allocations: 1.085 MB / 278.3 MB, free: 5.66 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001841/0.1344, allocations: 0.6171 MB / 278.9 MB, free: 5.035 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.1359, allocations: 0.4986 MB / 279.4 MB, free: 4.535 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.1374, allocations: 0.5682 MB / 280 MB, free: 3.965 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006904/0.1381, allocations: 143.9 kB / 280.1 MB, free: 3.824 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003387/0.1385, allocations: 67.94 kB / 280.2 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004697/0.1389, allocations: 259 kB / 280.5 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005186/0.1395, allocations: 132 kB / 280.6 MB, free: 3.375 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00434/0.1438, allocations: 2.664 MB / 283.3 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1439, allocations: 0 / 283.3 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.923e-06/0.1439, allocations: 0 / 283.3 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.1441, allocations: 3.938 kB / 283.3 MB, free: 0.6992 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.005793/0.1499, allocations: 1.527 MB / 284.8 MB, free: 15.11 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/0.1499, allocations: 8.031 kB / 284.8 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/0.1507, allocations: 177.9 kB / 285 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.1526, allocations: 0.7983 MB / 285.8 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004599/0.1531, allocations: 251.8 kB / 286 MB, free: 13.83 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004155/0.1535, allocations: 159.9 kB / 286.2 MB, free: 13.67 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005812/0.1594, allocations: 1.655 MB / 287.8 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.592e-05/0.1595, allocations: 7.906 kB / 287.8 MB, free: 11.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002534/0.1598, allocations: 64 kB / 287.9 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.726e-05/0.1598, allocations: 36 kB / 287.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006272/0.1661, allocations: 1.55 MB / 289.5 MB, free: 10.33 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.1821, allocations: 5.953 MB / 295.4 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.1857, allocations: 0.9603 MB / 296.4 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001407/0.1859, allocations: 13 kB / 296.4 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002184/0.1881, allocations: 0.6609 MB / 297.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of pre-optimization done (n=90): time 4.068e-06/0.1882, allocations: 0 / 297.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.2901/0.4782, allocations: 9.906 MB / 307 MB, free: 27.08 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.4784, allocations: 299.6 kB / 307.3 MB, free: 26.74 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.4801, allocations: 0.7 MB / 308 MB, free: 26.42 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003435/0.4805, allocations: 54.84 kB / 308 MB, free: 26.37 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005995/0.4811, allocations: 0.6788 MB / 308.7 MB, free: 25.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006042/0.4817, allocations: 407.5 kB / 309.1 MB, free: 25.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.4819, allocations: 26.72 kB / 309.1 MB, free: 25.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.482, allocations: 362.9 kB / 309.5 MB, free: 25.14 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003576/0.4856, allocations: 0.8341 MB / 310.3 MB, free: 24.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003974/0.4896, allocations: 1.146 MB / 311.5 MB, free: 24.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003512/0.4932, allocations: 0.817 MB / 312.3 MB, free: 23.79 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.951e-05/0.4933, allocations: 2 kB / 312.3 MB, free: 23.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008453/0.5017, allocations: 2.072 MB / 314.3 MB, free: 22.95 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.5018, allocations: 7.906 kB / 314.4 MB, free: 22.95 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.5018, allocations: 7.906 kB / 314.4 MB, free: 22.95 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005957/0.5024, allocations: 189.7 kB / 314.5 MB, free: 22.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003225/0.5057, allocations: 367.1 kB / 314.9 MB, free: 22.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004713/0.5105, allocations: 4.488 MB / 319.4 MB, free: 18.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002977/0.5135, allocations: 211.1 kB / 319.6 MB, free: 18.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/0.5139, allocations: 48.34 kB / 319.6 MB, free: 18.37 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001185/0.5151, allocations: 387.8 kB / 320 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/0.5154, allocations: 99.91 kB / 320.1 MB, free: 18.02 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003421/0.5158, allocations: 132.5 kB / 320.3 MB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.5158, allocations: 13.52 kB / 320.3 MB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.62e-05/0.5158, allocations: 7.875 kB / 320.3 MB, free: 17.9 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.5159, allocations: 7.969 kB / 320.3 MB, free: 17.89 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.529, allocations: 4.608 MB / 324.9 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.519e-05/0.5291, allocations: 20.02 kB / 324.9 MB, free: 13.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/0.5314, allocations: 283.6 kB / 325.2 MB, free: 13.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007523/0.5322, allocations: 286.5 kB / 325.5 MB, free: 13.07 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.5324, allocations: 35.98 kB / 325.5 MB, free: 13.03 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.5344, allocations: 2.159 MB / 327.7 MB, free: 10.71 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/0.5345, allocations: 11.94 kB / 327.7 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008556/0.543, allocations: 3.164 MB / 330.8 MB, free: 7.152 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008695/0.544, allocations: 315.7 kB / 331.1 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003164/0.5443, allocations: 52 kB / 331.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001929/0.5462, allocations: 175.8 kB / 331.4 MB, free: 6.602 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004926/0.5467, allocations: 176.2 kB / 331.5 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.5469, allocations: 47.98 kB / 331.6 MB, free: 6.383 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.548, allocations: 0.5303 MB / 332.1 MB, free: 5.859 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.548, allocations: 5.141 kB / 332.1 MB, free: 5.859 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001969/0.55, allocations: 347.6 kB / 332.5 MB, free: 5.523 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004716/0.5505, allocations: 178 kB / 332.6 MB, free: 5.344 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.007074/0.5575, allocations: 2.078 MB / 334.7 MB, free: 3.23 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/0.5576, allocations: 4.188 kB / 334.7 MB, free: 3.227 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003701/0.5613, allocations: 1.059 MB / 335.8 MB, free: 2.152 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.5632, allocations: 162.9 kB / 335.9 MB, free: 1.988 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.5735, allocations: 3.753 MB / 339.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/0.5749, allocations: 1.213 MB / 340.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009476/0.5759, allocations: 87.14 kB / 341 MB, free: 12.75 MB / 266.7 MB Notification: Performance of SimCode: time 1.793e-06/0.576, allocations: 0 / 341 MB, free: 12.75 MB / 266.7 MB Notification: Performance of Templates: time 0.06557/0.6415, allocations: 33.74 MB / 374.7 MB, free: 11.01 MB / 298.7 MB