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.865/1.865, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.637e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4344/0.5492, allocations: 98.5 MB / 420.4 MB, free: 7.359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.5495, allocations: 79.11 kB / 420.4 MB, free: 7.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.268/1.817, allocations: 239.9 MB / 0.6448 GB, free: 10.83 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.063e-06/1.817, allocations: 0 / 0.6448 GB, free: 10.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009779/1.818, allocations: 255.9 kB / 0.6451 GB, free: 10.58 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.739/2.557, allocations: 12.34 MB / 0.6571 GB, free: 28.07 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/2.557, allocations: 10.14 kB / 0.6571 GB, free: 28.07 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01254/2.57, allocations: 2.194 MB / 0.6593 GB, free: 27.92 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.103/2.673, allocations: 12.82 MB / 0.6718 GB, free: 27.06 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05896/2.732, allocations: 13.28 MB / 0.6848 GB, free: 26.46 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001415/2.734, allocations: 0.9581 MB / 0.6857 GB, free: 26.44 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007753/2.741, allocations: 1.27 MB / 0.6869 GB, free: 26.43 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09828/2.84, allocations: 29.75 MB / 0.716 GB, free: 20.32 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009478/2.841, allocations: 149.6 kB / 0.7161 GB, free: 20.31 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006158/2.847, allocations: 0.593 MB / 0.7167 GB, free: 20.31 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006579/2.853, allocations: 2.864 MB / 0.7195 GB, free: 20.27 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1012/2.955, allocations: 23.85 MB / 0.7428 GB, free: 15.28 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7442/3.699, allocations: 127.7 MB / 0.8675 GB, free: 22.75 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06233/3.761, allocations: 13.88 MB / 0.8811 GB, free: 22 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01621/3.778, allocations: 7.956 MB / 0.8889 GB, free: 21.93 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05235/3.83, allocations: 19.83 MB / 0.9082 GB, free: 18.93 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001113/3.83, allocations: 94.47 kB / 0.9083 GB, free: 18.89 MB / 490.8 MB Notification: Performance of pre-optimization done (n=562): time 1.009e-05/3.83, allocations: 0 / 0.9083 GB, free: 18.89 MB / 490.8 MB Notification: Performance of matching and sorting (n=646): time 0.2705/4.101, allocations: 59.13 MB / 0.9661 GB, free: 1.164 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/4.101, allocations: 381.6 kB / 0.9664 GB, free: 0.7227 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03708/4.138, allocations: 10.68 MB / 0.9769 GB, free: 7.566 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002493/4.141, allocations: 125.7 kB / 0.977 GB, free: 7.438 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01333/4.154, allocations: 8.002 MB / 0.9848 GB, free: 156 kB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.006409/4.16, allocations: 2.382 MB / 0.9871 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00357/4.164, allocations: 312 kB / 0.9874 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002304/4.166, allocations: 0.9682 MB / 0.9884 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02057/4.187, allocations: 6.624 MB / 0.9948 GB, free: 7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03036/4.218, allocations: 14.96 MB / 1.009 GB, free: 5.234 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02791/4.245, allocations: 9.886 MB / 1.019 GB, free: 13.16 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004556/4.246, allocations: 84 kB / 1.019 GB, free: 13.08 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.485/4.731, allocations: 23.45 MB / 1.042 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002603/4.731, allocations: 131 kB / 1.042 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007046/4.732, allocations: 293.5 kB / 1.042 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01668/4.749, allocations: 3.302 MB / 1.046 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02845/4.777, allocations: 3.758 MB / 1.049 GB, free: 131.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04509/4.822, allocations: 22.6 MB / 1.071 GB, free: 125.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02175/4.844, allocations: 0.936 MB / 1.072 GB, free: 125.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004873/4.849, allocations: 0.8839 MB / 1.073 GB, free: 125.8 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.007884/4.857, allocations: 1.279 MB / 1.074 GB, free: 125.7 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004528/4.862, allocations: 1.068 MB / 1.076 GB, free: 125.7 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04654/4.908, allocations: 14.59 MB / 1.09 GB, free: 125.3 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/4.908, allocations: 67.41 kB / 1.09 GB, free: 125.3 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001021/4.909, allocations: 15.72 kB / 1.09 GB, free: 125.3 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001869/4.909, allocations: 40.38 kB / 1.09 GB, free: 125.3 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1039/5.013, allocations: 32.36 MB / 1.121 GB, free: 119 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000123/5.013, allocations: 10.78 kB / 1.122 GB, free: 119 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01337/5.026, allocations: 1.283 MB / 1.123 GB, free: 119 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01331/5.04, allocations: 2.828 MB / 1.126 GB, free: 118.4 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002071/5.042, allocations: 128.4 kB / 1.126 GB, free: 118.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04337/5.085, allocations: 21.09 MB / 1.146 GB, free: 107.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.54e-05/5.085, allocations: 17.78 kB / 1.146 GB, free: 107.2 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06084/5.146, allocations: 26.08 MB / 1.172 GB, free: 91.1 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009378/5.155, allocations: 2.185 MB / 1.174 GB, free: 89.11 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004959/5.161, allocations: 118.3 kB / 1.174 GB, free: 89 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01231/5.173, allocations: 448.5 kB / 1.174 GB, free: 88.72 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002575/5.176, allocations: 414.2 kB / 1.175 GB, free: 88.45 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001188/5.177, allocations: 170 kB / 1.175 GB, free: 88.29 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.02128/5.198, allocations: 7.652 MB / 1.182 GB, free: 81.57 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.283e-06/5.198, allocations: 0 / 1.182 GB, free: 81.57 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02315/5.221, allocations: 3.102 MB / 1.185 GB, free: 78.48 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.06251/5.284, allocations: 27.21 MB / 1.212 GB, free: 53.78 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.03953/5.323, allocations: 16.08 MB / 1.228 GB, free: 39.23 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.187e-05/5.323, allocations: 0 / 1.228 GB, free: 39.23 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.3996/5.723, allocations: 7.344 MB / 1.235 GB, free: 141.1 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01404/5.737, allocations: 1.331 MB / 1.236 GB, free: 141.1 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1169/5.854, allocations: 31.19 MB / 1.267 GB, free: 136.1 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02546/5.88, allocations: 8.88 MB / 1.275 GB, free: 135 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01825/5.898, allocations: 6.521 MB / 1.282 GB, free: 135 MB / 0.5418 GB Notification: Performance of SimCode: time 3.427e-06/5.898, allocations: 3.531 kB / 1.282 GB, free: 135 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.879/14.78, allocations: 447.7 MB / 1.719 GB, free: 119.7 MB / 0.5574 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