Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.623e-05/3.638e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.5388, allocations: 93.94 MB / 415.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5391, allocations: 75.03 kB / 415.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7718/1.311, allocations: 114.4 MB / 0.5178 GB, free: 90.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.311, allocations: 0 / 0.5178 GB, free: 90.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004571/1.311, allocations: 109.4 kB / 0.5179 GB, free: 90.24 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: 1954 * Number of variables: 1954 Notification: Performance of Generate backend data structure: time 0.02386/1.335, allocations: 5.461 MB / 0.5233 GB, free: 88.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/1.335, allocations: 10.81 kB / 0.5233 GB, free: 88.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004632/1.34, allocations: 0.9796 MB / 0.5242 GB, free: 87.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05026/1.39, allocations: 6.953 MB / 0.531 GB, free: 87.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0253/1.416, allocations: 6.866 MB / 0.5377 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005532/1.416, allocations: 415.1 kB / 0.5381 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003149/1.42, allocations: 0.5452 MB / 0.5386 GB, free: 86.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03896/1.459, allocations: 13.25 MB / 0.5516 GB, free: 82.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003835/1.459, allocations: 73.16 kB / 0.5517 GB, free: 82.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002392/1.461, allocations: 265.1 kB / 0.5519 GB, free: 82.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002784/1.464, allocations: 1.257 MB / 0.5531 GB, free: 81.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03201/1.496, allocations: 10.5 MB / 0.5634 GB, free: 78.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08701/1.583, allocations: 59.65 MB / 0.6216 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/1.601, allocations: 4.604 MB / 0.6261 GB, free: 23.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004517/1.606, allocations: 2.211 MB / 0.6283 GB, free: 21.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/1.623, allocations: 6.498 MB / 0.6346 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/1.623, allocations: 55.72 kB / 0.6347 GB, free: 15.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 6.582e-06/1.623, allocations: 0 / 0.6347 GB, free: 15.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.06088/1.684, allocations: 14.54 MB / 0.6489 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.126e-05/1.684, allocations: 235 kB / 0.6491 GB, free: 284 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01467/1.699, allocations: 5.152 MB / 0.6541 GB, free: 11.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004712/1.699, allocations: 49.7 kB / 0.6542 GB, free: 11.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004777/1.704, allocations: 3.94 MB / 0.658 GB, free: 7.168 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001491/1.706, allocations: 0.7742 MB / 0.6588 GB, free: 6.402 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/1.707, allocations: 140 kB / 0.6589 GB, free: 6.266 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006971/1.708, allocations: 0.6164 MB / 0.6595 GB, free: 5.641 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006664/1.714, allocations: 2.244 MB / 0.6617 GB, free: 3.391 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3151/2.029, allocations: 6.721 MB / 0.6683 GB, free: 92.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/2.041, allocations: 3.864 MB / 0.6721 GB, free: 92.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003371/2.041, allocations: 46.16 kB / 0.6721 GB, free: 92.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.0288/2.07, allocations: 8.923 MB / 0.6808 GB, free: 91.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002109/2.07, allocations: 74.47 kB / 0.6809 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004072/2.07, allocations: 163.9 kB / 0.681 GB, free: 91.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/2.073, allocations: 0.6142 MB / 0.6816 GB, free: 91.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01134/2.085, allocations: 1.641 MB / 0.6832 GB, free: 91.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009261/2.094, allocations: 5.725 MB / 0.6888 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008886/2.103, allocations: 389.2 kB / 0.6892 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/2.105, allocations: 446.5 kB / 0.6896 GB, free: 88.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (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],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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 (882): * Single equations (assignments): 877 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002722/2.108, allocations: 0.6565 MB / 0.6903 GB, free: 88.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/2.109, allocations: 492.5 kB / 0.6907 GB, free: 88.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008412/2.117, allocations: 3.023 MB / 0.6937 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.595e-05/2.117, allocations: 27.36 kB / 0.6937 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/2.117, allocations: 7.25 kB / 0.6937 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.944e-05/2.117, allocations: 10.22 kB / 0.6937 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/2.141, allocations: 8.436 MB / 0.702 GB, free: 87.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/2.141, allocations: 0 / 0.702 GB, free: 87.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003122/2.144, allocations: 328.4 kB / 0.7023 GB, free: 87.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/2.146, allocations: 361.9 kB / 0.7026 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003048/2.146, allocations: 42.45 kB / 0.7027 GB, free: 87.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007429/2.154, allocations: 5.072 MB / 0.7076 GB, free: 83.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/2.154, allocations: 7.094 kB / 0.7076 GB, free: 83.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/2.166, allocations: 6.089 MB / 0.7136 GB, free: 80.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00301/2.169, allocations: 0.8108 MB / 0.7144 GB, free: 80.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/2.17, allocations: 34.52 kB / 0.7144 GB, free: 80.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/2.173, allocations: 93.66 kB / 0.7145 GB, free: 80.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/2.173, allocations: 115.3 kB / 0.7146 GB, free: 80.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/2.174, allocations: 55.86 kB / 0.7147 GB, free: 80.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008568/2.182, allocations: 3.672 MB / 0.7182 GB, free: 78.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.182, allocations: 0 / 0.7182 GB, free: 78.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008683/2.191, allocations: 1.226 MB / 0.7194 GB, free: 78.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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 {(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.01235/2.203, allocations: 7.28 MB / 0.7265 GB, free: 74.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01241/2.216, allocations: 5.623 MB / 0.732 GB, free: 72.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/2.216, allocations: 7.844 kB / 0.732 GB, free: 72.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00339/2.219, allocations: 1.688 MB / 0.7337 GB, free: 71.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/2.224, allocations: 0.6018 MB / 0.7343 GB, free: 71.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03671/2.261, allocations: 12.04 MB / 0.746 GB, free: 66.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009406/2.27, allocations: 4.241 MB / 0.7502 GB, free: 65.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00613/2.276, allocations: 2.625 MB / 0.7528 GB, free: 63.28 MB / 442.7 MB Notification: Performance of SimCode: time 1.563e-06/2.276, allocations: 0 / 0.7528 GB, free: 63.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.084/7.36, allocations: 152.3 MB / 0.9015 GB, free: 84.23 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat