Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.877/1.877, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.146e-05, allocations: 0 / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 48.7 MB / 316.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4304/0.5319, allocations: 96.73 MB / 413.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.5322, allocations: 76.2 kB / 413.1 MB, free: 11.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8686/1.401, allocations: 144.9 MB / 0.545 GB, free: 79.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.457e-06/1.401, allocations: 7.562 kB / 0.545 GB, free: 79.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005925/1.401, allocations: 152 kB / 0.5451 GB, free: 79.18 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.03704/1.439, allocations: 7.372 MB / 0.5523 GB, free: 74.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/1.439, allocations: 7.75 kB / 0.5523 GB, free: 74.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05581/1.494, allocations: 7.319 MB / 0.5595 GB, free: 70.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02606/1.521, allocations: 7.875 MB / 0.5672 GB, free: 62.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003516/1.521, allocations: 252 kB / 0.5674 GB, free: 62.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003343/1.524, allocations: 459.9 kB / 0.5679 GB, free: 61.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02649/1.551, allocations: 10.97 MB / 0.5786 GB, free: 51.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04104/1.592, allocations: 16.43 MB / 0.5946 GB, free: 33.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004156/1.592, allocations: 87.22 kB / 0.5947 GB, free: 33.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003067/1.595, allocations: 52 kB / 0.5947 GB, free: 32.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003984/1.599, allocations: 1.831 MB / 0.5965 GB, free: 31.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4493/2.049, allocations: 77.62 MB / 0.6723 GB, free: 43.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/2.062, allocations: 6.744 MB / 0.6789 GB, free: 42.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008725/2.071, allocations: 4.359 MB / 0.6832 GB, free: 42.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00146/2.072, allocations: 0.7254 MB / 0.6839 GB, free: 41.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.045e-05/2.072, allocations: 77 kB / 0.684 GB, free: 41.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.056e-06/2.072, allocations: 0 / 0.684 GB, free: 41.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.1049/2.177, allocations: 32.19 MB / 0.7154 GB, free: 32.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/2.177, allocations: 250.2 kB / 0.7156 GB, free: 32.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/2.188, allocations: 5.005 MB / 0.7205 GB, free: 30.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00109/2.189, allocations: 25.7 kB / 0.7205 GB, free: 30.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004639/2.194, allocations: 5.405 MB / 0.7258 GB, free: 26.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002404/2.196, allocations: 1.387 MB / 0.7272 GB, free: 25.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/2.198, allocations: 0 / 0.7272 GB, free: 25.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006777/2.198, allocations: 0.7395 MB / 0.7279 GB, free: 25.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009354/2.208, allocations: 3.921 MB / 0.7317 GB, free: 23.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01357/2.221, allocations: 9.675 MB / 0.7412 GB, free: 14.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/2.234, allocations: 6.107 MB / 0.7471 GB, free: 10.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002076/2.235, allocations: 64 kB / 0.7472 GB, free: 10.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=1347) (initialization): time 0.03908/2.274, allocations: 13.94 MB / 0.7608 GB, free: 15.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001775/2.274, allocations: 96.06 kB / 0.7609 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003431/2.274, allocations: 204 kB / 0.7611 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007426/2.282, allocations: 1.74 MB / 0.7628 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01788/2.3, allocations: 2.515 MB / 0.7653 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02477/2.325, allocations: 10.82 MB / 0.7758 GB, free: 2.004 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01275/2.337, allocations: 397.7 kB / 0.7762 GB, free: 1.707 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003463/2.341, allocations: 0.5965 MB / 0.7768 GB, free: 1.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1275): * Single equations (assignments): 1270 * Array equations: 3 * 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: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004989/2.346, allocations: 0.6308 MB / 0.7774 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02986/2.376, allocations: 7.725 MB / 0.7849 GB, free: 10.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002731/2.379, allocations: 0.5476 MB / 0.7855 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02455/2.403, allocations: 7.494 MB / 0.7928 GB, free: 4.332 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001175/2.403, allocations: 40 kB / 0.7928 GB, free: 4.293 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.911e-05/2.403, allocations: 8 kB / 0.7928 GB, free: 4.285 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001095/2.404, allocations: 26.66 kB / 0.7929 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05956/2.463, allocations: 16.66 MB / 0.8091 GB, free: 5.906 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.35e-05/2.463, allocations: 11.98 kB / 0.8091 GB, free: 5.895 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008086/2.471, allocations: 0.7494 MB / 0.8099 GB, free: 5.145 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007005/2.478, allocations: 1.406 MB / 0.8112 GB, free: 3.73 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001129/2.48, allocations: 19.98 kB / 0.8113 GB, free: 3.711 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3543/2.834, allocations: 9.894 MB / 0.8209 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-05/2.834, allocations: 6.031 kB / 0.8209 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03679/2.871, allocations: 13.31 MB / 0.8339 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004986/2.876, allocations: 1.175 MB / 0.8351 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002717/2.879, allocations: 13.16 kB / 0.8351 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006733/2.885, allocations: 197.7 kB / 0.8353 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001655/2.887, allocations: 234.2 kB / 0.8355 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007419/2.888, allocations: 102.9 kB / 0.8356 GB, free: 116.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009481/2.897, allocations: 3.354 MB / 0.8389 GB, free: 116.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.897, allocations: 0 / 0.8389 GB, free: 116.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01384/2.911, allocations: 1.609 MB / 0.8404 GB, free: 116.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (330): * Single equations (assignments): 325 * Array equations: 3 * 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: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03214/2.944, allocations: 14.95 MB / 0.855 GB, free: 112 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02373/2.967, allocations: 9.797 MB / 0.8646 GB, free: 109 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/2.967, allocations: 3.594 kB / 0.8646 GB, free: 109 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01016/2.978, allocations: 3.816 MB / 0.8683 GB, free: 107.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/2.983, allocations: 0.558 MB / 0.8689 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05676/3.04, allocations: 17.1 MB / 0.8856 GB, free: 101.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0151/3.055, allocations: 5.636 MB / 0.8911 GB, free: 98.92 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01779/3.073, allocations: 3.348 MB / 0.8944 GB, free: 96.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01021/3.083, allocations: 3.624 MB / 0.8979 GB, free: 93.43 MB / 474.7 MB Notification: Performance of SimCode: time 1.944e-06/3.083, allocations: 4 kB / 0.8979 GB, free: 93.43 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6798/3.763, allocations: 128.9 MB / 1.024 GB, free: 112.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/3.763, allocations: 137.3 kB / 1.024 GB, free: 112.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.085/10.85, allocations: 0 / 1.024 GB, free: 112.4 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat