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 1.846/1.846, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.666e-05/3.68e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.09952, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4303/0.5299, allocations: 92.74 MB / 414.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.5302, allocations: 79.95 kB / 414.6 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004/1.535, allocations: 169.9 MB / 0.5708 GB, free: 81.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.535, allocations: 0 / 0.5708 GB, free: 81.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005954/1.535, allocations: 170.1 kB / 0.571 GB, free: 81.31 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.03277/1.568, allocations: 8.258 MB / 0.5791 GB, free: 75.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/1.568, allocations: 6.969 kB / 0.5791 GB, free: 75.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006335/1.574, allocations: 1.464 MB / 0.5805 GB, free: 74.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09378/1.668, allocations: 12.09 MB / 0.5923 GB, free: 63.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0477/1.716, allocations: 10.94 MB / 0.603 GB, free: 52.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001091/1.717, allocations: 0.6378 MB / 0.6036 GB, free: 52.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005698/1.723, allocations: 0.8433 MB / 0.6044 GB, free: 51.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07017/1.793, allocations: 19.82 MB / 0.6238 GB, free: 30.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006027/1.794, allocations: 111 kB / 0.6239 GB, free: 29.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003476/1.797, allocations: 403.8 kB / 0.6243 GB, free: 29.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00398/1.801, allocations: 1.818 MB / 0.6261 GB, free: 27.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05032/1.852, allocations: 16.04 MB / 0.6417 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4546/2.306, allocations: 82.05 MB / 0.7219 GB, free: 21.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0339/2.34, allocations: 8.074 MB / 0.7297 GB, free: 20.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008487/2.349, allocations: 4.081 MB / 0.7337 GB, free: 19.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/2.35, allocations: 0.6573 MB / 0.7344 GB, free: 19.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.599e-05/2.35, allocations: 78.45 kB / 0.7344 GB, free: 19.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=311): time 7.484e-06/2.35, allocations: 0 / 0.7344 GB, free: 19.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=335): time 0.119/2.469, allocations: 26.25 MB / 0.7601 GB, free: 9.473 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/2.469, allocations: 299.2 kB / 0.7604 GB, free: 9.156 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01767/2.487, allocations: 6.808 MB / 0.767 GB, free: 6.879 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008793/2.488, allocations: 76.23 kB / 0.7671 GB, free: 6.809 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004909/2.493, allocations: 5.544 MB / 0.7725 GB, free: 2.426 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002114/2.495, allocations: 1.262 MB / 0.7737 GB, free: 1.504 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/2.497, allocations: 198 kB / 0.7739 GB, free: 1.352 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008652/2.497, allocations: 0.7173 MB / 0.7746 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01052/2.508, allocations: 3.509 MB / 0.778 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0153/2.523, allocations: 9.113 MB / 0.7869 GB, free: 7.211 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01431/2.538, allocations: 5.543 MB / 0.7924 GB, free: 2.668 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000234/2.538, allocations: 56 kB / 0.7924 GB, free: 2.613 MB / 442.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.04132/2.579, allocations: 13 MB / 0.8051 GB, free: 7.879 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001839/2.58, allocations: 88 kB / 0.8052 GB, free: 7.793 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003586/2.58, allocations: 200 kB / 0.8054 GB, free: 7.598 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004598/2.585, allocations: 1.064 MB / 0.8064 GB, free: 6.703 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0158/2.6, allocations: 2.244 MB / 0.8086 GB, free: 4.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02197/2.622, allocations: 11.27 MB / 0.8196 GB, free: 10.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0123/2.635, allocations: 0.5277 MB / 0.8201 GB, free: 9.543 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002586/2.637, allocations: 0.5641 MB / 0.8207 GB, free: 8.992 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.004046/2.641, allocations: 0.8481 MB / 0.8215 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002351/2.644, allocations: 0.6787 MB / 0.8222 GB, free: 7.457 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02028/2.664, allocations: 5.956 MB / 0.828 GB, free: 2.496 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-05/2.664, allocations: 36 kB / 0.828 GB, free: 2.461 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.781e-05/2.664, allocations: 12 kB / 0.828 GB, free: 2.449 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.246e-05/2.664, allocations: 15.52 kB / 0.8281 GB, free: 2.449 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.39/3.054, allocations: 15.03 MB / 0.8427 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.325e-05/3.055, allocations: 6.688 kB / 0.8427 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00595/3.06, allocations: 0.5571 MB / 0.8433 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003449/3.064, allocations: 0.7008 MB / 0.844 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005286/3.065, allocations: 58.95 kB / 0.844 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01578/3.08, allocations: 10.12 MB / 0.8539 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/3.08, allocations: 5.969 kB / 0.8539 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02276/3.103, allocations: 10.06 MB / 0.8637 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004852/3.108, allocations: 1.194 MB / 0.8649 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/3.11, allocations: 54.38 kB / 0.8649 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005828/3.116, allocations: 207.8 kB / 0.8651 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009225/3.117, allocations: 192 kB / 0.8653 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003611/3.117, allocations: 88.28 kB / 0.8654 GB, free: 104.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01307/3.13, allocations: 4.856 MB / 0.8702 GB, free: 104 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.183e-06/3.13, allocations: 4.5 kB / 0.8702 GB, free: 104 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01237/3.143, allocations: 1.86 MB / 0.872 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.02375/3.167, allocations: 11.02 MB / 0.8827 GB, free: 99.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02042/3.187, allocations: 8.849 MB / 0.8914 GB, free: 96.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/3.187, allocations: 3.688 kB / 0.8914 GB, free: 96.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007154/3.194, allocations: 3.192 MB / 0.8945 GB, free: 95.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008123/3.203, allocations: 0.9335 MB / 0.8954 GB, free: 94.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05827/3.261, allocations: 18.7 MB / 0.9137 GB, free: 86.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01364/3.275, allocations: 6.121 MB / 0.9197 GB, free: 81.83 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009376/3.284, allocations: 4.155 MB / 0.9237 GB, free: 77.97 MB / 474.7 MB Notification: Performance of SimCode: time 1.813e-06/3.284, allocations: 0 / 0.9237 GB, free: 77.97 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.838/10.12, allocations: 296.1 MB / 1.213 GB, free: 127.8 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