Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.364e-05/4.365e-05, allocations: 4 kB / 305 MB, free: 5.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 54.85 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1863/0.5931, allocations: 100.8 MB / 460.6 MB, free: 12.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.5934, allocations: 75.95 kB / 460.7 MB, free: 11.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7925/1.386, allocations: 114.5 MB / 0.5617 GB, free: 101.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.386, allocations: 0 / 0.5617 GB, free: 101.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004023/1.386, allocations: 108.3 kB / 0.5618 GB, free: 101.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.02317/1.41, allocations: 5.466 MB / 0.5672 GB, free: 99.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/1.41, allocations: 7.531 kB / 0.5672 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00502/1.415, allocations: 0.9836 MB / 0.5681 GB, free: 98.94 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05205/1.467, allocations: 6.954 MB / 0.5749 GB, free: 98.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02487/1.492, allocations: 6.862 MB / 0.5816 GB, free: 96.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005521/1.492, allocations: 418.2 kB / 0.582 GB, free: 96.07 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003127/1.496, allocations: 0.544 MB / 0.5825 GB, free: 95.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04032/1.536, allocations: 13.2 MB / 0.5954 GB, free: 88.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004035/1.536, allocations: 73.92 kB / 0.5955 GB, free: 88.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002749/1.539, allocations: 265.2 kB / 0.5958 GB, free: 88.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002845/1.542, allocations: 1.255 MB / 0.597 GB, free: 88.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03222/1.574, allocations: 10.27 MB / 0.607 GB, free: 79.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0861/1.66, allocations: 59.65 MB / 0.6653 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/1.679, allocations: 4.595 MB / 0.6698 GB, free: 13.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004587/1.683, allocations: 2.218 MB / 0.6719 GB, free: 11.67 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01671/1.7, allocations: 6.495 MB / 0.6783 GB, free: 5.113 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/1.7, allocations: 59.72 kB / 0.6783 GB, free: 5.047 MB / 458.7 MB Notification: Performance of pre-optimization done (n=183): time 6.512e-06/1.7, allocations: 0 / 0.6783 GB, free: 5.047 MB / 458.7 MB Notification: Performance of matching and sorting (n=195): time 0.06822/1.769, allocations: 14.54 MB / 0.6925 GB, free: 6.328 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/1.769, allocations: 227 kB / 0.6927 GB, free: 6.059 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01928/1.788, allocations: 5.147 MB / 0.6978 GB, free: 0.9375 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005713/1.789, allocations: 57.7 kB / 0.6978 GB, free: 0.875 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3502/2.139, allocations: 3.926 MB / 0.7017 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/2.14, allocations: 0.7716 MB / 0.7024 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009667/2.141, allocations: 141.9 kB / 0.7025 GB, free: 106.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006515/2.142, allocations: 0.6113 MB / 0.7031 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006793/2.149, allocations: 2.244 MB / 0.7053 GB, free: 106.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0108/2.16, allocations: 6.687 MB / 0.7119 GB, free: 100.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/2.17, allocations: 3.862 MB / 0.7156 GB, free: 100.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002884/2.171, allocations: 45.88 kB / 0.7157 GB, free: 100.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02723/2.198, allocations: 8.484 MB / 0.724 GB, free: 99.92 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/2.198, allocations: 85.19 kB / 0.724 GB, free: 99.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002513/2.198, allocations: 157.6 kB / 0.7242 GB, free: 99.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/2.201, allocations: 0.6113 MB / 0.7248 GB, free: 99.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01039/2.211, allocations: 1.638 MB / 0.7264 GB, free: 99.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008868/2.22, allocations: 5.727 MB / 0.732 GB, free: 96.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008618/2.229, allocations: 386.3 kB / 0.7323 GB, free: 96.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001708/2.23, allocations: 447.3 kB / 0.7328 GB, free: 96.83 MB / 474.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.001984/2.232, allocations: 0.6526 MB / 0.7334 GB, free: 96.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/2.234, allocations: 489.2 kB / 0.7339 GB, free: 96.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00821/2.242, allocations: 3.017 MB / 0.7368 GB, free: 94.88 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.395e-05/2.242, allocations: 28.06 kB / 0.7369 GB, free: 94.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/2.242, allocations: 3.969 kB / 0.7369 GB, free: 94.88 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/2.242, allocations: 10.34 kB / 0.7369 GB, free: 94.88 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/2.266, allocations: 8.436 MB / 0.7451 GB, free: 91.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/2.266, allocations: 3.812 kB / 0.7451 GB, free: 91.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/2.27, allocations: 325.3 kB / 0.7454 GB, free: 91.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/2.271, allocations: 362 kB / 0.7458 GB, free: 91.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003535/2.272, allocations: 36.03 kB / 0.7458 GB, free: 91.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007555/2.279, allocations: 5.075 MB / 0.7508 GB, free: 87.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/2.279, allocations: 3.562 kB / 0.7508 GB, free: 87.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01261/2.292, allocations: 6.094 MB / 0.7567 GB, free: 84.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003066/2.295, allocations: 0.8004 MB / 0.7575 GB, free: 84.25 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/2.297, allocations: 42.97 kB / 0.7575 GB, free: 84.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00394/2.301, allocations: 91.48 kB / 0.7576 GB, free: 84.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006176/2.301, allocations: 118.9 kB / 0.7577 GB, free: 84.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/2.302, allocations: 56.28 kB / 0.7578 GB, free: 84.17 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009941/2.312, allocations: 3.669 MB / 0.7614 GB, free: 82.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.312, allocations: 0 / 0.7614 GB, free: 82.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009857/2.321, allocations: 1.218 MB / 0.7626 GB, free: 82.79 MB / 474.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.01291/2.334, allocations: 7.29 MB / 0.7697 GB, free: 78.67 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01269/2.347, allocations: 5.385 MB / 0.7749 GB, free: 76.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.347, allocations: 2.312 kB / 0.7749 GB, free: 76.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003542/2.351, allocations: 1.655 MB / 0.7766 GB, free: 75.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00518/2.356, allocations: 0.6028 MB / 0.7771 GB, free: 75.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03964/2.396, allocations: 12.03 MB / 0.7889 GB, free: 66.31 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009714/2.405, allocations: 4.239 MB / 0.793 GB, free: 63.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006041/2.412, allocations: 2.63 MB / 0.7956 GB, free: 60.73 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/2.412, allocations: 0 / 0.7956 GB, free: 60.73 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.164/7.576, allocations: 151.2 MB / 0.9432 GB, free: 96.13 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat