Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.864/1.864, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.525e-05/3.534e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4738/0.5804, allocations: 97.06 MB / 418.9 MB, free: 8.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5807, allocations: 79.11 kB / 419 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.155/1.735, allocations: 223.3 MB / 0.6272 GB, free: 28.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.735, allocations: 0 / 0.6272 GB, free: 28.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007812/1.736, allocations: 244 kB / 0.6274 GB, free: 28.7 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.04929/1.786, allocations: 11.37 MB / 0.6385 GB, free: 17.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/1.786, allocations: 12.03 kB / 0.6385 GB, free: 17.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01019/1.796, allocations: 2.076 MB / 0.6406 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09516/1.891, allocations: 12.64 MB / 0.6529 GB, free: 2.461 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.396/2.287, allocations: 12.52 MB / 0.6651 GB, free: 41.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001404/2.289, allocations: 0.9043 MB / 0.666 GB, free: 41.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007145/2.296, allocations: 1.201 MB / 0.6672 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1112/2.407, allocations: 27.98 MB / 0.6945 GB, free: 35.65 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009608/2.408, allocations: 134.4 kB / 0.6946 GB, free: 35.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005973/2.414, allocations: 0.5525 MB / 0.6952 GB, free: 35.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006196/2.42, allocations: 2.675 MB / 0.6978 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07588/2.496, allocations: 22.8 MB / 0.7201 GB, free: 33.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2434/2.74, allocations: 116.8 MB / 0.8341 GB, free: 5.102 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.438/3.178, allocations: 13.54 MB / 0.8474 GB, free: 98.47 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03561/3.213, allocations: 7.869 MB / 0.855 GB, free: 98.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005564/3.219, allocations: 2.353 MB / 0.8573 GB, free: 96.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/3.219, allocations: 100.8 kB / 0.8574 GB, free: 96.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=559): time 1.585e-05/3.219, allocations: 0.9375 kB / 0.8574 GB, free: 96.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=643): time 0.237/3.456, allocations: 53.31 MB / 0.9095 GB, free: 88.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/3.456, allocations: 326 kB / 0.9098 GB, free: 88.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02376/3.48, allocations: 8.985 MB / 0.9186 GB, free: 87.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002093/3.482, allocations: 123 kB / 0.9187 GB, free: 87.42 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006907/3.489, allocations: 7.296 MB / 0.9258 GB, free: 81.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004309/3.494, allocations: 2.335 MB / 0.9281 GB, free: 80.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003149/3.497, allocations: 290.7 kB / 0.9284 GB, free: 79.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001323/3.498, allocations: 0.9177 MB / 0.9293 GB, free: 79.26 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01675/3.515, allocations: 6.386 MB / 0.9355 GB, free: 77.02 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02184/3.537, allocations: 13.87 MB / 0.9491 GB, free: 64.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02178/3.559, allocations: 9.349 MB / 0.9582 GB, free: 59.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002739/3.559, allocations: 76 kB / 0.9583 GB, free: 59.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.06362/3.623, allocations: 22.09 MB / 0.9798 GB, free: 41.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001896/3.623, allocations: 116 kB / 0.98 GB, free: 41.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003977/3.623, allocations: 264 kB / 0.9802 GB, free: 41.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01377/3.637, allocations: 3.261 MB / 0.9834 GB, free: 38.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02477/3.662, allocations: 3.492 MB / 0.9868 GB, free: 35.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04208/3.704, allocations: 22.57 MB / 1.009 GB, free: 15.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01966/3.724, allocations: 0.8723 MB / 1.01 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004002/3.728, allocations: 0.8026 MB / 1.01 GB, free: 14.03 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1741): * Single equations (assignments): 1734 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.4063/4.134, allocations: 1.179 MB / 1.012 GB, free: 83.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004382/4.139, allocations: 0.9499 MB / 1.013 GB, free: 83.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05484/4.193, allocations: 14.44 MB / 1.027 GB, free: 83.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001634/4.194, allocations: 65.56 kB / 1.027 GB, free: 83.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001065/4.194, allocations: 15.28 kB / 1.027 GB, free: 83.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002004/4.194, allocations: 36.77 kB / 1.027 GB, free: 83.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1197/4.314, allocations: 31.09 MB / 1.057 GB, free: 81.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001305/4.314, allocations: 6.5 kB / 1.057 GB, free: 81.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01634/4.33, allocations: 1.215 MB / 1.058 GB, free: 81.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0135/4.344, allocations: 2.834 MB / 1.061 GB, free: 81.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002164/4.346, allocations: 124.4 kB / 1.061 GB, free: 81.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04374/4.39, allocations: 21.07 MB / 1.082 GB, free: 72.74 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/4.39, allocations: 10.72 kB / 1.082 GB, free: 72.74 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06364/4.453, allocations: 23.76 MB / 1.105 GB, free: 62.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00921/4.463, allocations: 2.041 MB / 1.107 GB, free: 61.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004856/4.468, allocations: 112.2 kB / 1.107 GB, free: 61.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01242/4.48, allocations: 489 kB / 1.108 GB, free: 61.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002732/4.483, allocations: 390.8 kB / 1.108 GB, free: 61.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001936/4.485, allocations: 170.7 kB / 1.108 GB, free: 61.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01924/4.504, allocations: 6.422 MB / 1.114 GB, free: 59.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.82e-07/4.504, allocations: 0.6562 kB / 1.114 GB, free: 59.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0214/4.526, allocations: 2.929 MB / 1.117 GB, free: 59.19 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,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 (554): * Single equations (assignments): 547 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.06528/4.591, allocations: 24.97 MB / 1.142 GB, free: 38.48 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03802/4.629, allocations: 15.58 MB / 1.157 GB, free: 24.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/4.629, allocations: 4 kB / 1.157 GB, free: 24.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02147/4.651, allocations: 6.97 MB / 1.164 GB, free: 18.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01227/4.663, allocations: 1.19 MB / 1.165 GB, free: 17.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4754/5.138, allocations: 29.11 MB / 1.193 GB, free: 97.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02457/5.163, allocations: 8.304 MB / 1.201 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01857/5.182, allocations: 5.963 MB / 1.207 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of SimCode: time 2.725e-06/5.182, allocations: 1.25 kB / 1.207 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.565/13.75, allocations: 416 MB / 1.613 GB, free: 119.6 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat