Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.964/1.964, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.785e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.547, allocations: 92.86 MB / 414.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.5474, allocations: 74.91 kB / 414.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.912/1.459, allocations: 142.8 MB / 0.5445 GB, free: 88.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.459, allocations: 0 / 0.5445 GB, free: 88.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004863/1.46, allocations: 142.2 kB / 0.5446 GB, free: 88.03 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: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.029/1.489, allocations: 6.843 MB / 0.5513 GB, free: 85.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/1.489, allocations: 11.09 kB / 0.5513 GB, free: 85.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006544/1.496, allocations: 1.229 MB / 0.5525 GB, free: 85.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07107/1.567, allocations: 9.539 MB / 0.5618 GB, free: 84.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0315/1.598, allocations: 8.837 MB / 0.5705 GB, free: 81.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000813/1.599, allocations: 0.5276 MB / 0.571 GB, free: 81.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00418/1.603, allocations: 0.6975 MB / 0.5717 GB, free: 80.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05217/1.656, allocations: 16.44 MB / 0.5877 GB, free: 66.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005588/1.656, allocations: 91.12 kB / 0.5878 GB, free: 66.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003559/1.66, allocations: 343.7 kB / 0.5881 GB, free: 65.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/1.663, allocations: 1.533 MB / 0.5896 GB, free: 64.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04109/1.704, allocations: 12.82 MB / 0.6021 GB, free: 51.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4806/2.185, allocations: 72.56 MB / 0.673 GB, free: 31.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02489/2.21, allocations: 5.831 MB / 0.6787 GB, free: 30.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007343/2.217, allocations: 3.071 MB / 0.6817 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004055/2.218, allocations: 51.95 kB / 0.6817 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.457e-05/2.218, allocations: 58.88 kB / 0.6818 GB, free: 30.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=249): time 1.034e-05/2.218, allocations: 0.9062 kB / 0.6818 GB, free: 30.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=267): time 0.1098/2.328, allocations: 19.49 MB / 0.7008 GB, free: 25.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/2.328, allocations: 271.9 kB / 0.7011 GB, free: 25.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01529/2.343, allocations: 6.141 MB / 0.7071 GB, free: 24.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007149/2.344, allocations: 68.64 kB / 0.7072 GB, free: 24.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004506/2.349, allocations: 4.786 MB / 0.7118 GB, free: 21.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001682/2.35, allocations: 1.031 MB / 0.7128 GB, free: 21.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008474/2.351, allocations: 173.6 kB / 0.713 GB, free: 21.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004947/2.352, allocations: 0.6719 MB / 0.7137 GB, free: 21.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006512/2.358, allocations: 2.879 MB / 0.7165 GB, free: 20.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009884/2.368, allocations: 8.076 MB / 0.7244 GB, free: 12.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/2.379, allocations: 4.804 MB / 0.729 GB, free: 11.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001689/2.379, allocations: 53.28 kB / 0.7291 GB, free: 11.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.02847/2.408, allocations: 10.6 MB / 0.7394 GB, free: 8.105 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/2.408, allocations: 86.5 kB / 0.7395 GB, free: 8.105 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/2.408, allocations: 190.9 kB / 0.7397 GB, free: 8.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003002/2.411, allocations: 0.8355 MB / 0.7405 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/2.423, allocations: 1.992 MB / 0.7425 GB, free: 7.699 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/2.436, allocations: 8.477 MB / 0.7507 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.447, allocations: 480.6 kB / 0.7512 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001628/2.448, allocations: 0.5198 MB / 0.7517 GB, free: 1.562 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001696/2.45, allocations: 0.7767 MB / 0.7525 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001524/2.452, allocations: 0.5938 MB / 0.7531 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01283/2.464, allocations: 4.496 MB / 0.7574 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.181e-05/2.465, allocations: 35.89 kB / 0.7575 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/2.465, allocations: 6.75 kB / 0.7575 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.248e-05/2.465, allocations: 13.83 kB / 0.7575 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03361/2.498, allocations: 11.6 MB / 0.7688 GB, free: 6.559 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/2.498, allocations: 0 / 0.7688 GB, free: 6.559 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004509/2.503, allocations: 440.9 kB / 0.7692 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00257/2.505, allocations: 0.5192 MB / 0.7698 GB, free: 5.805 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002889/2.506, allocations: 47.89 kB / 0.7698 GB, free: 5.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/2.52, allocations: 7.59 MB / 0.7772 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/2.52, allocations: 0 / 0.7772 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/2.54, allocations: 7.872 MB / 0.7849 GB, free: 7.402 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00425/2.544, allocations: 1.014 MB / 0.7859 GB, free: 6.453 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001849/2.546, allocations: 46.98 kB / 0.7859 GB, free: 6.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005278/2.552, allocations: 152 kB / 0.7861 GB, free: 6.305 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000904/2.552, allocations: 160.2 kB / 0.7862 GB, free: 6.207 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003187/2.553, allocations: 67.56 kB / 0.7863 GB, free: 6.145 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01297/2.566, allocations: 4.37 MB / 0.7906 GB, free: 2.305 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.222e-06/2.566, allocations: 0 / 0.7906 GB, free: 2.305 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01271/2.579, allocations: 1.559 MB / 0.7921 GB, free: 0.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(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.02243/2.601, allocations: 8.727 MB / 0.8006 GB, free: 8.824 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01901/2.62, allocations: 7.049 MB / 0.8075 GB, free: 2.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.62, allocations: 4 kB / 0.8075 GB, free: 2.406 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006209/2.626, allocations: 2.457 MB / 0.8099 GB, free: 156 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007773/2.634, allocations: 0.8067 MB / 0.8107 GB, free: 15.63 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05469/2.689, allocations: 15.46 MB / 0.8258 GB, free: 2.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01365/2.703, allocations: 5.214 MB / 0.8309 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009688/2.712, allocations: 3.416 MB / 0.8342 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.074e-06/2.713, allocations: 0 / 0.8342 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.294/9.006, allocations: 219.5 MB / 1.049 GB, free: 139.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat