Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.33e-05/4.342e-05, allocations: 7.984 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.434/0.5346, allocations: 88.91 MB / 388.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.535, allocations: 84.5 kB / 389 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1319/0.6669, allocations: 37.98 MB / 426.9 MB, free: 76 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.667, allocations: 3.938 kB / 426.9 MB, free: 72 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001063/0.6671, allocations: 33.75 kB / 427 MB, free: 68 kB / 314.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.005631/0.6728, allocations: 1.519 MB / 428.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.6728, allocations: 6.906 kB / 428.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007158/0.6736, allocations: 226.9 kB / 428.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006511/0.6742, allocations: 183 kB / 428.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.6763, allocations: 0.7839 MB / 429.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004218/0.6768, allocations: 242 kB / 429.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004681/0.6772, allocations: 161 kB / 430.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004926/0.6822, allocations: 1.547 MB / 431.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.6824, allocations: 15.11 kB / 431.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.6826, allocations: 62.44 kB / 431.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-05/0.6827, allocations: 41.16 kB / 431.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004802/0.6875, allocations: 1.35 MB / 433.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0177/0.7052, allocations: 6.05 MB / 439.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/0.7079, allocations: 0.8209 MB / 440 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.7095, allocations: 476.7 kB / 440.4 MB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.7096, allocations: 8.781 kB / 440.4 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001653/0.7113, allocations: 0.6048 MB / 441 MB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 4.429e-06/0.7114, allocations: 0 / 441 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.02378/0.7351, allocations: 5.566 MB / 446.6 MB, free: 2.762 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002071/0.7354, allocations: 295.7 kB / 446.9 MB, free: 2.406 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.7373, allocations: 0.6833 MB / 447.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003968/0.7377, allocations: 57.73 kB / 447.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007923/0.7385, allocations: 0.6685 MB / 448.3 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007537/0.7393, allocations: 421.5 kB / 448.7 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.7395, allocations: 28 kB / 448.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.7397, allocations: 362.7 kB / 449.1 MB, free: 188 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.7419, allocations: 0.6445 MB / 449.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/0.7447, allocations: 0.9546 MB / 450.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.7469, allocations: 0.6296 MB / 451.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.747, allocations: 4 kB / 451.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005574/0.7526, allocations: 1.667 MB / 453 MB, free: 12.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.7527, allocations: 8 kB / 453 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.831e-05/0.7527, allocations: 8 kB / 453 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006657/0.7534, allocations: 190.4 kB / 453.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.757, allocations: 367.5 kB / 453.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006025/0.7631, allocations: 4.441 MB / 458 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/0.7663, allocations: 211.9 kB / 458.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003922/0.7667, allocations: 55.94 kB / 458.3 MB, free: 6.488 MB / 346.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.0005579/0.7673, allocations: 199 kB / 458.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/0.7677, allocations: 106.7 kB / 458.6 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/0.7726, allocations: 1.487 MB / 460 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/0.7726, allocations: 12 kB / 460.1 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.7727, allocations: 4 kB / 460.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.181e-05/0.7727, allocations: 7.969 kB / 460.1 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.7862, allocations: 4.184 MB / 464.2 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/0.7863, allocations: 8 kB / 464.3 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/0.7888, allocations: 284 kB / 464.5 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.7899, allocations: 330.4 kB / 464.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002805/0.7902, allocations: 35.98 kB / 464.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.7929, allocations: 2.098 MB / 467 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.899e-05/0.7929, allocations: 15.94 kB / 467 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006167/0.7991, allocations: 2.529 MB / 469.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.8003, allocations: 331.7 kB / 469.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004662/0.8008, allocations: 47.98 kB / 469.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/0.8031, allocations: 155.9 kB / 470.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007569/0.804, allocations: 188.3 kB / 470.2 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.8041, allocations: 47.98 kB / 470.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001341/0.8055, allocations: 0.5148 MB / 470.8 MB, free: 9.203 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.8055, allocations: 0 / 470.8 MB, free: 9.203 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002478/0.808, allocations: 359.9 kB / 471.2 MB, free: 8.852 MB / 362.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.008188/0.8163, allocations: 5.843 MB / 477 MB, free: 2.711 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.8215, allocations: 1.715 MB / 478.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/0.8215, allocations: 4 kB / 478.7 MB, free: 0.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002987/0.8245, allocations: 0.8748 MB / 479.6 MB, free: 76 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.8265, allocations: 182.8 kB / 479.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.8371, allocations: 2.736 MB / 482.5 MB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.8385, allocations: 1.214 MB / 483.7 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/0.8404, allocations: 0.5188 MB / 484.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.114e-06/0.8404, allocations: 0 / 484.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.356/4.196, allocations: 40.55 MB / 0.5125 GB, free: 2.66 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat