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.937/1.937, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.936e-05, allocations: 4 kB / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3683, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.5637, allocations: 88.24 MB / 382.5 MB, free: 9.617 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.564, allocations: 83.94 kB / 382.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1454/0.7094, allocations: 37.69 MB / 420.2 MB, free: 3.742 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.7095, allocations: 4 kB / 420.2 MB, free: 3.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001049/0.7096, allocations: 39.98 kB / 420.3 MB, free: 3.699 MB / 362.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.004715/0.7143, allocations: 1.515 MB / 421.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.7144, allocations: 12.03 kB / 421.8 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006042/0.715, allocations: 177.9 kB / 422 MB, free: 1.945 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.7168, allocations: 0.7867 MB / 422.8 MB, free: 1.117 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/0.7172, allocations: 184.1 kB / 422.9 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003351/0.7175, allocations: 99.89 kB / 423 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2479/0.9655, allocations: 1.29 MB / 424.3 MB, free: 93.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00484/0.9704, allocations: 1.347 MB / 425.7 MB, free: 93.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.511e-05/0.9705, allocations: 9.219 kB / 425.7 MB, free: 93.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002042/0.9707, allocations: 2.312 kB / 425.7 MB, free: 93.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/0.9708, allocations: 36.16 kB / 425.7 MB, free: 93.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01497/0.9858, allocations: 5.786 MB / 431.5 MB, free: 91.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.9878, allocations: 0.7999 MB / 432.3 MB, free: 91.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.9889, allocations: 452.9 kB / 432.7 MB, free: 91.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.989, allocations: 12.5 kB / 432.8 MB, free: 91.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.9903, allocations: 0.5708 MB / 433.3 MB, free: 91.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=92): time 3.907e-06/0.9903, allocations: 0 / 433.3 MB, free: 91.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=123): time 0.01919/1.01, allocations: 5.324 MB / 438.7 MB, free: 90.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/1.01, allocations: 298 kB / 438.9 MB, free: 90.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/1.011, allocations: 0.6055 MB / 439.5 MB, free: 89.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00022/1.011, allocations: 32.23 kB / 439.6 MB, free: 89.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005154/1.012, allocations: 0.6954 MB / 440.3 MB, free: 89.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/1.012, allocations: 392.9 kB / 440.7 MB, free: 89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/1.012, allocations: 3.188 kB / 440.7 MB, free: 89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/1.012, allocations: 362.4 kB / 441 MB, free: 88.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/1.014, allocations: 0.6131 MB / 441.6 MB, free: 88.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/1.015, allocations: 0.9193 MB / 442.5 MB, free: 87.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/1.017, allocations: 0.609 MB / 443.2 MB, free: 87.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/1.017, allocations: 3.969 kB / 443.2 MB, free: 87.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004802/1.022, allocations: 1.576 MB / 444.7 MB, free: 86.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/1.022, allocations: 7.844 kB / 444.7 MB, free: 86.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.189e-05/1.022, allocations: 3.969 kB / 444.7 MB, free: 86.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008451/1.023, allocations: 180.8 kB / 444.9 MB, free: 86.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005237/1.028, allocations: 369.3 kB / 445.3 MB, free: 86.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005369/1.033, allocations: 4.3 MB / 449.6 MB, free: 82.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002855/1.036, allocations: 178 kB / 449.8 MB, free: 82.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/1.036, allocations: 54.72 kB / 449.8 MB, free: 82.56 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004991/1.037, allocations: 151 kB / 450 MB, free: 82.44 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003404/1.04, allocations: 1.272 MB / 451.2 MB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00028/1.041, allocations: 101.9 kB / 451.3 MB, free: 81.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/1.044, allocations: 1.389 MB / 452.7 MB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/1.044, allocations: 14.84 kB / 452.7 MB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.044, allocations: 0 / 452.7 MB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/1.044, allocations: 11.69 kB / 452.7 MB, free: 81.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009686/1.054, allocations: 3.927 MB / 456.7 MB, free: 79.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/1.054, allocations: 11.88 kB / 456.7 MB, free: 79.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002103/1.056, allocations: 275.6 kB / 457 MB, free: 79.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007883/1.057, allocations: 328.2 kB / 457.3 MB, free: 78.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/1.057, allocations: 29.64 kB / 457.3 MB, free: 78.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/1.059, allocations: 2.052 MB / 459.4 MB, free: 77.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.386e-05/1.059, allocations: 13.97 kB / 459.4 MB, free: 77.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004187/1.063, allocations: 2.466 MB / 461.8 MB, free: 75.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007729/1.064, allocations: 324.3 kB / 462.2 MB, free: 74.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/1.064, allocations: 18.19 kB / 462.2 MB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/1.066, allocations: 140.4 kB / 462.3 MB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005224/1.066, allocations: 192.5 kB / 462.5 MB, free: 74.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/1.067, allocations: 50.89 kB / 462.5 MB, free: 74.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007937/1.067, allocations: 461.8 kB / 463 MB, free: 74.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.067, allocations: 0 / 463 MB, free: 74.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001797/1.069, allocations: 298.4 kB / 463.3 MB, free: 74.51 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.005201/1.074, allocations: 5.744 MB / 469 MB, free: 69.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00351/1.078, allocations: 1.683 MB / 470.7 MB, free: 68.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.078, allocations: 0 / 470.7 MB, free: 68.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002181/1.08, allocations: 0.8603 MB / 471.6 MB, free: 67.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/1.082, allocations: 138.7 kB / 471.7 MB, free: 67.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007928/1.09, allocations: 2.627 MB / 474.3 MB, free: 65.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008631/1.091, allocations: 1.208 MB / 475.5 MB, free: 64.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00149/1.092, allocations: 0.5199 MB / 476.1 MB, free: 63.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.423e-06/1.092, allocations: 0 / 476.1 MB, free: 63.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.407/4.5, allocations: 40.19 MB / 0.5042 GB, free: 28.16 MB / 362.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