Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.2 MB / 183.3 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.554e-05/3.588e-05, allocations: 4 kB / 225.1 MB, free: 2.223 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2668, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.4166, allocations: 83.68 MB / 347.6 MB, free: 5.992 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.417, allocations: 79.95 kB / 347.6 MB, free: 5.914 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3679/0.7849, allocations: 38 MB / 385.6 MB, free: 80.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.785, allocations: 0 / 385.6 MB, free: 80.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.7852, allocations: 36.25 kB / 385.7 MB, free: 80.13 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.005874/0.791, allocations: 1.517 MB / 387.2 MB, free: 79.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.7911, allocations: 10.44 kB / 387.2 MB, free: 79.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005841/0.7917, allocations: 218.1 kB / 387.4 MB, free: 79.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005877/0.7923, allocations: 187 kB / 387.6 MB, free: 79.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.794, allocations: 0.7955 MB / 388.4 MB, free: 78.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003622/0.7944, allocations: 238.1 kB / 388.6 MB, free: 78.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003541/0.7947, allocations: 160.5 kB / 388.8 MB, free: 78.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003981/0.7987, allocations: 1.567 MB / 390.4 MB, free: 78.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.156e-05/0.7988, allocations: 7.156 kB / 390.4 MB, free: 78.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002345/0.7991, allocations: 67.78 kB / 390.4 MB, free: 78.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.7991, allocations: 35.28 kB / 390.5 MB, free: 78.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003683/0.8028, allocations: 1.409 MB / 391.9 MB, free: 77.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01448/0.8173, allocations: 6.094 MB / 398 MB, free: 73.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/0.8197, allocations: 0.8707 MB / 398.8 MB, free: 72.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.8207, allocations: 492.3 kB / 399.3 MB, free: 72.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.44e-05/0.8209, allocations: 13.81 kB / 399.3 MB, free: 72.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.8221, allocations: 0.6008 MB / 399.9 MB, free: 71.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 3.938e-06/0.8222, allocations: 0 / 399.9 MB, free: 71.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01944/0.8416, allocations: 5.64 MB / 405.6 MB, free: 66.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/0.8418, allocations: 303.7 kB / 405.9 MB, free: 65.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.8432, allocations: 0.7068 MB / 406.6 MB, free: 64.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002781/0.8434, allocations: 53.7 kB / 406.6 MB, free: 64.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005638/0.844, allocations: 0.6545 MB / 407.3 MB, free: 64.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000431/0.8445, allocations: 413.6 kB / 407.7 MB, free: 63.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.8446, allocations: 28 kB / 407.7 MB, free: 63.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.8448, allocations: 410.7 kB / 408.1 MB, free: 63.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.8466, allocations: 0.664 MB / 408.8 MB, free: 62.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.8485, allocations: 0.9783 MB / 409.8 MB, free: 61.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.85, allocations: 0.6649 MB / 410.4 MB, free: 60.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.8501, allocations: 0 / 410.4 MB, free: 60.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004422/0.8545, allocations: 1.764 MB / 412.2 MB, free: 59.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.8546, allocations: 12 kB / 412.2 MB, free: 59.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.8546, allocations: 11.95 kB / 412.2 MB, free: 59.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.8552, allocations: 185.6 kB / 412.4 MB, free: 59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003218/0.8584, allocations: 371.5 kB / 412.8 MB, free: 58.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004334/0.8628, allocations: 4.465 MB / 417.2 MB, free: 53.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002998/0.8658, allocations: 199.9 kB / 417.4 MB, free: 53.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.8661, allocations: 55.98 kB / 417.5 MB, free: 53.52 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.0004825/0.8665, allocations: 190.9 kB / 417.7 MB, free: 53.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/0.8668, allocations: 102.8 kB / 417.8 MB, free: 53.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003595/0.8672, allocations: 141.9 kB / 417.9 MB, free: 53.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.8672, allocations: 12.14 kB / 417.9 MB, free: 53.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.8673, allocations: 0 / 417.9 MB, free: 53.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.8673, allocations: 11.97 kB / 417.9 MB, free: 53.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.8776, allocations: 4.25 MB / 422.2 MB, free: 48.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.8777, allocations: 8 kB / 422.2 MB, free: 48.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002216/0.8799, allocations: 279.7 kB / 422.4 MB, free: 48.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.881, allocations: 483.3 kB / 422.9 MB, free: 47.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.8812, allocations: 39.98 kB / 423 MB, free: 47.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.8831, allocations: 2.165 MB / 425.1 MB, free: 45.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.8831, allocations: 15.94 kB / 425.1 MB, free: 45.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004732/0.8878, allocations: 2.608 MB / 427.7 MB, free: 42.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008792/0.8888, allocations: 327.7 kB / 428.1 MB, free: 42.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.8891, allocations: 51.92 kB / 428.1 MB, free: 42.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/0.891, allocations: 151.9 kB / 428.3 MB, free: 42.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005014/0.8915, allocations: 188.3 kB / 428.5 MB, free: 41.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.8916, allocations: 51.92 kB / 428.5 MB, free: 41.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009912/0.8926, allocations: 0.5187 MB / 429 MB, free: 41.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.8927, allocations: 0 / 429 MB, free: 41.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001841/0.8945, allocations: 352 kB / 429.4 MB, free: 40.94 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.005437/0.9, allocations: 5.794 MB / 435.2 MB, free: 34.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004318/0.9043, allocations: 1.711 MB / 436.9 MB, free: 33.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/0.9044, allocations: 0 / 436.9 MB, free: 33.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.907, allocations: 0.8941 MB / 437.8 MB, free: 32.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.9086, allocations: 184.5 kB / 437.9 MB, free: 32.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008765/0.9174, allocations: 2.671 MB / 440.6 MB, free: 29.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008198/0.9183, allocations: 1.206 MB / 441.8 MB, free: 28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001545/0.9198, allocations: 164.3 kB / 442 MB, free: 27.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/0.9212, allocations: 0.5188 MB / 442.5 MB, free: 27.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9212, allocations: 0 / 442.5 MB, free: 27.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09537/1.017, allocations: 26.96 MB / 469.5 MB, free: 464 kB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002841/1.017, allocations: 205.4 kB / 469.7 MB, free: 224 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.506/4.523, allocations: 0 / 469.7 MB, free: 224 kB / 314.7 MB