Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.919/1.919, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.635e-05/4.647e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.607, allocations: 98.49 MB / 420.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.6073, allocations: 75.03 kB / 420.4 MB, free: 7.328 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.268/1.875, allocations: 239.9 MB / 0.6448 GB, free: 10.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.875, allocations: 4 kB / 0.6448 GB, free: 10.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009122/1.876, allocations: 256 kB / 0.645 GB, free: 10.62 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: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.7321/2.608, allocations: 12.34 MB / 0.6571 GB, free: 27.99 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/2.608, allocations: 9.938 kB / 0.6571 GB, free: 27.99 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01215/2.62, allocations: 2.197 MB / 0.6592 GB, free: 27.84 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1003/2.721, allocations: 12.82 MB / 0.6718 GB, free: 26.98 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05044/2.771, allocations: 13.28 MB / 0.6847 GB, free: 26.38 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001438/2.773, allocations: 0.9581 MB / 0.6857 GB, free: 26.35 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007535/2.78, allocations: 1.276 MB / 0.6869 GB, free: 26.34 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1005/2.881, allocations: 29.9 MB / 0.7161 GB, free: 20.18 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001015/2.882, allocations: 149.1 kB / 0.7162 GB, free: 20.17 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006727/2.889, allocations: 0.5904 MB / 0.7168 GB, free: 20.17 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006758/2.895, allocations: 2.859 MB / 0.7196 GB, free: 20.13 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08107/2.977, allocations: 24.29 MB / 0.7433 GB, free: 14.99 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6629/3.64, allocations: 127.8 MB / 0.8681 GB, free: 21.55 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06223/3.702, allocations: 13.95 MB / 0.8818 GB, free: 20.79 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01577/3.718, allocations: 7.963 MB / 0.8895 GB, free: 20.71 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05257/3.77, allocations: 19.83 MB / 0.9089 GB, free: 17.71 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.146e-05/3.77, allocations: 102.7 kB / 0.909 GB, free: 17.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=562): time 9.979e-06/3.77, allocations: 0 / 0.909 GB, free: 17.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=646): time 0.273/4.043, allocations: 59.13 MB / 0.9667 GB, free: 0.6641 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/4.044, allocations: 377.9 kB / 0.9671 GB, free: 228 kB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03757/4.081, allocations: 10.87 MB / 0.9777 GB, free: 7.57 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001955/4.083, allocations: 128 kB / 0.9778 GB, free: 7.441 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01013/4.093, allocations: 8.006 MB / 0.9857 GB, free: 152 kB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005009/4.099, allocations: 2.376 MB / 0.988 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003391/4.102, allocations: 318.6 kB / 0.9883 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002012/4.104, allocations: 0.9717 MB / 0.9892 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01999/4.124, allocations: 6.618 MB / 0.9957 GB, free: 7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03143/4.156, allocations: 15.04 MB / 1.01 GB, free: 5.145 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03808/4.194, allocations: 9.919 MB / 1.02 GB, free: 13.12 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004861/4.194, allocations: 84 kB / 1.02 GB, free: 13.04 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.4609/4.655, allocations: 24.05 MB / 1.044 GB, free: 130 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003156/4.656, allocations: 131 kB / 1.044 GB, free: 130 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007763/4.656, allocations: 296.3 kB / 1.044 GB, free: 130 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/4.673, allocations: 3.304 MB / 1.047 GB, free: 130 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02757/4.7, allocations: 3.768 MB / 1.051 GB, free: 130 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04359/4.744, allocations: 22.58 MB / 1.073 GB, free: 124.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02162/4.765, allocations: 0.9408 MB / 1.074 GB, free: 124.6 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00504/4.771, allocations: 0.8808 MB / 1.075 GB, free: 124.6 MB / 0.5418 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.007213/4.778, allocations: 1.287 MB / 1.076 GB, free: 124.5 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004126/4.782, allocations: 1.069 MB / 1.077 GB, free: 124.5 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04422/4.826, allocations: 14.6 MB / 1.091 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/4.826, allocations: 66.78 kB / 1.091 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.619e-05/4.826, allocations: 16.47 kB / 1.091 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001788/4.827, allocations: 34.95 kB / 1.091 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09847/4.925, allocations: 32.39 MB / 1.123 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001487/4.925, allocations: 12.16 kB / 1.123 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01326/4.939, allocations: 1.28 MB / 1.124 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01314/4.952, allocations: 2.829 MB / 1.127 GB, free: 116.9 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00193/4.954, allocations: 132.2 kB / 1.127 GB, free: 116.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04163/4.995, allocations: 21.07 MB / 1.148 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/4.996, allocations: 22.75 kB / 1.148 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05937/5.055, allocations: 26.07 MB / 1.173 GB, free: 89.57 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009746/5.065, allocations: 2.185 MB / 1.175 GB, free: 87.59 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005119/5.07, allocations: 119 kB / 1.176 GB, free: 87.48 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01277/5.083, allocations: 451 kB / 1.176 GB, free: 87.2 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002834/5.086, allocations: 417.7 kB / 1.176 GB, free: 86.93 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001905/5.088, allocations: 171 kB / 1.177 GB, free: 86.77 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.02211/5.11, allocations: 7.648 MB / 1.184 GB, free: 80.05 MB / 0.5418 GB Notification: Performance of sort global known variables: time 9.22e-07/5.11, allocations: 0 / 1.184 GB, free: 80.05 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02184/5.132, allocations: 3.109 MB / 1.187 GB, free: 76.96 MB / 0.5418 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.06382/5.195, allocations: 27.2 MB / 1.214 GB, free: 52.26 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.3985/5.594, allocations: 16.59 MB / 1.23 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.972e-05/5.594, allocations: 1.812 kB / 1.23 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.02224/5.616, allocations: 7.02 MB / 1.237 GB, free: 137.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01298/5.629, allocations: 1.34 MB / 1.238 GB, free: 137.3 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1078/5.737, allocations: 31.23 MB / 1.268 GB, free: 132.2 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02318/5.761, allocations: 8.875 MB / 1.277 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01782/5.778, allocations: 6.518 MB / 1.283 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of SimCode: time 1.262e-06/5.778, allocations: 3.594 kB / 1.283 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.814/14.59, allocations: 450.4 MB / 1.723 GB, free: 97.33 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat