Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.566e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3979/0.398, allocations: 54.85 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.5978, allocations: 105.3 MB / 465.2 MB, free: 7.523 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5981, allocations: 75.94 kB / 465.2 MB, free: 7.449 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.243/1.841, allocations: 240.3 MB / 0.689 GB, free: 13.98 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.841, allocations: 0 / 0.689 GB, free: 13.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001017/1.843, allocations: 252 kB / 0.6892 GB, free: 13.73 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.05566/1.898, allocations: 12.36 MB / 0.7013 GB, free: 1.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/1.898, allocations: 8.031 kB / 0.7013 GB, free: 1.262 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3754/2.274, allocations: 2.191 MB / 0.7034 GB, free: 42.69 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09746/2.371, allocations: 12.82 MB / 0.7159 GB, free: 41.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04636/2.418, allocations: 13.28 MB / 0.7289 GB, free: 41.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001274/2.419, allocations: 0.9624 MB / 0.7298 GB, free: 41.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006673/2.426, allocations: 1.276 MB / 0.7311 GB, free: 41.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1168/2.542, allocations: 29.78 MB / 0.7602 GB, free: 35.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001018/2.544, allocations: 153.3 kB / 0.7603 GB, free: 35.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006513/2.55, allocations: 0.593 MB / 0.7609 GB, free: 35.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006701/2.557, allocations: 2.857 MB / 0.7637 GB, free: 35.04 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08963/2.647, allocations: 23.87 MB / 0.787 GB, free: 32.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7188/3.365, allocations: 127.8 MB / 0.9118 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.065/3.43, allocations: 13.88 MB / 0.9253 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0159/3.446, allocations: 7.96 MB / 0.9331 GB, free: 31.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0534/3.5, allocations: 19.83 MB / 0.9525 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001163/3.5, allocations: 99.56 kB / 0.9526 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.073e-05/3.5, allocations: 0 / 0.9526 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2681/3.768, allocations: 59.14 MB / 1.01 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/3.768, allocations: 382.3 kB / 1.011 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03062/3.799, allocations: 10.6 MB / 1.021 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001998/3.801, allocations: 122.7 kB / 1.021 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007772/3.809, allocations: 8.02 MB / 1.029 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00421/3.813, allocations: 2.38 MB / 1.031 GB, free: 1.637 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003305/3.817, allocations: 311.6 kB / 1.032 GB, free: 1.336 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001738/3.818, allocations: 0.972 MB / 1.033 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05504/3.873, allocations: 8.797 MB / 1.041 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02946/3.903, allocations: 14.96 MB / 1.056 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02635/3.929, allocations: 9.881 MB / 1.065 GB, free: 6.305 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003781/3.93, allocations: 84 kB / 1.065 GB, free: 6.223 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.0998/4.03, allocations: 23.98 MB / 1.089 GB, free: 5.289 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004048/4.03, allocations: 132 kB / 1.089 GB, free: 5.16 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000822/4.031, allocations: 296 kB / 1.089 GB, free: 4.871 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02127/4.052, allocations: 3.31 MB / 1.093 GB, free: 1.559 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0319/4.084, allocations: 3.755 MB / 1.096 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05197/4.136, allocations: 22.58 MB / 1.118 GB, free: 6.703 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02132/4.158, allocations: 0.9363 MB / 1.119 GB, free: 5.766 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004332/4.162, allocations: 0.8865 MB / 1.12 GB, free: 4.879 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * Number of states: 0 () * Number of discrete variables: 117 (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],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1897): * Single equations (assignments): 1890 * 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.007426/4.169, allocations: 1.282 MB / 1.121 GB, free: 3.586 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004335/4.174, allocations: 1.068 MB / 1.122 GB, free: 2.504 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05056/4.224, allocations: 14.59 MB / 1.137 GB, free: 3.863 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001318/4.225, allocations: 68 kB / 1.137 GB, free: 3.797 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-05/4.225, allocations: 16 kB / 1.137 GB, free: 3.781 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001822/4.225, allocations: 35.88 kB / 1.137 GB, free: 3.746 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5232/4.748, allocations: 32.35 MB / 1.168 GB, free: 169.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001121/4.748, allocations: 15.7 kB / 1.168 GB, free: 169.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01326/4.762, allocations: 1.283 MB / 1.17 GB, free: 169.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/4.775, allocations: 2.826 MB / 1.172 GB, free: 169.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002049/4.777, allocations: 132.7 kB / 1.172 GB, free: 169.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04231/4.819, allocations: 21.08 MB / 1.193 GB, free: 163.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.528e-05/4.819, allocations: 15.38 kB / 1.193 GB, free: 163.8 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06244/4.882, allocations: 26.08 MB / 1.219 GB, free: 156.9 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009984/4.892, allocations: 2.184 MB / 1.221 GB, free: 156.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005395/4.897, allocations: 122.1 kB / 1.221 GB, free: 156.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01297/4.91, allocations: 446.6 kB / 1.221 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002781/4.913, allocations: 413.6 kB / 1.222 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001752/4.915, allocations: 171.1 kB / 1.222 GB, free: 156 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.02268/4.938, allocations: 7.644 MB / 1.229 GB, free: 153.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.623e-06/4.938, allocations: 0 / 1.229 GB, free: 153.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02481/4.963, allocations: 3.106 MB / 1.232 GB, free: 153.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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.06713/5.03, allocations: 27.2 MB / 1.259 GB, free: 139.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.03964/5.07, allocations: 16.09 MB / 1.275 GB, free: 132.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.997e-05/5.07, allocations: 1 kB / 1.275 GB, free: 132.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.02059/5.09, allocations: 6.928 MB / 1.281 GB, free: 126.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01437/5.105, allocations: 1.351 MB / 1.283 GB, free: 125.2 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09796/5.203, allocations: 31.2 MB / 1.313 GB, free: 98.63 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02169/5.224, allocations: 8.877 MB / 1.322 GB, free: 92.29 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0166/5.241, allocations: 6.529 MB / 1.328 GB, free: 86.21 MB / 0.6198 GB Notification: Performance of SimCode: time 1.583e-06/5.241, allocations: 0 / 1.328 GB, free: 86.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.938/14.18, allocations: 448.2 MB / 1.766 GB, free: 74.23 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat