Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.367/2.367, allocations: 235 MB / 247.6 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.803e-05/3.812e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3935, allocations: 54.85 MB / 359.9 MB, free: 2.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2459/0.6394, allocations: 104 MB / 463.8 MB, free: 8.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.6398, allocations: 75.95 kB / 463.9 MB, free: 8.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9212/1.561, allocations: 148.7 MB / 0.5983 GB, free: 90.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.561, allocations: 0 / 0.5983 GB, free: 90.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004816/1.562, allocations: 145.3 kB / 0.5984 GB, free: 90.1 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.03095/1.593, allocations: 7.384 MB / 0.6056 GB, free: 83.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/1.593, allocations: 8.031 kB / 0.6056 GB, free: 83.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006398/1.599, allocations: 1.377 MB / 0.607 GB, free: 82.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05418/1.653, allocations: 7.318 MB / 0.6141 GB, free: 75.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02799/1.681, allocations: 7.896 MB / 0.6218 GB, free: 67.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000715/1.682, allocations: 0.5777 MB / 0.6224 GB, free: 66.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004243/1.686, allocations: 0.7653 MB / 0.6231 GB, free: 65.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0578/1.744, allocations: 18.75 MB / 0.6415 GB, free: 45.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004957/1.745, allocations: 99.05 kB / 0.6416 GB, free: 45.49 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003723/1.748, allocations: 371.8 kB / 0.6419 GB, free: 45.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003989/1.753, allocations: 1.829 MB / 0.6437 GB, free: 43.29 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04767/1.8, allocations: 15.07 MB / 0.6584 GB, free: 28.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5124/2.313, allocations: 81.72 MB / 0.7382 GB, free: 45.27 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04013/2.353, allocations: 8.631 MB / 0.7466 GB, free: 44.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009442/2.362, allocations: 4.607 MB / 0.7511 GB, free: 44.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03135/2.394, allocations: 11.71 MB / 0.7626 GB, free: 42.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.275e-05/2.394, allocations: 71.12 kB / 0.7627 GB, free: 42.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=347): time 8.195e-06/2.394, allocations: 0 / 0.7627 GB, free: 42.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=389): time 0.167/2.561, allocations: 31.49 MB / 0.7934 GB, free: 33.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/2.561, allocations: 256.2 kB / 0.7937 GB, free: 33.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/2.578, allocations: 6.484 MB / 0.8 GB, free: 31.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001117/2.58, allocations: 86.12 kB / 0.8001 GB, free: 30.94 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004631/2.584, allocations: 5.008 MB / 0.805 GB, free: 26.94 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002649/2.587, allocations: 1.443 MB / 0.8064 GB, free: 25.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002015/2.589, allocations: 201.8 kB / 0.8066 GB, free: 25.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001217/2.59, allocations: 0.7297 MB / 0.8073 GB, free: 25.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0109/2.601, allocations: 4.025 MB / 0.8112 GB, free: 23.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01469/2.616, allocations: 9.524 MB / 0.8205 GB, free: 14.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0139/2.63, allocations: 6.156 MB / 0.8265 GB, free: 9.586 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002164/2.63, allocations: 56 kB / 0.8266 GB, free: 9.531 MB / 474.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.04151/2.672, allocations: 14.15 MB / 0.8404 GB, free: 13.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001836/2.672, allocations: 88 kB / 0.8405 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003745/2.672, allocations: 197.1 kB / 0.8407 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007705/2.68, allocations: 1.723 MB / 0.8423 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01735/2.698, allocations: 2.425 MB / 0.8447 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02569/2.723, allocations: 11.41 MB / 0.8559 GB, free: 36 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01413/2.738, allocations: 0.6375 MB / 0.8565 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002837/2.74, allocations: 0.5789 MB / 0.857 GB, free: 15.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 892 * 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 (1225): * Single equations (assignments): 1220 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004443/2.745, allocations: 0.8585 MB / 0.8579 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002375/2.747, allocations: 0.644 MB / 0.8585 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02812/2.775, allocations: 8.129 MB / 0.8665 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.419e-05/2.776, allocations: 40 kB / 0.8665 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-05/2.776, allocations: 8 kB / 0.8665 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001059/2.776, allocations: 25.91 kB / 0.8665 GB, free: 6.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06237/2.838, allocations: 18.18 MB / 0.8843 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-05/2.838, allocations: 4.562 kB / 0.8843 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008221/2.847, allocations: 0.7748 MB / 0.885 GB, free: 4.141 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007302/2.854, allocations: 1.417 MB / 0.8864 GB, free: 2.723 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001278/2.855, allocations: 83.42 kB / 0.8865 GB, free: 2.645 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02491/2.88, allocations: 10.6 MB / 0.8968 GB, free: 7.789 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.436e-05/2.88, allocations: 11.94 kB / 0.8969 GB, free: 7.777 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4326/3.313, allocations: 14.36 MB / 0.9109 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005813/3.319, allocations: 1.319 MB / 0.9122 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002855/3.322, allocations: 74.39 kB / 0.9122 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007307/3.329, allocations: 262.6 kB / 0.9125 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00158/3.331, allocations: 234.7 kB / 0.9127 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006624/3.331, allocations: 105.6 kB / 0.9128 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0151/3.346, allocations: 4.648 MB / 0.9174 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.202e-06/3.346, allocations: 0 / 0.9174 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01468/3.361, allocations: 1.873 MB / 0.9192 GB, free: 145.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (329): * Single equations (assignments): 324 * 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.03586/3.397, allocations: 16.11 MB / 0.9349 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02326/3.42, allocations: 9.624 MB / 0.9443 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/3.42, allocations: 3.406 kB / 0.9443 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01112/3.432, allocations: 3.914 MB / 0.9481 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007898/3.439, allocations: 0.7689 MB / 0.9489 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06568/3.505, allocations: 18.53 MB / 0.967 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01879/3.524, allocations: 5.645 MB / 0.9725 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01361/3.538, allocations: 3.756 MB / 0.9762 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.813e-06/3.538, allocations: 2.344 kB / 0.9762 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.041/9.579, allocations: 212.6 MB / 1.184 GB, free: 105.4 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat