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.862/1.862, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.396e-05/4.412e-05, allocations: 7.375 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4303/0.5397, allocations: 94.46 MB / 416.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.54, allocations: 67.97 kB / 416.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8254/1.365, allocations: 132.7 MB / 0.5362 GB, free: 89.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.366, allocations: 0 / 0.5362 GB, free: 89.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003954/1.366, allocations: 133.8 kB / 0.5364 GB, free: 89.18 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.02631/1.392, allocations: 6.43 MB / 0.5426 GB, free: 86.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/1.392, allocations: 7.562 kB / 0.5427 GB, free: 86.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005546/1.398, allocations: 1.193 MB / 0.5438 GB, free: 86.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05221/1.45, allocations: 7.131 MB / 0.5508 GB, free: 86.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02563/1.476, allocations: 7.231 MB / 0.5578 GB, free: 84.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005796/1.476, allocations: 0.5054 MB / 0.5583 GB, free: 84.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003726/1.48, allocations: 0.6676 MB / 0.559 GB, free: 84.13 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04921/1.529, allocations: 16.59 MB / 0.5752 GB, free: 75.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003507/1.53, allocations: 95.44 kB / 0.5753 GB, free: 75.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002502/1.532, allocations: 320.1 kB / 0.5756 GB, free: 75.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003193/1.536, allocations: 1.557 MB / 0.5771 GB, free: 75.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04282/1.578, allocations: 13.78 MB / 0.5906 GB, free: 63.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4499/2.028, allocations: 70.09 MB / 0.659 GB, free: 37.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03512/2.064, allocations: 7.835 MB / 0.6667 GB, free: 36.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008719/2.072, allocations: 3.888 MB / 0.6705 GB, free: 36.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003711/2.073, allocations: 57.17 kB / 0.6705 GB, free: 36.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.848e-05/2.073, allocations: 71.81 kB / 0.6706 GB, free: 36.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=290): time 8.776e-06/2.073, allocations: 3.438 kB / 0.6706 GB, free: 36.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=332): time 0.1258/2.199, allocations: 28.23 MB / 0.6982 GB, free: 32.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/2.199, allocations: 215.2 kB / 0.6984 GB, free: 32.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.212, allocations: 5.573 MB / 0.7038 GB, free: 32.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001027/2.213, allocations: 77.59 kB / 0.7039 GB, free: 32.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003847/2.217, allocations: 4.375 MB / 0.7081 GB, free: 29.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/2.219, allocations: 1.237 MB / 0.7094 GB, free: 28.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/2.22, allocations: 175.8 kB / 0.7095 GB, free: 28.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005147/2.22, allocations: 0.6696 MB / 0.7102 GB, free: 28.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008899/2.229, allocations: 3.71 MB / 0.7138 GB, free: 27.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01235/2.242, allocations: 8.517 MB / 0.7221 GB, free: 19.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/2.254, allocations: 5.559 MB / 0.7275 GB, free: 17.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/2.255, allocations: 48.81 kB / 0.7276 GB, free: 17.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.03757/2.292, allocations: 13.34 MB / 0.7406 GB, free: 13.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/2.292, allocations: 76 kB / 0.7407 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000286/2.293, allocations: 171.5 kB / 0.7409 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007351/2.3, allocations: 1.689 MB / 0.7425 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01451/2.315, allocations: 2.09 MB / 0.7445 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02124/2.336, allocations: 11.36 MB / 0.7556 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01097/2.347, allocations: 0.5278 MB / 0.7561 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00216/2.349, allocations: 0.5035 MB / 0.7566 GB, free: 368 kB / 426.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.002649/2.352, allocations: 0.7411 MB / 0.7574 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001851/2.354, allocations: 0.5552 MB / 0.7579 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02405/2.378, allocations: 7.43 MB / 0.7652 GB, free: 8.992 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.961e-05/2.378, allocations: 40.69 kB / 0.7652 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.278e-05/2.378, allocations: 8 kB / 0.7652 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.694e-05/2.378, allocations: 23.2 kB / 0.7652 GB, free: 8.945 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0583/2.436, allocations: 16.58 MB / 0.7814 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-05/2.436, allocations: 7.953 kB / 0.7814 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007196/2.444, allocations: 0.6524 MB / 0.7821 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006983/2.451, allocations: 1.416 MB / 0.7834 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009605/2.452, allocations: 63.98 kB / 0.7835 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02485/2.476, allocations: 10.58 MB / 0.7938 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/2.477, allocations: 7.953 kB / 0.7938 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03567/2.512, allocations: 12.7 MB / 0.8062 GB, free: 2.961 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0054/2.518, allocations: 1.212 MB / 0.8074 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002173/2.52, allocations: 63.94 kB / 0.8075 GB, free: 1.664 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006681/2.527, allocations: 282 kB / 0.8078 GB, free: 1.398 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001444/2.528, allocations: 197.8 kB / 0.8079 GB, free: 1.203 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004695/2.529, allocations: 87.98 kB / 0.808 GB, free: 1.117 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01169/2.54, allocations: 3.945 MB / 0.8119 GB, free: 13.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.54, allocations: 3.938 kB / 0.8119 GB, free: 13.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01189/2.552, allocations: 1.672 MB / 0.8135 GB, free: 11.5 MB / 490.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.03662/2.589, allocations: 14.07 MB / 0.8273 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02501/2.614, allocations: 9.189 MB / 0.8362 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/2.614, allocations: 0 / 0.8362 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01199/2.626, allocations: 3.794 MB / 0.8399 GB, free: 220 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3712/2.997, allocations: 0.6605 MB / 0.8406 GB, free: 153.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05996/3.057, allocations: 16.34 MB / 0.8565 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01274/3.07, allocations: 4.988 MB / 0.8614 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009216/3.079, allocations: 3.221 MB / 0.8646 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.413e-06/3.079, allocations: 0 / 0.8646 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.738/8.818, allocations: 188.3 MB / 1.048 GB, free: 148.1 MB / 0.4948 GB 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