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.848/1.848, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.641e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09129/0.09136, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.5085, allocations: 88.9 MB / 388.8 MB, free: 12.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5088, allocations: 94.05 kB / 388.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1289/0.6377, allocations: 37.96 MB / 426.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6378, allocations: 0 / 426.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001041/0.6379, allocations: 34.25 kB / 426.9 MB, free: 0.5273 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.005006/0.6429, allocations: 1.514 MB / 428.4 MB, free: 15.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.643, allocations: 7.625 kB / 428.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006043/0.6436, allocations: 234.4 kB / 428.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006105/0.6442, allocations: 180.2 kB / 428.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.646, allocations: 0.7871 MB / 429.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003781/0.6464, allocations: 239 kB / 429.9 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/0.6468, allocations: 160.3 kB / 430 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004142/0.651, allocations: 1.566 MB / 431.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.158e-05/0.6511, allocations: 15.5 kB / 431.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/0.6513, allocations: 68.36 kB / 431.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.6514, allocations: 36 kB / 431.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00372/0.6551, allocations: 1.372 MB / 433.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01536/0.6705, allocations: 6.047 MB / 439.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002377/0.6729, allocations: 0.8352 MB / 440 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.6742, allocations: 481.7 kB / 440.4 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.6743, allocations: 20.72 kB / 440.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/0.6758, allocations: 0.5908 MB / 441.1 MB, free: 8.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 3.286e-06/0.6758, allocations: 4 kB / 441.1 MB, free: 8.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.02112/0.6969, allocations: 5.568 MB / 446.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/0.6972, allocations: 303.8 kB / 446.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.6987, allocations: 0.6833 MB / 447.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003114/0.699, allocations: 53.7 kB / 447.7 MB, free: 1.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007031/0.6997, allocations: 0.6718 MB / 448.3 MB, free: 1.016 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/0.7004, allocations: 420.3 kB / 448.7 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.7006, allocations: 24 kB / 448.8 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.7008, allocations: 366.7 kB / 449.1 MB, free: 224 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.7027, allocations: 0.6454 MB / 449.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/0.705, allocations: 0.9586 MB / 450.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.7069, allocations: 0.6335 MB / 451.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.7069, allocations: 0 / 451.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004987/0.7119, allocations: 1.694 MB / 453.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.712, allocations: 8 kB / 453.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.618e-05/0.712, allocations: 8 kB / 453.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.7127, allocations: 174.5 kB / 453.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003358/0.7161, allocations: 375.4 kB / 453.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005709/0.7218, allocations: 4.452 MB / 458.1 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003032/0.7249, allocations: 207.8 kB / 458.3 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/0.7252, allocations: 52 kB / 458.3 MB, free: 6.48 MB / 346.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): 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.0005368/0.7257, allocations: 198.8 kB / 458.5 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003446/0.7261, allocations: 106.7 kB / 458.6 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004468/0.7306, allocations: 1.479 MB / 460.1 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/0.7307, allocations: 12 kB / 460.1 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.7307, allocations: 8 kB / 460.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.7307, allocations: 7.984 kB / 460.1 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.7428, allocations: 4.219 MB / 464.3 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.7429, allocations: 8 kB / 464.3 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002324/0.7452, allocations: 280.6 kB / 464.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009317/0.7462, allocations: 325.4 kB / 464.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001608/0.7464, allocations: 43.98 kB / 465 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.7488, allocations: 2.095 MB / 467.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.712e-05/0.7488, allocations: 15.94 kB / 467.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005623/0.7545, allocations: 2.537 MB / 469.6 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009637/0.7555, allocations: 323.7 kB / 469.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/0.7558, allocations: 40 kB / 470 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/0.7577, allocations: 163.9 kB / 470.1 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005887/0.7583, allocations: 188.3 kB / 470.3 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/0.7585, allocations: 47.98 kB / 470.4 MB, free: 9.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001177/0.7597, allocations: 0.5109 MB / 470.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7597, allocations: 4 kB / 470.9 MB, free: 9.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001909/0.7616, allocations: 355.8 kB / 471.2 MB, free: 8.816 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.007278/0.7689, allocations: 5.842 MB / 477.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00463/0.7736, allocations: 1.761 MB / 478.8 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/0.7737, allocations: 8.062 kB / 478.8 MB, free: 0.875 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00267/0.7764, allocations: 0.8956 MB / 479.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.778, allocations: 180.8 kB / 479.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009355/0.7874, allocations: 2.757 MB / 482.7 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.7887, allocations: 1.21 MB / 483.9 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/0.7904, allocations: 0.5227 MB / 484.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.673e-06/0.7904, allocations: 0 / 484.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.504/4.295, allocations: 40.68 MB / 0.5128 GB, free: 2.402 MB / 410.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