Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.209/2.209, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.599e-05, allocations: 3.984 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.42 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.579, allocations: 96.72 MB / 439.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5793, allocations: 86.34 kB / 439.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1531/0.7325, allocations: 38.93 MB / 478.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.7326, allocations: 0 / 478.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000118/0.7328, allocations: 32 kB / 478.4 MB, free: 11.18 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.005458/0.7382, allocations: 1.515 MB / 479.9 MB, free: 9.613 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.7383, allocations: 12.03 kB / 479.9 MB, free: 9.602 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005748/0.7389, allocations: 223.8 kB / 480.2 MB, free: 9.371 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006034/0.7395, allocations: 181.9 kB / 480.3 MB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.7414, allocations: 0.7867 MB / 481.1 MB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004299/0.7419, allocations: 244.1 kB / 481.4 MB, free: 8.105 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004188/0.7423, allocations: 155.9 kB / 481.5 MB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004799/0.7471, allocations: 1.548 MB / 483.1 MB, free: 6.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.931e-05/0.7472, allocations: 11.89 kB / 483.1 MB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/0.7475, allocations: 64 kB / 483.1 MB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.736e-05/0.7476, allocations: 36 kB / 483.2 MB, free: 6.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004574/0.7522, allocations: 1.357 MB / 484.5 MB, free: 4.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01639/0.7686, allocations: 6.055 MB / 490.6 MB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.771, allocations: 0.818 MB / 491.4 MB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.7723, allocations: 480.6 kB / 491.9 MB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.7724, allocations: 20.77 kB / 491.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.774, allocations: 0.5931 MB / 492.5 MB, free: 12.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 6.983e-06/0.774, allocations: 0 / 492.5 MB, free: 12.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=123): time 0.02196/0.7959, allocations: 5.568 MB / 498.1 MB, free: 6.996 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/0.7962, allocations: 299.7 kB / 498.4 MB, free: 6.637 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.7978, allocations: 0.6833 MB / 499 MB, free: 5.945 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000268/0.798, allocations: 53.7 kB / 499.1 MB, free: 5.887 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.7988, allocations: 0.6767 MB / 499.8 MB, free: 5.199 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005736/0.7994, allocations: 417.9 kB / 0.4885 GB, free: 4.785 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.7996, allocations: 32 kB / 0.4885 GB, free: 4.754 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.7998, allocations: 358.8 kB / 0.4888 GB, free: 4.395 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.8017, allocations: 0.6445 MB / 0.4895 GB, free: 3.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/0.804, allocations: 0.9432 MB / 0.4904 GB, free: 2.699 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.8058, allocations: 0.6357 MB / 0.491 GB, free: 2.062 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.8059, allocations: 0 / 0.491 GB, free: 2.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004902/0.8108, allocations: 1.67 MB / 0.4926 GB, free: 384 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.8108, allocations: 8 kB / 0.4926 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/0.8109, allocations: 8.656 kB / 0.4926 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006353/0.8115, allocations: 186.4 kB / 0.4928 GB, free: 172 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003462/0.815, allocations: 371.5 kB / 0.4932 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00572/0.8208, allocations: 4.44 MB / 0.4975 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003026/0.8238, allocations: 207.9 kB / 0.4977 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/0.8241, allocations: 56 kB / 0.4978 GB, free: 10.7 MB / 426.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): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005534/0.8246, allocations: 187.1 kB / 0.4979 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.8249, allocations: 110.7 kB / 0.498 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0045/0.8295, allocations: 1.495 MB / 0.4995 GB, free: 8.887 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/0.8295, allocations: 15.94 kB / 0.4995 GB, free: 8.871 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.8295, allocations: 7.953 kB / 0.4995 GB, free: 8.863 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.8296, allocations: 7.984 kB / 0.4995 GB, free: 8.855 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.8418, allocations: 4.21 MB / 0.5036 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.8418, allocations: 11.98 kB / 0.5037 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/0.8442, allocations: 284.4 kB / 0.5039 GB, free: 4.172 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009514/0.8451, allocations: 325.5 kB / 0.5042 GB, free: 3.848 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/0.8453, allocations: 43.98 kB / 0.5043 GB, free: 3.805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003353/0.8487, allocations: 2.087 MB / 0.5063 GB, free: 1.562 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.983e-05/0.8488, allocations: 15.94 kB / 0.5063 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006263/0.8551, allocations: 2.561 MB / 0.5088 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009136/0.856, allocations: 331.6 kB / 0.5092 GB, free: 14.26 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.8563, allocations: 51.95 kB / 0.5092 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/0.8583, allocations: 159.9 kB / 0.5094 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005937/0.859, allocations: 188.3 kB / 0.5095 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.8591, allocations: 47.98 kB / 0.5096 GB, free: 13.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.8603, allocations: 0.5109 MB / 0.5101 GB, free: 13.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8604, allocations: 0 / 0.5101 GB, free: 13.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002059/0.8624, allocations: 352 kB / 0.5104 GB, free: 12.97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (114): * Single equations (assignments): 112 * 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.007588/0.87, allocations: 5.882 MB / 0.5162 GB, free: 6.785 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004598/0.8747, allocations: 1.712 MB / 0.5178 GB, free: 5.039 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/0.8747, allocations: 8.062 kB / 0.5178 GB, free: 5.031 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002666/0.8774, allocations: 0.8734 MB / 0.5187 GB, free: 4.152 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.8791, allocations: 163.2 kB / 0.5188 GB, free: 3.988 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009324/0.8884, allocations: 2.74 MB / 0.5215 GB, free: 1.078 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3243/1.213, allocations: 1.201 MB / 0.5227 GB, free: 127.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/1.215, allocations: 0.5315 MB / 0.5232 GB, free: 127.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/1.215, allocations: 0 / 0.5232 GB, free: 127.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.367/4.582, allocations: 40.54 MB / 0.5628 GB, free: 119.7 MB / 442.7 MB