Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.647e-05/2.659e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3295, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.4966, allocations: 88.25 MB / 382.5 MB, free: 9.574 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/0.497, allocations: 83.95 kB / 382.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1483/0.6453, allocations: 37.69 MB / 420.3 MB, free: 3.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6454, allocations: 0 / 420.3 MB, free: 3.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001329/0.6455, allocations: 40 kB / 420.3 MB, free: 3.664 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.00559/0.6511, allocations: 1.511 MB / 421.8 MB, free: 2.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.6512, allocations: 12.03 kB / 421.8 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008935/0.6521, allocations: 177.9 kB / 422 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.6543, allocations: 0.7906 MB / 422.8 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004223/0.6548, allocations: 188.1 kB / 423 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004556/0.6552, allocations: 95.89 kB / 423.1 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2629/0.9181, allocations: 1.292 MB / 424.4 MB, free: 93.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005223/0.9234, allocations: 1.344 MB / 425.7 MB, free: 93.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.445e-05/0.9236, allocations: 7.5 kB / 425.7 MB, free: 93.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.9238, allocations: 5.047 kB / 425.7 MB, free: 93.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.968e-05/0.9239, allocations: 35.69 kB / 425.7 MB, free: 93.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01655/0.9404, allocations: 5.781 MB / 431.5 MB, free: 92.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.9429, allocations: 0.7995 MB / 432.3 MB, free: 92.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.9441, allocations: 453.4 kB / 432.8 MB, free: 92.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.9443, allocations: 17.09 kB / 432.8 MB, free: 92.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/0.9457, allocations: 0.5597 MB / 433.3 MB, free: 91.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=92): time 5.44e-06/0.9457, allocations: 1.062 kB / 433.3 MB, free: 91.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=123): time 0.02051/0.9662, allocations: 5.329 MB / 438.7 MB, free: 90.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.9664, allocations: 302.8 kB / 439 MB, free: 90.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.9677, allocations: 0.6053 MB / 439.6 MB, free: 90.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003382/0.968, allocations: 33.33 kB / 439.6 MB, free: 90.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006548/0.9687, allocations: 0.6576 MB / 440.3 MB, free: 89.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005235/0.9692, allocations: 403.5 kB / 440.7 MB, free: 89.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.9694, allocations: 0 / 440.7 MB, free: 89.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.9696, allocations: 404.1 kB / 441.1 MB, free: 89.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.9712, allocations: 0.6133 MB / 441.7 MB, free: 88.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.9729, allocations: 0.9239 MB / 442.6 MB, free: 88.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.9746, allocations: 0.6055 MB / 443.2 MB, free: 87.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.9746, allocations: 3.938 kB / 443.2 MB, free: 87.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004379/0.979, allocations: 1.619 MB / 444.8 MB, free: 87.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.9791, allocations: 7.5 kB / 444.8 MB, free: 87.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.574e-05/0.9791, allocations: 11 kB / 444.8 MB, free: 87.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005506/0.9797, allocations: 179.5 kB / 445 MB, free: 87.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/0.983, allocations: 379 kB / 445.4 MB, free: 87.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/0.9872, allocations: 4.289 MB / 449.7 MB, free: 83.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002921/0.9902, allocations: 172.6 kB / 449.8 MB, free: 83.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/0.9906, allocations: 54.91 kB / 449.9 MB, free: 83 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.0005426/0.9911, allocations: 150.2 kB / 450 MB, free: 82.88 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003643/0.9948, allocations: 1.274 MB / 451.3 MB, free: 82.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000424/0.9953, allocations: 102.1 kB / 451.4 MB, free: 82.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.999, allocations: 1.39 MB / 452.8 MB, free: 81.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/0.999, allocations: 18.84 kB / 452.8 MB, free: 81.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.9991, allocations: 0 / 452.8 MB, free: 81.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.9991, allocations: 14.73 kB / 452.8 MB, free: 81.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/1.01, allocations: 3.916 MB / 456.8 MB, free: 79.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/1.01, allocations: 9.281 kB / 456.8 MB, free: 79.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/1.013, allocations: 282.5 kB / 457 MB, free: 79.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008914/1.014, allocations: 324 kB / 457.4 MB, free: 79.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002455/1.014, allocations: 21.64 kB / 457.4 MB, free: 79.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001886/1.016, allocations: 2.062 MB / 459.4 MB, free: 77.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.589e-05/1.016, allocations: 14.34 kB / 459.5 MB, free: 77.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004527/1.02, allocations: 2.453 MB / 461.9 MB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009383/1.021, allocations: 319.3 kB / 462.2 MB, free: 75.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/1.022, allocations: 37.56 kB / 462.3 MB, free: 75.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.024, allocations: 132 kB / 462.4 MB, free: 75.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005689/1.024, allocations: 188.8 kB / 462.6 MB, free: 75.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.024, allocations: 53.88 kB / 462.6 MB, free: 75.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008856/1.025, allocations: 462.6 kB / 463.1 MB, free: 74.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.025, allocations: 3.938 kB / 463.1 MB, free: 74.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002221/1.028, allocations: 301.2 kB / 463.4 MB, free: 74.95 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.005535/1.033, allocations: 5.752 MB / 469.1 MB, free: 69.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003909/1.037, allocations: 1.679 MB / 470.8 MB, free: 68.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/1.037, allocations: 0 / 470.8 MB, free: 68.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002548/1.04, allocations: 0.8861 MB / 471.7 MB, free: 68.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/1.041, allocations: 127.9 kB / 471.8 MB, free: 68.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009517/1.051, allocations: 2.572 MB / 474.4 MB, free: 65.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/1.052, allocations: 1.211 MB / 475.6 MB, free: 64.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001871/1.054, allocations: 160.4 kB / 475.8 MB, free: 64.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/1.056, allocations: 0.5163 MB / 476.3 MB, free: 64.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.973e-06/1.056, allocations: 0 / 476.3 MB, free: 64.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08595/1.142, allocations: 25.42 MB / 0.4899 GB, free: 43.01 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002825/1.142, allocations: 163.9 kB / 0.4901 GB, free: 42.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.511/4.653, allocations: 3.938 kB / 0.4901 GB, free: 42.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat