Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.024/2.024, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.22e-05/4.23e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.105, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4972/0.6023, allocations: 96.03 MB / 417.9 MB, free: 9.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.6026, allocations: 78.95 kB / 418 MB, free: 9.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8694/1.472, allocations: 138.2 MB / 0.5431 GB, free: 88.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.472, allocations: 3.406 kB / 0.5432 GB, free: 88.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00042/1.473, allocations: 133.3 kB / 0.5433 GB, free: 88.79 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: 2484 * Number of variables: 2484 Notification: Performance of Generate backend data structure: time 0.02936/1.502, allocations: 6.793 MB / 0.5499 GB, free: 86.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/1.502, allocations: 7.719 kB / 0.5499 GB, free: 86.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005907/1.508, allocations: 1.231 MB / 0.5511 GB, free: 86.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05325/1.561, allocations: 7.186 MB / 0.5581 GB, free: 85.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02762/1.589, allocations: 7.536 MB / 0.5655 GB, free: 82.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007359/1.59, allocations: 0.5155 MB / 0.566 GB, free: 82.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004252/1.594, allocations: 0.6875 MB / 0.5667 GB, free: 82.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07851/1.673, allocations: 17.01 MB / 0.5833 GB, free: 71.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005855/1.673, allocations: 87.27 kB / 0.5834 GB, free: 71.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01251/1.686, allocations: 331 kB / 0.5837 GB, free: 70.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01299/1.699, allocations: 1.627 MB / 0.5853 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04991/1.749, allocations: 13.88 MB / 0.5988 GB, free: 55.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4736/2.222, allocations: 72.24 MB / 0.6694 GB, free: 35.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03082/2.253, allocations: 7.082 MB / 0.6763 GB, free: 34.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008737/2.262, allocations: 3.924 MB / 0.6801 GB, free: 34.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.025/2.287, allocations: 9.473 MB / 0.6894 GB, free: 33.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.672e-05/2.287, allocations: 72.38 kB / 0.6894 GB, free: 33.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=297): time 7.104e-06/2.287, allocations: 2.594 kB / 0.6894 GB, free: 33.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1205/2.408, allocations: 27.68 MB / 0.7165 GB, free: 26.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/2.408, allocations: 246.4 kB / 0.7167 GB, free: 26.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01499/2.423, allocations: 5.888 MB / 0.7224 GB, free: 24.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/2.424, allocations: 75.53 kB / 0.7225 GB, free: 24.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004422/2.428, allocations: 4.575 MB / 0.727 GB, free: 20.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002312/2.431, allocations: 1.259 MB / 0.7282 GB, free: 19.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/2.432, allocations: 180.7 kB / 0.7284 GB, free: 19.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006925/2.433, allocations: 0.6847 MB / 0.7291 GB, free: 18.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009189/2.442, allocations: 3.653 MB / 0.7326 GB, free: 17.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01295/2.455, allocations: 8.625 MB / 0.741 GB, free: 9.605 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01293/2.468, allocations: 5.564 MB / 0.7465 GB, free: 7.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001941/2.469, allocations: 53.28 kB / 0.7465 GB, free: 7.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.03894/2.508, allocations: 12.93 MB / 0.7592 GB, free: 2.441 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/2.508, allocations: 80 kB / 0.7592 GB, free: 2.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000283/2.508, allocations: 180 kB / 0.7594 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007188/2.515, allocations: 1.689 MB / 0.7611 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01528/2.531, allocations: 2.13 MB / 0.7631 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02502/2.556, allocations: 11.4 MB / 0.7743 GB, free: 4.891 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/2.568, allocations: 0.5141 MB / 0.7748 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002467/2.57, allocations: 0.5229 MB / 0.7753 GB, free: 3.957 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 806 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1089): * Single equations (assignments): 1084 * 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.003169/2.573, allocations: 0.7775 MB / 0.776 GB, free: 3.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001859/2.575, allocations: 0.5896 MB / 0.7766 GB, free: 2.586 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02753/2.603, allocations: 7.613 MB / 0.784 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.37e-05/2.603, allocations: 32 kB / 0.7841 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.192e-05/2.603, allocations: 16.52 kB / 0.7841 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.884e-05/2.603, allocations: 13.03 kB / 0.7841 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05453/2.658, allocations: 15.99 MB / 0.7997 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.864e-05/2.658, allocations: 4 kB / 0.7997 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006964/2.665, allocations: 0.6384 MB / 0.8003 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007137/2.672, allocations: 1.413 MB / 0.8017 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/2.673, allocations: 65.39 kB / 0.8018 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02489/2.698, allocations: 10.61 MB / 0.8121 GB, free: 2.387 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/2.698, allocations: 4 kB / 0.8122 GB, free: 2.383 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03485/2.733, allocations: 12.58 MB / 0.8244 GB, free: 5.559 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005401/2.738, allocations: 1.204 MB / 0.8256 GB, free: 4.328 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002642/2.741, allocations: 63.67 kB / 0.8257 GB, free: 4.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006799/2.748, allocations: 231.6 kB / 0.8259 GB, free: 4.043 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/2.749, allocations: 205.9 kB / 0.8261 GB, free: 3.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007846/2.75, allocations: 87.98 kB / 0.8262 GB, free: 3.754 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01321/2.763, allocations: 4.22 MB / 0.8303 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.22e-07/2.763, allocations: 0 / 0.8303 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01314/2.777, allocations: 1.696 MB / 0.832 GB, free: 13.86 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (279): * Single equations (assignments): 274 * 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.3729/3.15, allocations: 13.97 MB / 0.8456 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02422/3.174, allocations: 8.748 MB / 0.8541 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/3.174, allocations: 4.688 kB / 0.8541 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01113/3.185, allocations: 3.61 MB / 0.8577 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006912/3.192, allocations: 0.7115 MB / 0.8584 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05458/3.247, allocations: 16.75 MB / 0.8747 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0128/3.26, allocations: 5.178 MB / 0.8798 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008941/3.269, allocations: 3.335 MB / 0.883 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.944e-06/3.269, allocations: 5.875 kB / 0.883 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.708/8.977, allocations: 193.5 MB / 1.072 GB, free: 143 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat does not exist to compare? outputFormat=mat