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.839/1.839, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.375e-05, allocations: 4 kB / 225.1 MB, free: 2.68 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2595, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.4374, allocations: 83.66 MB / 347.5 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004342/0.4379, allocations: 91.94 kB / 347.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4092/0.8471, allocations: 37.99 MB / 385.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.8472, allocations: 0 / 385.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001184/0.8473, allocations: 31.59 kB / 385.6 MB, free: 80.21 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.005615/0.853, allocations: 1.519 MB / 387.1 MB, free: 79.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.853, allocations: 13.88 kB / 387.1 MB, free: 79.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007826/0.8538, allocations: 224.5 kB / 387.4 MB, free: 79.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008466/0.8547, allocations: 184.9 kB / 387.5 MB, free: 79.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002387/0.8571, allocations: 0.7972 MB / 388.3 MB, free: 79.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005066/0.8577, allocations: 234.6 kB / 388.6 MB, free: 78.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007101/0.8584, allocations: 160 kB / 388.7 MB, free: 78.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005189/0.8636, allocations: 1.595 MB / 390.3 MB, free: 78.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.08e-05/0.8638, allocations: 3.906 kB / 390.3 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002536/0.864, allocations: 63.5 kB / 390.4 MB, free: 78.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.8641, allocations: 36.44 kB / 390.4 MB, free: 78.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004626/0.8687, allocations: 1.432 MB / 391.9 MB, free: 77.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01599/0.8848, allocations: 6.091 MB / 398 MB, free: 73.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.8874, allocations: 0.8803 MB / 398.8 MB, free: 72.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.8887, allocations: 488.7 kB / 399.3 MB, free: 72.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.8889, allocations: 9.812 kB / 399.3 MB, free: 72.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001412/0.8903, allocations: 0.6061 MB / 399.9 MB, free: 71.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 4.479e-06/0.8903, allocations: 0 / 399.9 MB, free: 71.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.04011/0.9304, allocations: 5.651 MB / 405.6 MB, free: 66.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.9306, allocations: 299.7 kB / 405.9 MB, free: 65.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.9326, allocations: 0.7067 MB / 406.6 MB, free: 64.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004487/0.9331, allocations: 53.7 kB / 406.6 MB, free: 64.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007697/0.9339, allocations: 0.6723 MB / 407.3 MB, free: 64.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006904/0.9346, allocations: 413.4 kB / 407.7 MB, free: 63.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.9349, allocations: 32.03 kB / 407.7 MB, free: 63.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.935, allocations: 366.7 kB / 408.1 MB, free: 63.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/0.9376, allocations: 0.6679 MB / 408.8 MB, free: 62.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01102/0.9487, allocations: 0.9861 MB / 409.7 MB, free: 61.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006626/0.9553, allocations: 0.661 MB / 410.4 MB, free: 61.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.9554, allocations: 0 / 410.4 MB, free: 61.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0152/0.9706, allocations: 1.745 MB / 412.2 MB, free: 59.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.9707, allocations: 8 kB / 412.2 MB, free: 59.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.9707, allocations: 7.953 kB / 412.2 MB, free: 59.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/0.9715, allocations: 175 kB / 412.3 MB, free: 59.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004537/0.9761, allocations: 382.2 kB / 412.7 MB, free: 58.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005634/0.9818, allocations: 4.47 MB / 417.2 MB, free: 53.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003044/0.9849, allocations: 203.9 kB / 417.4 MB, free: 53.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003204/0.9853, allocations: 56 kB / 417.4 MB, free: 53.57 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.0004807/0.9858, allocations: 194.8 kB / 417.6 MB, free: 53.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003543/0.9861, allocations: 102.8 kB / 417.7 MB, free: 53.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003702/0.9865, allocations: 134 kB / 417.9 MB, free: 53.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.9865, allocations: 12 kB / 417.9 MB, free: 53.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.9865, allocations: 0 / 417.9 MB, free: 53.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.9866, allocations: 15.91 kB / 417.9 MB, free: 53.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.9981, allocations: 4.267 MB / 422.2 MB, free: 48.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/0.9982, allocations: 8 kB / 422.2 MB, free: 48.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002273/1, allocations: 280.1 kB / 422.4 MB, free: 48.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/1.002, allocations: 487.4 kB / 422.9 MB, free: 47.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003067/1.002, allocations: 43.98 kB / 423 MB, free: 47.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002027/1.004, allocations: 2.165 MB / 425.1 MB, free: 45.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/1.004, allocations: 15.94 kB / 425.1 MB, free: 45.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/1.009, allocations: 2.606 MB / 427.7 MB, free: 42.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009968/1.01, allocations: 323.9 kB / 428.1 MB, free: 42.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003626/1.011, allocations: 55.86 kB / 428.1 MB, free: 42.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002062/1.013, allocations: 155.9 kB / 428.3 MB, free: 42.06 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006307/1.013, allocations: 188.3 kB / 428.4 MB, free: 41.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.013, allocations: 47.98 kB / 428.5 MB, free: 41.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001096/1.015, allocations: 0.5265 MB / 429 MB, free: 41.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.015, allocations: 4 kB / 429 MB, free: 41.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00207/1.017, allocations: 348 kB / 429.4 MB, free: 40.97 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.005898/1.023, allocations: 5.786 MB / 435.1 MB, free: 34.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004032/1.027, allocations: 1.753 MB / 436.9 MB, free: 33.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/1.027, allocations: 4 kB / 436.9 MB, free: 33.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/1.029, allocations: 0.9001 MB / 437.8 MB, free: 32.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/1.031, allocations: 174.8 kB / 438 MB, free: 32.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009233/1.04, allocations: 2.742 MB / 440.7 MB, free: 29.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008373/1.041, allocations: 1.206 MB / 441.9 MB, free: 27.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001513/1.043, allocations: 0.5227 MB / 442.4 MB, free: 27.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/1.043, allocations: 0 / 442.4 MB, free: 27.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.35/4.393, allocations: 40.29 MB / 482.7 MB, free: 3.113 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