Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.285e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2739, allocations: 38.77 MB / 263.9 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1515/0.4254, allocations: 83.67 MB / 347.5 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.4258, allocations: 87.94 kB / 347.6 MB, free: 5.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3949/0.8208, allocations: 38 MB / 385.6 MB, free: 80.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.8208, allocations: 2.906 kB / 385.6 MB, free: 80.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001067/0.8209, allocations: 32.16 kB / 385.7 MB, free: 80.23 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.005186/0.8261, allocations: 1.52 MB / 387.2 MB, free: 79.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.8262, allocations: 10.19 kB / 387.2 MB, free: 79.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006538/0.8269, allocations: 219.9 kB / 387.4 MB, free: 79.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006549/0.8276, allocations: 183.2 kB / 387.6 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.8293, allocations: 0.7971 MB / 388.4 MB, free: 79.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003768/0.8297, allocations: 240.4 kB / 388.6 MB, free: 78.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003666/0.8301, allocations: 159.5 kB / 388.8 MB, free: 78.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004269/0.8344, allocations: 1.565 MB / 390.3 MB, free: 78.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.177e-05/0.8345, allocations: 7.281 kB / 390.3 MB, free: 78.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.8348, allocations: 65.97 kB / 390.4 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/0.8348, allocations: 37.41 kB / 390.4 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004146/0.839, allocations: 1.411 MB / 391.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01449/0.8535, allocations: 6.089 MB / 397.9 MB, free: 73.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.8558, allocations: 0.8736 MB / 398.8 MB, free: 72.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.8569, allocations: 488.7 kB / 399.3 MB, free: 72.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.529e-05/0.857, allocations: 9.812 kB / 399.3 MB, free: 72.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.8582, allocations: 0.601 MB / 399.9 MB, free: 71.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 3.888e-06/0.8582, allocations: 0 / 399.9 MB, free: 71.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01872/0.877, allocations: 5.644 MB / 405.5 MB, free: 66.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.388e-05/0.8771, allocations: 295.7 kB / 405.8 MB, free: 65.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.8784, allocations: 0.7029 MB / 406.5 MB, free: 65.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.8785, allocations: 53.7 kB / 406.6 MB, free: 65.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004888/0.879, allocations: 0.6804 MB / 407.3 MB, free: 64.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.8795, allocations: 413.5 kB / 407.7 MB, free: 63.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.8796, allocations: 24 kB / 407.7 MB, free: 63.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.8798, allocations: 370.7 kB / 408.1 MB, free: 63.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.8814, allocations: 0.6679 MB / 408.7 MB, free: 62.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.8832, allocations: 0.9822 MB / 409.7 MB, free: 61.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.8848, allocations: 0.661 MB / 410.4 MB, free: 61.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.8848, allocations: 0 / 410.4 MB, free: 61.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00411/0.8889, allocations: 1.725 MB / 412.1 MB, free: 59.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.889, allocations: 11.25 kB / 412.1 MB, free: 59.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.889, allocations: 7.953 kB / 412.1 MB, free: 59.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005543/0.8896, allocations: 185.3 kB / 412.3 MB, free: 59.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/0.8927, allocations: 367.5 kB / 412.7 MB, free: 58.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.897, allocations: 4.462 MB / 417.1 MB, free: 53.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/0.9001, allocations: 211.9 kB / 417.3 MB, free: 53.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/0.9003, allocations: 55.98 kB / 417.4 MB, free: 53.7 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.0004689/0.9008, allocations: 191.1 kB / 417.6 MB, free: 53.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.901, allocations: 102.8 kB / 417.7 MB, free: 53.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003527/0.9014, allocations: 138 kB / 417.8 MB, free: 53.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.9014, allocations: 18.56 kB / 417.8 MB, free: 53.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.9015, allocations: 4 kB / 417.8 MB, free: 53.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.9015, allocations: 3.984 kB / 417.8 MB, free: 53.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.9118, allocations: 4.246 MB / 422.1 MB, free: 48.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.9119, allocations: 8 kB / 422.1 MB, free: 48.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/0.9141, allocations: 276.4 kB / 422.4 MB, free: 48.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.9152, allocations: 487.2 kB / 422.8 MB, free: 48.1 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.9153, allocations: 43.98 kB / 422.9 MB, free: 48.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.9172, allocations: 2.163 MB / 425 MB, free: 45.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/0.9173, allocations: 11.94 kB / 425 MB, free: 45.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004699/0.922, allocations: 2.61 MB / 427.7 MB, free: 42.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008053/0.9228, allocations: 335.6 kB / 428 MB, free: 42.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.9231, allocations: 47.98 kB / 428 MB, free: 42.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/0.9251, allocations: 159.9 kB / 428.2 MB, free: 42.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005007/0.9256, allocations: 180.3 kB / 428.4 MB, free: 42.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.9257, allocations: 51.98 kB / 428.4 MB, free: 41.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.9267, allocations: 0.5187 MB / 428.9 MB, free: 41.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.9268, allocations: 0 / 428.9 MB, free: 41.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001869/0.9286, allocations: 348 kB / 429.3 MB, free: 41.12 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.00551/0.9342, allocations: 5.792 MB / 435.1 MB, free: 35.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003915/0.9381, allocations: 1.704 MB / 436.8 MB, free: 33.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/0.9382, allocations: 8.062 kB / 436.8 MB, free: 33.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002257/0.9405, allocations: 0.8735 MB / 437.6 MB, free: 32.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.942, allocations: 178 kB / 437.8 MB, free: 32.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008491/0.9506, allocations: 2.726 MB / 440.5 MB, free: 29.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008189/0.9514, allocations: 1.21 MB / 441.8 MB, free: 28.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.9529, allocations: 0.5227 MB / 442.3 MB, free: 27.62 MB / 314.7 MB Notification: Performance of SimCode: time 1.533e-06/0.9529, allocations: 0 / 442.3 MB, free: 27.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.689/4.642, allocations: 40.15 MB / 482.4 MB, free: 3.48 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat