Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.127/2.127, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.718e-05/2.74e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4438/0.5474, allocations: 93.58 MB / 409.9 MB, free: 15.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003395/0.5478, allocations: 78.77 kB / 410 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8288/1.377, allocations: 127.8 MB / 0.5251 GB, free: 82.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.377, allocations: 0 / 0.5251 GB, free: 82.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004265/1.377, allocations: 124.1 kB / 0.5252 GB, free: 82.88 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2370 * Number of variables: 2370 Notification: Performance of Generate backend data structure: time 0.02687/1.404, allocations: 6.37 MB / 0.5315 GB, free: 80.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.404, allocations: 9.719 kB / 0.5315 GB, free: 80.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05208/1.456, allocations: 7.1 MB / 0.5384 GB, free: 79.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02633/1.483, allocations: 7.227 MB / 0.5455 GB, free: 77.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004643/1.483, allocations: 215.1 kB / 0.5457 GB, free: 77.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004154/1.487, allocations: 388.4 kB / 0.546 GB, free: 77.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02445/1.512, allocations: 9.633 MB / 0.5555 GB, free: 73.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03811/1.55, allocations: 14.13 MB / 0.5693 GB, free: 58.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005088/1.55, allocations: 79.25 kB / 0.5693 GB, free: 58.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003498/1.554, allocations: 36 kB / 0.5694 GB, free: 58.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003512/1.558, allocations: 1.581 MB / 0.5709 GB, free: 56.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1067/1.664, allocations: 63.85 MB / 0.6333 GB, free: 7.879 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01317/1.678, allocations: 5.938 MB / 0.6391 GB, free: 1.816 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3141/1.992, allocations: 4.048 MB / 0.643 GB, free: 91.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/1.993, allocations: 0.5611 MB / 0.6436 GB, free: 90.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.444e-05/1.993, allocations: 67.81 kB / 0.6436 GB, free: 90.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=315): time 7.745e-06/1.993, allocations: 1.438 kB / 0.6436 GB, free: 90.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=359): time 0.1082/2.101, allocations: 28.67 MB / 0.6716 GB, free: 87.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.43e-05/2.101, allocations: 223.1 kB / 0.6718 GB, free: 86.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009801/2.111, allocations: 3.896 MB / 0.6756 GB, free: 85.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001152/2.112, allocations: 25.7 kB / 0.6757 GB, free: 85.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004069/2.116, allocations: 4.371 MB / 0.6799 GB, free: 82.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002514/2.119, allocations: 1.27 MB / 0.6812 GB, free: 81.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/2.121, allocations: 0 / 0.6812 GB, free: 81.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009484/2.122, allocations: 0.6658 MB / 0.6818 GB, free: 80.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008921/2.131, allocations: 3.511 MB / 0.6853 GB, free: 79.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01233/2.143, allocations: 8.149 MB / 0.6932 GB, free: 71.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/2.155, allocations: 5.285 MB / 0.6984 GB, free: 70.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002059/2.156, allocations: 46.44 kB / 0.6984 GB, free: 70.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=1118) (initialization): time 0.03634/2.192, allocations: 12.08 MB / 0.7102 GB, free: 66.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/2.192, allocations: 79.33 kB / 0.7103 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002908/2.193, allocations: 161.4 kB / 0.7104 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007277/2.2, allocations: 1.71 MB / 0.7121 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.014/2.214, allocations: 2.018 MB / 0.7141 GB, free: 65.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02213/2.236, allocations: 10.89 MB / 0.7247 GB, free: 57.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01027/2.246, allocations: 351.6 kB / 0.7251 GB, free: 57.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00256/2.249, allocations: 0.493 MB / 0.7255 GB, free: 57.03 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 48 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (1046): * Single equations (assignments): 1041 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004456/2.254, allocations: 0.5224 MB / 0.726 GB, free: 56.51 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02111/2.275, allocations: 7.149 MB / 0.733 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00202/2.277, allocations: 466 kB / 0.7335 GB, free: 50.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/2.299, allocations: 7.184 MB / 0.7405 GB, free: 44.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.426e-05/2.299, allocations: 44.73 kB / 0.7405 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.908e-05/2.299, allocations: 12 kB / 0.7405 GB, free: 44.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.482e-05/2.299, allocations: 17.48 kB / 0.7406 GB, free: 44.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04533/2.345, allocations: 15.01 MB / 0.7552 GB, free: 31.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.012e-05/2.345, allocations: 10.47 kB / 0.7552 GB, free: 31.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006593/2.351, allocations: 0.6138 MB / 0.7558 GB, free: 31.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006351/2.358, allocations: 1.412 MB / 0.7572 GB, free: 30.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001032/2.359, allocations: 11.66 kB / 0.7572 GB, free: 30.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01946/2.378, allocations: 9.883 MB / 0.7669 GB, free: 21.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/2.378, allocations: 0 / 0.7669 GB, free: 21.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02851/2.407, allocations: 11.89 MB / 0.7785 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00414/2.411, allocations: 1.042 MB / 0.7795 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002117/2.413, allocations: 7.984 kB / 0.7795 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005745/2.419, allocations: 199.6 kB / 0.7797 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/2.421, allocations: 210.1 kB / 0.7799 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006223/2.421, allocations: 95.98 kB / 0.78 GB, free: 9.184 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006513/2.428, allocations: 2.603 MB / 0.7825 GB, free: 6.586 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.273e-06/2.428, allocations: 0 / 0.7825 GB, free: 6.586 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0114/2.439, allocations: 1.408 MB / 0.7839 GB, free: 5.184 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (305): * Single equations (assignments): 300 * 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.03346/2.473, allocations: 12.83 MB / 0.7964 GB, free: 8.234 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3311/2.804, allocations: 8.852 MB / 0.8051 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/2.804, allocations: 1.375 kB / 0.8051 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01139/2.815, allocations: 3.682 MB / 0.8087 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005354/2.821, allocations: 480.8 kB / 0.8091 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05712/2.878, allocations: 15.53 MB / 0.8243 GB, free: 99.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01298/2.891, allocations: 4.939 MB / 0.8291 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009557/2.9, allocations: 3.119 MB / 0.8322 GB, free: 97.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.683e-06/2.901, allocations: 3.5 kB / 0.8322 GB, free: 97.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.49/8.391, allocations: 178.4 MB / 1.006 GB, free: 111.7 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat