Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.017/1.017, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.252e-05, allocations: 4 kB / 151.5 MB, free: 15.52 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1845, allocations: 25.15 MB / 176.7 MB, free: 32 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08446/0.269, allocations: 46.6 MB / 223.3 MB, free: 2.836 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.2694, allocations: 75.94 kB / 223.3 MB, free: 2.762 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3556/0.625, allocations: 48.2 MB / 271.5 MB, free: 53.18 MB / 218.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.625, allocations: 0 / 271.5 MB, free: 53.18 MB / 218.7 MB Notification: Performance of Transformations before backend: time 8.194e-05/0.6251, allocations: 33.25 kB / 271.6 MB, free: 53.18 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.004305/0.6294, allocations: 1.491 MB / 273.1 MB, free: 52.45 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.6295, allocations: 10.88 kB / 273.1 MB, free: 52.45 MB / 218.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003959/0.6299, allocations: 225.1 kB / 273.3 MB, free: 52.4 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.6303, allocations: 177.2 kB / 273.5 MB, free: 52.32 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.6318, allocations: 0.7796 MB / 274.2 MB, free: 52.03 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003967/0.6322, allocations: 250.9 kB / 274.5 MB, free: 51.93 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003458/0.6326, allocations: 153.6 kB / 274.6 MB, free: 51.93 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003799/0.6364, allocations: 1.573 MB / 276.2 MB, free: 51.82 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.526e-05/0.6365, allocations: 6.656 kB / 276.2 MB, free: 51.82 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.6368, allocations: 61.72 kB / 276.3 MB, free: 51.82 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.058e-05/0.6368, allocations: 35.03 kB / 276.3 MB, free: 51.82 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003997/0.6408, allocations: 1.461 MB / 277.8 MB, free: 51.81 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01683/0.6577, allocations: 6.103 MB / 283.9 MB, free: 49.42 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003619/0.6614, allocations: 0.9009 MB / 284.8 MB, free: 48.96 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.6633, allocations: 0.4948 MB / 285.3 MB, free: 48.47 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000251/0.6636, allocations: 93.89 kB / 285.4 MB, free: 48.36 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002032/0.6656, allocations: 0.6185 MB / 286 MB, free: 47.79 MB / 218.7 MB Notification: Performance of pre-optimization done (n=89): time 3.827e-06/0.6657, allocations: 3.719 kB / 286 MB, free: 47.79 MB / 218.7 MB Notification: Performance of matching and sorting (n=98): time 0.009094/0.6748, allocations: 3.19 MB / 289.2 MB, free: 44.7 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.095e-05/0.6749, allocations: 295.5 kB / 289.5 MB, free: 44.34 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.6763, allocations: 0.6969 MB / 290.2 MB, free: 43.66 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003025/0.6766, allocations: 49.7 kB / 290.2 MB, free: 43.61 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005437/0.6772, allocations: 0.6644 MB / 290.9 MB, free: 42.94 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003954/0.6776, allocations: 335 kB / 291.2 MB, free: 42.61 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.6777, allocations: 28 kB / 291.2 MB, free: 42.59 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.6778, allocations: 357.9 kB / 291.6 MB, free: 42.23 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.6792, allocations: 0.4908 MB / 292.1 MB, free: 41.74 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.6807, allocations: 0.7888 MB / 292.9 MB, free: 40.84 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.682, allocations: 0.508 MB / 293.4 MB, free: 40.33 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.682, allocations: 4 kB / 293.4 MB, free: 40.33 MB / 218.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.00349/0.6855, allocations: 1.375 MB / 294.7 MB, free: 38.97 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.6856, allocations: 8 kB / 294.7 MB, free: 38.96 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.6856, allocations: 9.688 kB / 294.8 MB, free: 38.95 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005611/0.6862, allocations: 180.6 kB / 294.9 MB, free: 38.78 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/0.6887, allocations: 317.1 kB / 295.2 MB, free: 38.48 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/0.693, allocations: 4.465 MB / 299.7 MB, free: 33.62 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/0.6955, allocations: 183.9 kB / 299.9 MB, free: 33.45 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/0.6957, allocations: 52 kB / 299.9 MB, free: 33.39 MB / 218.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 (146): * Single equations (assignments): 143 * 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.0003872/0.6961, allocations: 186.9 kB / 300.1 MB, free: 33.2 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.6964, allocations: 98.83 kB / 300.2 MB, free: 33.11 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.6996, allocations: 1.152 MB / 301.4 MB, free: 31.95 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.6996, allocations: 12 kB / 301.4 MB, free: 31.94 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.6996, allocations: 0 / 301.4 MB, free: 31.94 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.001e-05/0.6997, allocations: 7.984 kB / 301.4 MB, free: 31.93 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008967/0.7087, allocations: 3.354 MB / 304.7 MB, free: 28.48 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.7087, allocations: 4 kB / 304.7 MB, free: 28.48 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002039/0.7108, allocations: 236.2 kB / 305 MB, free: 28.25 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.7118, allocations: 472.4 kB / 305.4 MB, free: 27.82 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.7121, allocations: 27.98 kB / 305.5 MB, free: 27.79 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001934/0.714, allocations: 2.157 MB / 307.6 MB, free: 25.48 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/0.7141, allocations: 14.09 kB / 307.6 MB, free: 25.47 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004511/0.7186, allocations: 2.072 MB / 309.7 MB, free: 23.23 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009093/0.7195, allocations: 307.8 kB / 310 MB, free: 22.91 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005012/0.7201, allocations: 40 kB / 310 MB, free: 22.88 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/0.722, allocations: 147.9 kB / 310.2 MB, free: 22.73 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004844/0.7225, allocations: 152.4 kB / 310.3 MB, free: 22.58 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.7226, allocations: 39.98 kB / 310.4 MB, free: 22.54 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0009847/0.7236, allocations: 0.5148 MB / 310.9 MB, free: 22.03 MB / 218.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7237, allocations: 0 / 310.9 MB, free: 22.03 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001617/0.7253, allocations: 315.9 kB / 311.2 MB, free: 21.72 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (90): * Single equations (assignments): 88 * 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.004733/0.73, allocations: 3.733 MB / 314.9 MB, free: 17.85 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003205/0.7333, allocations: 1.425 MB / 316.4 MB, free: 16.41 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.7333, allocations: 0 / 316.4 MB, free: 16.41 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/0.735, allocations: 0.6822 MB / 317 MB, free: 15.72 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.737, allocations: 204.9 kB / 317.2 MB, free: 15.53 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.7496, allocations: 2.409 MB / 319.7 MB, free: 13.07 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007478/0.7504, allocations: 1.159 MB / 320.8 MB, free: 11.88 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/0.7518, allocations: 499.3 kB / 321.3 MB, free: 11.4 MB / 218.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7519, allocations: 0 / 321.3 MB, free: 11.4 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.426/4.178, allocations: 37.07 MB / 358.4 MB, free: 60.15 MB / 234.7 MB