Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.913e-05, allocations: 7.984 kB / 292.8 MB, free: 8.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1305, allocations: 50.42 MB / 343.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4902/0.6207, allocations: 96.69 MB / 439.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/0.6211, allocations: 93.36 kB / 440 MB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1643/0.7855, allocations: 38.94 MB / 478.9 MB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.7855, allocations: 0 / 478.9 MB, free: 10.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001568/0.7857, allocations: 28 kB / 478.9 MB, free: 10.86 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.006414/0.7921, allocations: 1.515 MB / 480.4 MB, free: 9.297 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.7922, allocations: 12.03 kB / 480.4 MB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008867/0.7931, allocations: 227.8 kB / 480.7 MB, free: 9.051 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007287/0.7939, allocations: 181.9 kB / 480.8 MB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.7964, allocations: 0.7945 MB / 481.6 MB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/0.797, allocations: 236.1 kB / 481.9 MB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006971/0.7978, allocations: 159.9 kB / 482 MB, free: 7.629 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005996/0.8038, allocations: 1.552 MB / 483.6 MB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.804, allocations: 11.89 kB / 483.6 MB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.8043, allocations: 63.94 kB / 483.6 MB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.174e-05/0.8044, allocations: 40 kB / 483.7 MB, free: 5.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005617/0.81, allocations: 1.353 MB / 485 MB, free: 4.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01987/0.8299, allocations: 6.047 MB / 491.1 MB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002805/0.8328, allocations: 0.8219 MB / 491.9 MB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.8344, allocations: 488.6 kB / 492.4 MB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001348/0.8346, allocations: 8.781 kB / 492.4 MB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/0.8364, allocations: 0.5931 MB / 493 MB, free: 12.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 5.43e-06/0.8365, allocations: 4 kB / 493 MB, free: 12.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=123): time 0.02413/0.8606, allocations: 5.568 MB / 498.6 MB, free: 6.668 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002096/0.8609, allocations: 303.8 kB / 498.9 MB, free: 6.305 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.8627, allocations: 0.6755 MB / 499.5 MB, free: 5.621 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004149/0.8632, allocations: 53.7 kB / 499.6 MB, free: 5.562 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008874/0.8641, allocations: 0.6547 MB / 0.4885 GB, free: 4.895 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008134/0.8649, allocations: 417.9 kB / 0.4889 GB, free: 4.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.8652, allocations: 31.98 kB / 0.4889 GB, free: 4.449 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003669/0.8656, allocations: 402.7 kB / 0.4893 GB, free: 4.047 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/0.8678, allocations: 0.6445 MB / 0.49 GB, free: 3.402 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002708/0.8706, allocations: 0.9471 MB / 0.4909 GB, free: 2.348 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/0.8731, allocations: 0.6358 MB / 0.4915 GB, free: 1.711 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.437e-05/0.8731, allocations: 0 / 0.4915 GB, free: 1.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006221/0.8794, allocations: 1.721 MB / 0.4932 GB, free: 15.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.8795, allocations: 8 kB / 0.4932 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.77e-05/0.8795, allocations: 4 kB / 0.4932 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006897/0.8802, allocations: 186.4 kB / 0.4934 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003623/0.8839, allocations: 363.5 kB / 0.4937 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006233/0.8901, allocations: 4.444 MB / 0.4981 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/0.8936, allocations: 207.8 kB / 0.4983 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004426/0.8941, allocations: 59.92 kB / 0.4983 GB, free: 10.3 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.0006023/0.8947, allocations: 195.1 kB / 0.4985 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004176/0.8951, allocations: 98.78 kB / 0.4986 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005347/0.9005, allocations: 1.499 MB / 0.5001 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.837e-05/0.9006, allocations: 16 kB / 0.5001 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.9006, allocations: 7.891 kB / 0.5001 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.815e-05/0.9006, allocations: 7.969 kB / 0.5001 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/0.9156, allocations: 4.21 MB / 0.5042 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/0.9157, allocations: 12 kB / 0.5042 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002577/0.9183, allocations: 279.7 kB / 0.5045 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.9195, allocations: 325.5 kB / 0.5048 GB, free: 3.457 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003228/0.9199, allocations: 47.98 kB / 0.5048 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002794/0.9227, allocations: 2.091 MB / 0.5069 GB, free: 1.164 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-05/0.9228, allocations: 11.94 kB / 0.5069 GB, free: 1.152 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/0.9298, allocations: 2.557 MB / 0.5094 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.9312, allocations: 335.7 kB / 0.5097 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005051/0.9318, allocations: 47.94 kB / 0.5098 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002465/0.9342, allocations: 159.9 kB / 0.5099 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008601/0.9352, allocations: 184.3 kB / 0.5101 GB, free: 13.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/0.9354, allocations: 51.98 kB / 0.5101 GB, free: 13.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00137/0.9368, allocations: 0.5109 MB / 0.5106 GB, free: 12.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.9369, allocations: 4 kB / 0.5106 GB, free: 12.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002698/0.9396, allocations: 348 kB / 0.511 GB, free: 12.58 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.009013/0.9486, allocations: 5.874 MB / 0.5167 GB, free: 6.402 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005488/0.9542, allocations: 1.722 MB / 0.5184 GB, free: 4.645 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.622e-05/0.9543, allocations: 1.812 kB / 0.5184 GB, free: 4.645 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003381/0.9577, allocations: 0.901 MB / 0.5193 GB, free: 3.738 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.9598, allocations: 170.8 kB / 0.5194 GB, free: 3.566 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.9709, allocations: 2.684 MB / 0.522 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.312/1.283, allocations: 1.201 MB / 0.5232 GB, free: 126.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001871/1.285, allocations: 159.2 kB / 0.5234 GB, free: 126.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/1.287, allocations: 0.5254 MB / 0.5239 GB, free: 126.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.104e-06/1.287, allocations: 0 / 0.5239 GB, free: 126.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/1.395, allocations: 27.22 MB / 0.5505 GB, free: 125.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/1.395, allocations: 196.6 kB / 0.5506 GB, free: 125.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.564/4.959, allocations: 7.625 kB / 0.5507 GB, free: 125.4 MB / 442.7 MB