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.582/1.582, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.478e-05, allocations: 7.938 kB / 225 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2113, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.3362, allocations: 83.68 MB / 347.4 MB, free: 6.059 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.3365, allocations: 79.95 kB / 347.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3123/0.6488, allocations: 37.99 MB / 385.5 MB, free: 80.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.278e-06/0.6489, allocations: 0 / 385.5 MB, free: 80.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.626e-05/0.649, allocations: 34.97 kB / 385.6 MB, free: 80.17 MB / 314.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.003254/0.6522, allocations: 1.513 MB / 387.1 MB, free: 79.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.6523, allocations: 9.906 kB / 387.1 MB, free: 79.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005623/0.6529, allocations: 184.6 kB / 387.3 MB, free: 79.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.6544, allocations: 0.7956 MB / 388.1 MB, free: 79.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/0.6547, allocations: 240.9 kB / 388.3 MB, free: 78.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/0.655, allocations: 158.5 kB / 388.4 MB, free: 78.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003551/0.6586, allocations: 1.571 MB / 390 MB, free: 78.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.881e-05/0.6587, allocations: 11.59 kB / 390 MB, free: 78.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.6589, allocations: 67.5 kB / 390.1 MB, free: 78.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.943e-05/0.6589, allocations: 38.5 kB / 390.1 MB, free: 78.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003355/0.6623, allocations: 1.405 MB / 391.5 MB, free: 78.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.6743, allocations: 6.085 MB / 397.6 MB, free: 74.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.6762, allocations: 0.8813 MB / 398.5 MB, free: 73.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009478/0.6772, allocations: 488.7 kB / 399 MB, free: 72.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.6773, allocations: 8.781 kB / 399 MB, free: 72.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.6784, allocations: 0.5981 MB / 399.6 MB, free: 72.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 4.367e-06/0.6784, allocations: 0 / 399.6 MB, free: 72.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.0151/0.6936, allocations: 5.648 MB / 405.2 MB, free: 66.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.6937, allocations: 295.7 kB / 405.5 MB, free: 66.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.6949, allocations: 0.7029 MB / 406.2 MB, free: 65.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.6952, allocations: 57.69 kB / 406.3 MB, free: 65.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000465/0.6957, allocations: 0.676 MB / 407 MB, free: 64.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/0.696, allocations: 409.4 kB / 407.4 MB, free: 64.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.6962, allocations: 32.03 kB / 407.4 MB, free: 64.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.6963, allocations: 370.7 kB / 407.7 MB, free: 63.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.6978, allocations: 0.664 MB / 408.4 MB, free: 63.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.6994, allocations: 0.9822 MB / 409.4 MB, free: 62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.7009, allocations: 0.6532 MB / 410 MB, free: 61.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.7009, allocations: 8 kB / 410.1 MB, free: 61.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003844/0.7048, allocations: 1.721 MB / 411.8 MB, free: 59.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.7048, allocations: 8 kB / 411.8 MB, free: 59.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.7049, allocations: 11.94 kB / 411.8 MB, free: 59.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.7054, allocations: 181.7 kB / 412 MB, free: 59.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.7075, allocations: 367.5 kB / 412.3 MB, free: 59.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/0.7113, allocations: 4.462 MB / 416.8 MB, free: 54.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/0.7133, allocations: 207.7 kB / 417 MB, free: 53.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.7135, allocations: 55.98 kB / 417.1 MB, free: 53.92 MB / 314.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: 13 (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.motion_ref,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 (169): * Single equations (assignments): 166 * 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.0003833/0.7139, allocations: 194.9 kB / 417.2 MB, free: 53.72 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/0.7142, allocations: 106.7 kB / 417.3 MB, free: 53.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.7145, allocations: 134 kB / 417.5 MB, free: 53.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.7145, allocations: 12 kB / 417.5 MB, free: 53.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.7145, allocations: 6.688 kB / 417.5 MB, free: 53.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.7146, allocations: 3.984 kB / 417.5 MB, free: 53.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008654/0.7232, allocations: 4.247 MB / 421.7 MB, free: 49.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/0.7233, allocations: 11.94 kB / 421.8 MB, free: 49.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.7247, allocations: 280 kB / 422 MB, free: 48.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008651/0.7256, allocations: 488.9 kB / 422.5 MB, free: 48.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.7257, allocations: 39.98 kB / 422.5 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.7274, allocations: 2.165 MB / 424.7 MB, free: 45.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.916e-06/0.7275, allocations: 11.94 kB / 424.7 MB, free: 45.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004028/0.7315, allocations: 2.606 MB / 427.3 MB, free: 42.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007463/0.7323, allocations: 331.6 kB / 427.7 MB, free: 42.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.7326, allocations: 47.98 kB / 427.7 MB, free: 42.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.7339, allocations: 155.9 kB / 427.9 MB, free: 42.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004254/0.7343, allocations: 188.3 kB / 428 MB, free: 42.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.7345, allocations: 47.98 kB / 428.1 MB, free: 42.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008928/0.7354, allocations: 0.5226 MB / 428.6 MB, free: 41.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.8e-07/0.7354, allocations: 0 / 428.6 MB, free: 41.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001656/0.7371, allocations: 352 kB / 429 MB, free: 41.34 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.0003635/0.7374, allocations: 193.3 kB / 429.1 MB, free: 41.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.7407, allocations: 1.706 MB / 430.8 MB, free: 39.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.7408, allocations: 5.812 kB / 430.9 MB, free: 39.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002/0.7428, allocations: 0.8776 MB / 431.7 MB, free: 38.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.744, allocations: 169.8 kB / 431.9 MB, free: 38.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005772/0.7498, allocations: 2.492 MB / 434.4 MB, free: 35.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008338/0.7507, allocations: 1.21 MB / 435.6 MB, free: 34.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007141/0.7514, allocations: 87.42 kB / 435.7 MB, free: 34.42 MB / 314.7 MB Notification: Performance of SimCode: time 2.079e-06/0.7515, allocations: 0 / 435.7 MB, free: 34.42 MB / 314.7 MB Notification: Performance of Templates: time 0.04066/0.7921, allocations: 33.68 MB / 469.4 MB, free: 0.7734 MB / 314.7 MB