Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.051e-05/4.068e-05, allocations: 9.547 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.592, allocations: 94.46 MB / 416.3 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.5924, allocations: 83.12 kB / 416.4 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/1.444, allocations: 132.7 MB / 0.5363 GB, free: 88.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.356e-06/1.444, allocations: 0 / 0.5363 GB, free: 88.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004049/1.444, allocations: 132.6 kB / 0.5364 GB, free: 88.82 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: 2406 * Number of variables: 2406 Notification: Performance of Generate backend data structure: time 0.02632/1.471, allocations: 6.429 MB / 0.5427 GB, free: 86.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/1.471, allocations: 7.781 kB / 0.5427 GB, free: 86.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005463/1.476, allocations: 1.197 MB / 0.5439 GB, free: 86.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05168/1.528, allocations: 7.138 MB / 0.5508 GB, free: 85.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0258/1.554, allocations: 7.222 MB / 0.5579 GB, free: 84.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006893/1.555, allocations: 0.4992 MB / 0.5584 GB, free: 84.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004008/1.559, allocations: 0.6704 MB / 0.559 GB, free: 84.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05167/1.61, allocations: 16.51 MB / 0.5751 GB, free: 75.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004404/1.611, allocations: 88.06 kB / 0.5752 GB, free: 75.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003317/1.614, allocations: 325.9 kB / 0.5755 GB, free: 75.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/1.618, allocations: 1.567 MB / 0.5771 GB, free: 75.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04276/1.661, allocations: 13.51 MB / 0.5903 GB, free: 63.51 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1125/1.773, allocations: 70.1 MB / 0.6587 GB, free: 7.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3514/2.125, allocations: 7.802 MB / 0.6663 GB, free: 96.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009377/2.134, allocations: 3.885 MB / 0.6701 GB, free: 96.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003416/2.134, allocations: 55.45 kB / 0.6702 GB, free: 96.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.507e-05/2.134, allocations: 76.61 kB / 0.6703 GB, free: 96.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=290): time 8.476e-06/2.135, allocations: 0.8125 kB / 0.6703 GB, free: 96.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=332): time 0.1681/2.303, allocations: 28.23 MB / 0.6978 GB, free: 92.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/2.303, allocations: 217.3 kB / 0.698 GB, free: 92.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01523/2.318, allocations: 5.569 MB / 0.7035 GB, free: 91.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001033/2.319, allocations: 74.7 kB / 0.7035 GB, free: 91.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004005/2.323, allocations: 4.379 MB / 0.7078 GB, free: 88.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002344/2.326, allocations: 1.228 MB / 0.709 GB, free: 87.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/2.327, allocations: 176.4 kB / 0.7092 GB, free: 87.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007688/2.328, allocations: 0.6727 MB / 0.7098 GB, free: 87.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009602/2.337, allocations: 3.706 MB / 0.7135 GB, free: 86.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01317/2.351, allocations: 8.474 MB / 0.7217 GB, free: 78.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/2.363, allocations: 5.56 MB / 0.7272 GB, free: 76.68 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002082/2.364, allocations: 48.88 kB / 0.7272 GB, free: 76.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.0372/2.401, allocations: 12.87 MB / 0.7398 GB, free: 72.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/2.401, allocations: 75.72 kB / 0.7399 GB, free: 72.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003171/2.401, allocations: 169.9 kB / 0.74 GB, free: 72.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007255/2.409, allocations: 1.682 MB / 0.7417 GB, free: 72.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01464/2.423, allocations: 2.091 MB / 0.7437 GB, free: 72.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02122/2.445, allocations: 11.36 MB / 0.7548 GB, free: 64.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01121/2.456, allocations: 0.5288 MB / 0.7553 GB, free: 63.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002278/2.458, allocations: 0.4961 MB / 0.7558 GB, free: 63.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * Number of states: 0 () * Number of discrete variables: 51 (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 (1047): * Single equations (assignments): 1042 * 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.003435/2.462, allocations: 0.7549 MB / 0.7565 GB, free: 62.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001656/2.463, allocations: 0.5515 MB / 0.7571 GB, free: 62.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02268/2.486, allocations: 7.427 MB / 0.7643 GB, free: 55.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.708e-05/2.486, allocations: 34.08 kB / 0.7644 GB, free: 55.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/2.486, allocations: 12 kB / 0.7644 GB, free: 55.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.45e-05/2.486, allocations: 14.05 kB / 0.7644 GB, free: 55.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05025/2.537, allocations: 16.26 MB / 0.7803 GB, free: 42.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.055e-05/2.537, allocations: 4 kB / 0.7803 GB, free: 42.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006882/2.544, allocations: 0.6497 MB / 0.7809 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006533/2.55, allocations: 1.423 MB / 0.7823 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001088/2.551, allocations: 63.42 kB / 0.7824 GB, free: 41.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/2.572, allocations: 10.59 MB / 0.7927 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/2.572, allocations: 4 kB / 0.7927 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0305/2.603, allocations: 12.7 MB / 0.8051 GB, free: 20.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004858/2.608, allocations: 1.213 MB / 0.8063 GB, free: 19.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/2.61, allocations: 66.02 kB / 0.8063 GB, free: 19.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006732/2.617, allocations: 268.5 kB / 0.8066 GB, free: 19 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/2.619, allocations: 204.8 kB / 0.8068 GB, free: 18.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001071/2.62, allocations: 91.75 kB / 0.8069 GB, free: 18.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01074/2.63, allocations: 3.94 MB / 0.8107 GB, free: 14.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.631, allocations: 0 / 0.8107 GB, free: 14.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01228/2.643, allocations: 1.668 MB / 0.8124 GB, free: 13.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (278): * Single equations (assignments): 273 * 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.03213/2.675, allocations: 14.07 MB / 0.8261 GB, free: 14.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3434/3.018, allocations: 8.903 MB / 0.8348 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/3.019, allocations: 2 kB / 0.8348 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01218/3.031, allocations: 3.764 MB / 0.8385 GB, free: 106.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006489/3.037, allocations: 0.6653 MB / 0.8391 GB, free: 106.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05883/3.096, allocations: 16.32 MB / 0.8551 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01265/3.109, allocations: 4.987 MB / 0.8599 GB, free: 103.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008802/3.118, allocations: 3.221 MB / 0.8631 GB, free: 102.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.774e-06/3.118, allocations: 0 / 0.8631 GB, free: 102.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.555/8.673, allocations: 186.9 MB / 1.046 GB, free: 99.81 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat