Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.278/2.278, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.18e-05, allocations: 2.484 kB / 249.8 MB, free: 5.223 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 44.5 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4976/0.6076, allocations: 88.25 MB / 382.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003458/0.608, allocations: 84.64 kB / 382.6 MB, free: 5.367 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1699/0.778, allocations: 37.69 MB / 420.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7781, allocations: 0 / 420.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001709/0.7782, allocations: 39.44 kB / 420.4 MB, free: 1.57 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.007124/0.7854, allocations: 1.508 MB / 421.9 MB, free: 120 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.96e-05/0.7855, allocations: 12.03 kB / 421.9 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/0.7868, allocations: 181.4 kB / 422.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002808/0.7896, allocations: 0.7853 MB / 422.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005829/0.7902, allocations: 191.4 kB / 423 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007765/0.791, allocations: 98.84 kB / 423.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005651/0.7967, allocations: 1.303 MB / 424.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006385/0.8031, allocations: 1.339 MB / 425.8 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.8033, allocations: 17.16 kB / 425.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/0.8036, allocations: 0 / 425.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.805e-05/0.8037, allocations: 36 kB / 425.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02144/0.8251, allocations: 5.795 MB / 431.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.8281, allocations: 0.8004 MB / 432.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.8298, allocations: 448.6 kB / 432.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001808/0.83, allocations: 12.78 kB / 432.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001844/0.8319, allocations: 0.5696 MB / 433.4 MB, free: 5.875 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 5.69e-06/0.8319, allocations: 0 / 433.4 MB, free: 5.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.02725/0.8592, allocations: 5.324 MB / 438.8 MB, free: 468 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001896/0.8594, allocations: 300 kB / 439 MB, free: 100 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.8612, allocations: 0.6089 MB / 439.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004412/0.8617, allocations: 33.7 kB / 439.7 MB, free: 15.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.8627, allocations: 0.6544 MB / 440.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008564/0.8636, allocations: 406 kB / 440.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.8638, allocations: 4.031 kB / 440.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003615/0.8642, allocations: 402.7 kB / 441.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.8665, allocations: 0.6211 MB / 441.8 MB, free: 13.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002747/0.8693, allocations: 0.9195 MB / 442.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.8717, allocations: 0.6077 MB / 443.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.8718, allocations: 7.938 kB / 443.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006371/0.8781, allocations: 1.616 MB / 444.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.8782, allocations: 8 kB / 444.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.185e-05/0.8783, allocations: 8 kB / 444.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007296/0.879, allocations: 170.5 kB / 445.1 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/0.8832, allocations: 371.5 kB / 445.5 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006614/0.8898, allocations: 4.3 MB / 449.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.8935, allocations: 175.8 kB / 449.9 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000475/0.894, allocations: 55.98 kB / 450 MB, free: 4.637 MB / 346.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.000719/0.8947, allocations: 156.7 kB / 450.1 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005114/0.8999, allocations: 1.271 MB / 451.4 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006599/0.9006, allocations: 106.7 kB / 451.5 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005212/0.9058, allocations: 1.385 MB / 452.9 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.9059, allocations: 12 kB / 452.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.9059, allocations: 3.953 kB / 452.9 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.188e-05/0.906, allocations: 3.984 kB / 452.9 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.9208, allocations: 3.92 MB / 456.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/0.9208, allocations: 12 kB / 456.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002933/0.9238, allocations: 283.9 kB / 457.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.9251, allocations: 325.3 kB / 457.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003162/0.9254, allocations: 19.98 kB / 457.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/0.9284, allocations: 2.063 MB / 459.5 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.531e-05/0.9285, allocations: 15.94 kB / 459.5 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006586/0.9351, allocations: 2.459 MB / 462 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.9364, allocations: 323.7 kB / 462.3 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000505/0.9369, allocations: 23.98 kB / 462.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/0.9396, allocations: 135.9 kB / 462.5 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008686/0.9405, allocations: 192.3 kB / 462.7 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002181/0.9407, allocations: 51.98 kB / 462.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001542/0.9423, allocations: 459.2 kB / 463.2 MB, free: 6.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.9423, allocations: 0 / 463.2 MB, free: 6.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002826/0.9452, allocations: 300 kB / 463.4 MB, free: 6.453 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.008583/0.9538, allocations: 5.756 MB / 469.2 MB, free: 404 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.9594, allocations: 1.671 MB / 470.9 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/0.9595, allocations: 4 kB / 470.9 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003521/0.963, allocations: 0.8812 MB / 471.8 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.9651, allocations: 131.6 kB / 471.9 MB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.9779, allocations: 2.584 MB / 474.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/0.9795, allocations: 1.21 MB / 475.7 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002106/0.9816, allocations: 156 kB / 475.8 MB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002222/0.9839, allocations: 0.511 MB / 476.3 MB, free: 9.016 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.9839, allocations: 0 / 476.3 MB, free: 9.016 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4234/1.407, allocations: 25.43 MB / 0.49 GB, free: 109.1 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003244/1.408, allocations: 157.1 kB / 0.4902 GB, free: 108.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.348/5.756, allocations: 3.156 kB / 0.4902 GB, free: 108.9 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat