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.786/1.786, allocations: 171.2 MB / 183.3 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.162e-05/4.174e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2776, allocations: 38.77 MB / 263.9 MB, free: 9.812 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.4267, allocations: 83.67 MB / 347.5 MB, free: 6.016 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/0.4271, allocations: 87.94 kB / 347.6 MB, free: 5.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3689/0.796, allocations: 38 MB / 385.6 MB, free: 80.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.796, allocations: 4 kB / 385.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001265/0.7962, allocations: 33.44 kB / 385.7 MB, free: 80.21 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.005675/0.8019, allocations: 1.512 MB / 387.2 MB, free: 79.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.8019, allocations: 11.59 kB / 387.2 MB, free: 79.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007231/0.8027, allocations: 230.8 kB / 387.4 MB, free: 79.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006512/0.8033, allocations: 182.5 kB / 387.6 MB, free: 79.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.8055, allocations: 0.7905 MB / 388.4 MB, free: 79.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004252/0.806, allocations: 235.8 kB / 388.6 MB, free: 78.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005465/0.8066, allocations: 164 kB / 388.8 MB, free: 78.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004912/0.8115, allocations: 1.585 MB / 390.3 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-05/0.8117, allocations: 14.97 kB / 390.4 MB, free: 78.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.8119, allocations: 61.84 kB / 390.4 MB, free: 78.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.812, allocations: 38.03 kB / 390.5 MB, free: 78.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00465/0.8166, allocations: 1.428 MB / 391.9 MB, free: 77.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01683/0.8335, allocations: 6.085 MB / 398 MB, free: 73.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.8362, allocations: 0.8907 MB / 398.9 MB, free: 72.8 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.8376, allocations: 492.6 kB / 399.3 MB, free: 72.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.8378, allocations: 9.812 kB / 399.4 MB, free: 72.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001415/0.8392, allocations: 0.6025 MB / 400 MB, free: 71.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 3.847e-06/0.8392, allocations: 0 / 400 MB, free: 71.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.02126/0.8605, allocations: 5.654 MB / 405.6 MB, free: 65.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.8606, allocations: 295.7 kB / 405.9 MB, free: 65.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.8621, allocations: 0.7029 MB / 406.6 MB, free: 64.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003792/0.8625, allocations: 57.69 kB / 406.7 MB, free: 64.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005774/0.8631, allocations: 0.6619 MB / 407.3 MB, free: 64.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/0.8637, allocations: 402 kB / 407.7 MB, free: 63.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.8639, allocations: 32 kB / 407.7 MB, free: 63.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.8641, allocations: 406.7 kB / 408.1 MB, free: 63.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/0.8659, allocations: 0.6757 MB / 408.8 MB, free: 62.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.8682, allocations: 0.9822 MB / 409.8 MB, free: 61.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.8701, allocations: 0.661 MB / 410.5 MB, free: 60.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.8701, allocations: 4 kB / 410.5 MB, free: 60.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00503/0.8751, allocations: 1.787 MB / 412.2 MB, free: 59.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.8752, allocations: 8.75 kB / 412.3 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.8753, allocations: 11.95 kB / 412.3 MB, free: 59.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005898/0.8759, allocations: 181.4 kB / 412.4 MB, free: 58.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003477/0.8794, allocations: 371.5 kB / 412.8 MB, free: 58.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.884, allocations: 4.47 MB / 417.3 MB, free: 53.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/0.8872, allocations: 207.9 kB / 417.5 MB, free: 53.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004798/0.8877, allocations: 52 kB / 417.5 MB, free: 53.44 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.0005757/0.8883, allocations: 194.8 kB / 417.7 MB, free: 53.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/0.8888, allocations: 106.8 kB / 417.8 MB, free: 53.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.8892, allocations: 130 kB / 418 MB, free: 53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.8892, allocations: 15.94 kB / 418 MB, free: 52.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.8893, allocations: 8 kB / 418 MB, free: 52.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.8893, allocations: 7.969 kB / 418 MB, free: 52.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.9007, allocations: 4.269 MB / 422.3 MB, free: 48.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.9007, allocations: 8 kB / 422.3 MB, free: 48.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002158/0.9029, allocations: 276.4 kB / 422.5 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.904, allocations: 486.7 kB / 423 MB, free: 47.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001664/0.9042, allocations: 39.98 kB / 423 MB, free: 47.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.9061, allocations: 2.172 MB / 425.2 MB, free: 45.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.9061, allocations: 15.94 kB / 425.2 MB, free: 45.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004903/0.9111, allocations: 2.604 MB / 427.8 MB, free: 42.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008334/0.9119, allocations: 327.7 kB / 428.2 MB, free: 42.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.9122, allocations: 48 kB / 428.2 MB, free: 42.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/0.9141, allocations: 151.9 kB / 428.4 MB, free: 41.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005144/0.9147, allocations: 188.3 kB / 428.5 MB, free: 41.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.9148, allocations: 47.98 kB / 428.6 MB, free: 41.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.9158, allocations: 0.5226 MB / 429.1 MB, free: 41.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9158, allocations: 0 / 429.1 MB, free: 41.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002222/0.9181, allocations: 348 kB / 429.4 MB, free: 40.84 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.005589/0.9237, allocations: 5.802 MB / 435.2 MB, free: 34.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.9276, allocations: 1.748 MB / 437 MB, free: 32.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/0.9277, allocations: 4 kB / 437 MB, free: 32.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.9302, allocations: 0.9158 MB / 437.9 MB, free: 32.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.9318, allocations: 171.8 kB / 438.1 MB, free: 31.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008871/0.9407, allocations: 2.694 MB / 440.8 MB, free: 29.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008759/0.9416, allocations: 1.214 MB / 442 MB, free: 27.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001714/0.9434, allocations: 160.3 kB / 442.1 MB, free: 27.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/0.9449, allocations: 0.511 MB / 442.7 MB, free: 27.12 MB / 314.7 MB Notification: Performance of SimCode: time 1.272e-06/0.9449, allocations: 4 kB / 442.7 MB, free: 27.12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07886/1.024, allocations: 27.11 MB / 469.8 MB, free: 108 kB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/1.024, allocations: 202.9 kB / 470 MB, free: 15.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.606/4.63, allocations: 4 kB / 470 MB, free: 15.87 MB / 330.7 MB