Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.051/2.051, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.05e-05/4.074e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.548, allocations: 92.75 MB / 414.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.5483, allocations: 75.11 kB / 414.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9866/1.535, allocations: 169.9 MB / 0.5709 GB, free: 81.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.535, allocations: 0 / 0.5709 GB, free: 81.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006016/1.536, allocations: 175.7 kB / 0.571 GB, free: 81.18 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.03464/1.57, allocations: 8.251 MB / 0.5791 GB, free: 75.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/1.57, allocations: 7.406 kB / 0.5791 GB, free: 75.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007076/1.577, allocations: 1.471 MB / 0.5806 GB, free: 74.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08708/1.665, allocations: 12.09 MB / 0.5924 GB, free: 63.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03743/1.702, allocations: 10.94 MB / 0.603 GB, free: 52.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008586/1.703, allocations: 0.6378 MB / 0.6037 GB, free: 52.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005239/1.708, allocations: 0.8472 MB / 0.6045 GB, free: 51.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06331/1.772, allocations: 19.72 MB / 0.6237 GB, free: 30.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006342/1.772, allocations: 111 kB / 0.6239 GB, free: 29.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004823/1.777, allocations: 399.8 kB / 0.6242 GB, free: 29.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004103/1.781, allocations: 1.818 MB / 0.626 GB, free: 27.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05167/1.833, allocations: 15.74 MB / 0.6414 GB, free: 11.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4863/2.319, allocations: 82.05 MB / 0.7215 GB, free: 21.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04908/2.369, allocations: 8.033 MB / 0.7294 GB, free: 20.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0117/2.38, allocations: 4.083 MB / 0.7333 GB, free: 20.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001482/2.382, allocations: 0.6611 MB / 0.734 GB, free: 19.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/2.382, allocations: 68.56 kB / 0.7341 GB, free: 19.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=311): time 1.068e-05/2.382, allocations: 0 / 0.7341 GB, free: 19.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=335): time 0.1219/2.504, allocations: 26.26 MB / 0.7597 GB, free: 9.664 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/2.504, allocations: 291.8 kB / 0.76 GB, free: 9.352 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01726/2.521, allocations: 6.808 MB / 0.7666 GB, free: 7.078 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009206/2.522, allocations: 76.73 kB / 0.7667 GB, free: 7.008 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00489/2.527, allocations: 5.538 MB / 0.7721 GB, free: 2.629 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002046/2.529, allocations: 1.276 MB / 0.7734 GB, free: 1.695 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/2.531, allocations: 193.8 kB / 0.7735 GB, free: 1.547 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006636/2.531, allocations: 0.7194 MB / 0.7742 GB, free: 1.059 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009275/2.541, allocations: 3.461 MB / 0.7776 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01488/2.555, allocations: 9.052 MB / 0.7865 GB, free: 7.254 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01408/2.57, allocations: 5.538 MB / 0.7919 GB, free: 3.008 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002471/2.57, allocations: 56 kB / 0.7919 GB, free: 2.953 MB / 442.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03777/2.608, allocations: 12.31 MB / 0.8039 GB, free: 8.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001804/2.608, allocations: 88 kB / 0.804 GB, free: 8.344 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003916/2.608, allocations: 204.2 kB / 0.8042 GB, free: 8.145 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004638/2.613, allocations: 1.054 MB / 0.8053 GB, free: 7.262 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01561/2.629, allocations: 2.242 MB / 0.8074 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02149/2.65, allocations: 11.28 MB / 0.8185 GB, free: 10.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/2.663, allocations: 0.5203 MB / 0.819 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002715/2.666, allocations: 0.5707 MB / 0.8195 GB, free: 9.559 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1179): * Single equations (assignments): 1172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004326/2.67, allocations: 0.8443 MB / 0.8203 GB, free: 8.715 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002577/2.673, allocations: 0.6817 MB / 0.821 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02056/2.693, allocations: 5.959 MB / 0.8268 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.738e-05/2.693, allocations: 36 kB / 0.8269 GB, free: 3.027 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-05/2.693, allocations: 8 kB / 0.8269 GB, free: 3.02 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.304e-05/2.694, allocations: 15.56 kB / 0.8269 GB, free: 3.02 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3915/3.085, allocations: 15.07 MB / 0.8416 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.857e-05/3.085, allocations: 1.125 kB / 0.8416 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006343/3.091, allocations: 0.5582 MB / 0.8422 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00372/3.095, allocations: 0.6977 MB / 0.8428 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008808/3.096, allocations: 61.3 kB / 0.8429 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/3.113, allocations: 10.12 MB / 0.8528 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/3.113, allocations: 5.469 kB / 0.8528 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0247/3.138, allocations: 10.06 MB / 0.8626 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005211/3.143, allocations: 1.195 MB / 0.8638 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002697/3.146, allocations: 65.95 kB / 0.8638 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006859/3.153, allocations: 200.2 kB / 0.864 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001305/3.154, allocations: 190.4 kB / 0.8642 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005553/3.154, allocations: 90.53 kB / 0.8643 GB, free: 104.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0146/3.169, allocations: 4.855 MB / 0.869 GB, free: 104 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.495e-06/3.169, allocations: 0 / 0.869 GB, free: 104 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01446/3.184, allocations: 1.862 MB / 0.8708 GB, free: 104 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02609/3.21, allocations: 11.03 MB / 0.8816 GB, free: 99.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02065/3.23, allocations: 8.542 MB / 0.89 GB, free: 97.09 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/3.231, allocations: 0 / 0.89 GB, free: 97.09 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007462/3.238, allocations: 3.129 MB / 0.893 GB, free: 95.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008596/3.247, allocations: 0.9377 MB / 0.8939 GB, free: 95.33 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06356/3.31, allocations: 18.66 MB / 0.9122 GB, free: 87.31 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01545/3.326, allocations: 6.123 MB / 0.9181 GB, free: 82.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01049/3.336, allocations: 4.147 MB / 0.9222 GB, free: 79.02 MB / 474.7 MB Notification: Performance of SimCode: time 1.723e-06/3.336, allocations: 0 / 0.9222 GB, free: 79.02 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.955/10.29, allocations: 294.4 MB / 1.21 GB, free: 126.3 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat