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.917/1.917, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.442e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5438, allocations: 92.86 MB / 414.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.5442, allocations: 71.95 kB / 414.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8401/1.384, allocations: 142.8 MB / 0.5445 GB, free: 88.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.384, allocations: 0 / 0.5445 GB, free: 88.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004896/1.385, allocations: 140.8 kB / 0.5446 GB, free: 88.53 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.02816/1.413, allocations: 6.843 MB / 0.5513 GB, free: 85.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/1.413, allocations: 11.09 kB / 0.5513 GB, free: 85.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005972/1.419, allocations: 1.233 MB / 0.5525 GB, free: 85.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07585/1.495, allocations: 9.537 MB / 0.5618 GB, free: 84.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0416/1.537, allocations: 8.833 MB / 0.5704 GB, free: 81.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008871/1.538, allocations: 0.5249 MB / 0.5709 GB, free: 81.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004581/1.542, allocations: 0.7025 MB / 0.5716 GB, free: 81.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05661/1.599, allocations: 16.52 MB / 0.5878 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004458/1.599, allocations: 103 kB / 0.5879 GB, free: 66.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002301/1.602, allocations: 339.5 kB / 0.5882 GB, free: 65.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/1.605, allocations: 1.53 MB / 0.5897 GB, free: 64.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03837/1.643, allocations: 13.1 MB / 0.6025 GB, free: 51.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4492/2.092, allocations: 72.56 MB / 0.6733 GB, free: 31.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02457/2.117, allocations: 5.859 MB / 0.679 GB, free: 30.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007054/2.124, allocations: 3.067 MB / 0.682 GB, free: 30.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003975/2.124, allocations: 53.14 kB / 0.6821 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.508e-05/2.125, allocations: 57.5 kB / 0.6821 GB, free: 30.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=249): time 6.442e-06/2.125, allocations: 2.844 kB / 0.6821 GB, free: 30.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=267): time 0.08611/2.211, allocations: 19.51 MB / 0.7012 GB, free: 25.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/2.211, allocations: 263.3 kB / 0.7014 GB, free: 24.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01646/2.227, allocations: 6.139 MB / 0.7074 GB, free: 24.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007246/2.228, allocations: 67.58 kB / 0.7075 GB, free: 24.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004734/2.233, allocations: 4.789 MB / 0.7122 GB, free: 21.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001757/2.235, allocations: 1.029 MB / 0.7132 GB, free: 21.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/2.236, allocations: 173.4 kB / 0.7134 GB, free: 21.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007891/2.237, allocations: 0.6711 MB / 0.714 GB, free: 20.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007639/2.244, allocations: 2.877 MB / 0.7168 GB, free: 20.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/2.256, allocations: 8.131 MB / 0.7248 GB, free: 12.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01111/2.267, allocations: 4.801 MB / 0.7294 GB, free: 11.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002282/2.267, allocations: 51.69 kB / 0.7295 GB, free: 11.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.02997/2.297, allocations: 11.12 MB / 0.7404 GB, free: 7.758 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001662/2.297, allocations: 86.19 kB / 0.7404 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003121/2.298, allocations: 184.8 kB / 0.7406 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003394/2.301, allocations: 0.8434 MB / 0.7414 GB, free: 7.594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01273/2.314, allocations: 1.984 MB / 0.7434 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01345/2.327, allocations: 8.495 MB / 0.7517 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/2.338, allocations: 473.6 kB / 0.7521 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00237/2.341, allocations: 0.5119 MB / 0.7526 GB, free: 1.219 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.0034/2.344, allocations: 0.7679 MB / 0.7534 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/2.346, allocations: 0.5888 MB / 0.7539 GB, free: 272 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01444/2.361, allocations: 4.49 MB / 0.7583 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.668e-05/2.361, allocations: 29.09 kB / 0.7584 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.121e-05/2.361, allocations: 6.812 kB / 0.7584 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.256e-05/2.361, allocations: 17.41 kB / 0.7584 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03929/2.4, allocations: 11.6 MB / 0.7697 GB, free: 5.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.207e-05/2.4, allocations: 4 kB / 0.7697 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004876/2.405, allocations: 429.9 kB / 0.7701 GB, free: 5.223 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002947/2.408, allocations: 0.5269 MB / 0.7706 GB, free: 4.816 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008488/2.409, allocations: 57 kB / 0.7707 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/2.423, allocations: 7.6 MB / 0.7781 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/2.423, allocations: 3.828 kB / 0.7781 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02186/2.445, allocations: 7.879 MB / 0.7858 GB, free: 6.477 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004743/2.45, allocations: 1.007 MB / 0.7868 GB, free: 5.527 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002157/2.452, allocations: 51.19 kB / 0.7868 GB, free: 5.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005524/2.458, allocations: 153.3 kB / 0.787 GB, free: 5.375 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/2.459, allocations: 155.2 kB / 0.7871 GB, free: 5.281 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003572/2.459, allocations: 75.64 kB / 0.7872 GB, free: 5.211 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01321/2.473, allocations: 4.368 MB / 0.7915 GB, free: 1.375 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.473, allocations: 0 / 0.7915 GB, free: 1.375 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01306/2.486, allocations: 1.64 MB / 0.7931 GB, free: 0 / 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.02218/2.508, allocations: 8.736 MB / 0.8016 GB, free: 8.078 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01919/2.527, allocations: 7.335 MB / 0.8088 GB, free: 1.359 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.527, allocations: 8 kB / 0.8088 GB, free: 1.352 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006262/2.534, allocations: 2.489 MB / 0.8112 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006928/2.541, allocations: 0.766 MB / 0.812 GB, free: 14.41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05561/2.596, allocations: 15.46 MB / 0.8271 GB, free: 1.023 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01462/2.611, allocations: 5.206 MB / 0.8321 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009661/2.621, allocations: 3.428 MB / 0.8355 GB, free: 8.465 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/2.621, allocations: 0 / 0.8355 GB, free: 8.465 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.463/9.083, allocations: 221 MB / 1.051 GB, free: 133.1 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