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.748/1.748, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.079e-05, allocations: 8 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2987, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.4473, allocations: 83 MB / 341.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4477, allocations: 87.94 kB / 341.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3628/0.8105, allocations: 37.71 MB / 379.1 MB, free: 78.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.8106, allocations: 2.531 kB / 379.1 MB, free: 78.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001029/0.8107, allocations: 34.59 kB / 379.2 MB, free: 78.92 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.005273/0.816, allocations: 1.513 MB / 380.7 MB, free: 78.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.816, allocations: 11.19 kB / 380.7 MB, free: 78.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000882/0.8169, allocations: 183.3 kB / 380.9 MB, free: 78.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002067/0.819, allocations: 0.787 MB / 381.7 MB, free: 77.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003773/0.8194, allocations: 181.9 kB / 381.8 MB, free: 77.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000443/0.8199, allocations: 104.6 kB / 381.9 MB, free: 77.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004029/0.8239, allocations: 1.35 MB / 383.3 MB, free: 77.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00411/0.8281, allocations: 1.361 MB / 384.7 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-05/0.8282, allocations: 17.77 kB / 384.7 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/0.8285, allocations: 3.281 kB / 384.7 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.8285, allocations: 38.06 kB / 384.7 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01432/0.8428, allocations: 5.835 MB / 390.5 MB, free: 75.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002105/0.845, allocations: 0.8401 MB / 391.4 MB, free: 74.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009596/0.846, allocations: 476.1 kB / 391.8 MB, free: 74.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.8461, allocations: 20.22 kB / 391.9 MB, free: 74.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.8473, allocations: 0.5708 MB / 392.4 MB, free: 74.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 3.937e-06/0.8473, allocations: 0 / 392.4 MB, free: 74.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01846/0.8658, allocations: 5.379 MB / 397.8 MB, free: 72.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.8659, allocations: 298.5 kB / 398.1 MB, free: 71.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.8671, allocations: 0.6296 MB / 398.7 MB, free: 71.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002516/0.8674, allocations: 33.3 kB / 398.8 MB, free: 71.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005184/0.8679, allocations: 0.6782 MB / 399.5 MB, free: 70.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00044/0.8684, allocations: 394.6 kB / 399.8 MB, free: 70.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.8685, allocations: 4.031 kB / 399.8 MB, free: 70.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.8687, allocations: 365.4 kB / 400.2 MB, free: 70.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.8702, allocations: 0.6443 MB / 400.8 MB, free: 69.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/0.8719, allocations: 0.9443 MB / 401.8 MB, free: 69.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/0.8735, allocations: 0.6305 MB / 402.4 MB, free: 68.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.8735, allocations: 0 / 402.4 MB, free: 68.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00401/0.8775, allocations: 1.63 MB / 404 MB, free: 67.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.8776, allocations: 8 kB / 404.1 MB, free: 67.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.8776, allocations: 11.94 kB / 404.1 MB, free: 67.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005276/0.8782, allocations: 170.7 kB / 404.2 MB, free: 67.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003184/0.8814, allocations: 372.3 kB / 404.6 MB, free: 66.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004161/0.8856, allocations: 4.318 MB / 408.9 MB, free: 62.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002899/0.8885, allocations: 178.6 kB / 409.1 MB, free: 62.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.8888, allocations: 52 kB / 409.1 MB, free: 62.02 MB / 314.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): 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.0005077/0.8893, allocations: 154.2 kB / 409.3 MB, free: 61.87 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003488/0.8928, allocations: 1.349 MB / 410.6 MB, free: 60.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.8932, allocations: 106.8 kB / 410.7 MB, free: 60.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003498/0.8935, allocations: 120.3 kB / 410.9 MB, free: 60.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.8935, allocations: 12 kB / 410.9 MB, free: 60.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.8936, allocations: 0 / 410.9 MB, free: 60.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.8936, allocations: 7.219 kB / 410.9 MB, free: 60.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.9047, allocations: 4.055 MB / 414.9 MB, free: 56.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.9048, allocations: 8 kB / 414.9 MB, free: 56.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002196/0.907, allocations: 278.7 kB / 415.2 MB, free: 56.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.9081, allocations: 487 kB / 415.7 MB, free: 56.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.9082, allocations: 19.42 kB / 415.7 MB, free: 56.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/0.9102, allocations: 2.146 MB / 417.9 MB, free: 54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.9103, allocations: 11.94 kB / 417.9 MB, free: 53.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.9151, allocations: 2.61 MB / 420.5 MB, free: 51.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000855/0.916, allocations: 326.1 kB / 420.8 MB, free: 50.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/0.9163, allocations: 20 kB / 420.8 MB, free: 50.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/0.9181, allocations: 137.8 kB / 420.9 MB, free: 50.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005096/0.9187, allocations: 189 kB / 421.1 MB, free: 50.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.9188, allocations: 44.84 kB / 421.2 MB, free: 50.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008184/0.9197, allocations: 471.1 kB / 421.6 MB, free: 50.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9197, allocations: 4 kB / 421.6 MB, free: 50.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001788/0.9215, allocations: 303.9 kB / 421.9 MB, free: 49.79 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.005602/0.9271, allocations: 5.859 MB / 427.8 MB, free: 43.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003525/0.9307, allocations: 1.661 MB / 429.5 MB, free: 41.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/0.9307, allocations: 4.688 kB / 429.5 MB, free: 41.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.9329, allocations: 0.8619 MB / 430.3 MB, free: 41.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.9344, allocations: 128.3 kB / 430.5 MB, free: 40.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008073/0.9425, allocations: 2.62 MB / 433.1 MB, free: 38.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008689/0.9434, allocations: 1.214 MB / 434.3 MB, free: 36.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/0.9448, allocations: 0.5149 MB / 434.8 MB, free: 36.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.213e-06/0.9448, allocations: 0 / 434.8 MB, free: 36.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.429/4.374, allocations: 39.81 MB / 474.6 MB, free: 12.61 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