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.923/1.923, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.495e-05/4.516e-05, allocations: 8 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 48.71 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4711/0.5992, allocations: 97.06 MB / 418.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5995, allocations: 71.97 kB / 419 MB, free: 8.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.173/1.773, allocations: 223.3 MB / 0.6272 GB, free: 28.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.305e-06/1.773, allocations: 0 / 0.6272 GB, free: 28.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000812/1.774, allocations: 236 kB / 0.6274 GB, free: 28.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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.05027/1.824, allocations: 11.37 MB / 0.6385 GB, free: 17.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.824, allocations: 15.97 kB / 0.6385 GB, free: 17.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01071/1.835, allocations: 2.072 MB / 0.6405 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09278/1.928, allocations: 12.63 MB / 0.6529 GB, free: 2.289 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7032/2.631, allocations: 12.53 MB / 0.6651 GB, free: 38.71 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001497/2.632, allocations: 0.8999 MB / 0.666 GB, free: 38.68 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007522/2.64, allocations: 1.198 MB / 0.6672 GB, free: 38.67 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09519/2.735, allocations: 28.12 MB / 0.6946 GB, free: 33.19 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001039/2.736, allocations: 135.8 kB / 0.6948 GB, free: 33.18 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006196/2.743, allocations: 0.5519 MB / 0.6953 GB, free: 33.18 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006207/2.749, allocations: 2.68 MB / 0.6979 GB, free: 33.15 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07509/2.824, allocations: 23.2 MB / 0.7206 GB, free: 31.01 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2218/3.046, allocations: 116.8 MB / 0.8347 GB, free: 1.84 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4224/3.468, allocations: 14.37 MB / 0.8487 GB, free: 96.99 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01817/3.486, allocations: 7.873 MB / 0.8564 GB, free: 96.93 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004135/3.491, allocations: 2.35 MB / 0.8587 GB, free: 94.94 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/3.491, allocations: 92.97 kB / 0.8588 GB, free: 94.89 MB / 490.8 MB Notification: Performance of pre-optimization done (n=559): time 1.063e-05/3.491, allocations: 2.625 kB / 0.8588 GB, free: 94.89 MB / 490.8 MB Notification: Performance of matching and sorting (n=643): time 0.2324/3.723, allocations: 53.34 MB / 0.9109 GB, free: 87.01 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/3.723, allocations: 322.6 kB / 0.9112 GB, free: 86.69 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02135/3.745, allocations: 8.977 MB / 0.9199 GB, free: 85.68 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001916/3.747, allocations: 124.8 kB / 0.92 GB, free: 85.57 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006803/3.754, allocations: 7.3 MB / 0.9272 GB, free: 79.8 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004111/3.758, allocations: 2.342 MB / 0.9295 GB, free: 78.06 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002815/3.761, allocations: 289.7 kB / 0.9297 GB, free: 77.84 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001341/3.762, allocations: 0.9106 MB / 0.9306 GB, free: 77.27 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01683/3.779, allocations: 6.384 MB / 0.9369 GB, free: 75.02 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02217/3.801, allocations: 13.95 MB / 0.9505 GB, free: 62.76 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0214/3.823, allocations: 9.364 MB / 0.9596 GB, free: 55.54 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000289/3.823, allocations: 75.94 kB / 0.9597 GB, free: 55.46 MB / 490.8 MB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.0653/3.888, allocations: 22.81 MB / 0.982 GB, free: 36.65 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002134/3.888, allocations: 120 kB / 0.9821 GB, free: 36.53 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004663/3.889, allocations: 265.5 kB / 0.9824 GB, free: 36.27 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01396/3.903, allocations: 3.261 MB / 0.9855 GB, free: 33.86 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02475/3.928, allocations: 3.498 MB / 0.989 GB, free: 30.94 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04224/3.97, allocations: 22.56 MB / 1.011 GB, free: 10.64 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01839/3.988, allocations: 0.8653 MB / 1.012 GB, free: 9.938 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005617/3.994, allocations: 1.027 MB / 1.013 GB, free: 9.633 MB / 490.8 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.3851/4.379, allocations: 1.179 MB / 1.014 GB, free: 79.61 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003314/4.383, allocations: 0.9492 MB / 1.015 GB, free: 79.61 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0512/4.434, allocations: 14.44 MB / 1.029 GB, free: 79.28 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001574/4.434, allocations: 65.94 kB / 1.029 GB, free: 79.28 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.664e-05/4.434, allocations: 16.06 kB / 1.029 GB, free: 79.28 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001861/4.434, allocations: 32.91 kB / 1.029 GB, free: 79.28 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09642/4.531, allocations: 31.1 MB / 1.059 GB, free: 77.88 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001025/4.531, allocations: 3.594 kB / 1.059 GB, free: 77.88 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01244/4.543, allocations: 1.222 MB / 1.061 GB, free: 77.88 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/4.556, allocations: 2.834 MB / 1.063 GB, free: 77.84 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001873/4.558, allocations: 120.3 kB / 1.064 GB, free: 77.84 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04169/4.6, allocations: 21.06 MB / 1.084 GB, free: 68.59 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/4.6, allocations: 9.531 kB / 1.084 GB, free: 68.59 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06118/4.661, allocations: 23.76 MB / 1.107 GB, free: 58.57 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009057/4.67, allocations: 2.042 MB / 1.109 GB, free: 57.8 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004535/4.675, allocations: 115.7 kB / 1.109 GB, free: 57.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/4.686, allocations: 485.4 kB / 1.11 GB, free: 57.65 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002697/4.689, allocations: 394 kB / 1.11 GB, free: 57.59 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001856/4.691, allocations: 171 kB / 1.11 GB, free: 57.55 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0178/4.709, allocations: 6.418 MB / 1.117 GB, free: 55.37 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.062e-06/4.709, allocations: 0 / 1.117 GB, free: 55.37 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02028/4.729, allocations: 2.933 MB / 1.12 GB, free: 55.04 MB / 490.8 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.06354/4.793, allocations: 24.96 MB / 1.144 GB, free: 34.69 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03751/4.83, allocations: 16.04 MB / 1.16 GB, free: 20.89 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/4.83, allocations: 4 kB / 1.16 GB, free: 20.89 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02049/4.851, allocations: 7.052 MB / 1.167 GB, free: 14.64 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/4.862, allocations: 1.19 MB / 1.168 GB, free: 13.64 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5346/5.397, allocations: 30.14 MB / 1.197 GB, free: 93.4 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0232/5.42, allocations: 8.308 MB / 1.205 GB, free: 92.38 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01654/5.437, allocations: 5.963 MB / 1.211 GB, free: 92.38 MB / 0.4949 GB Notification: Performance of SimCode: time 1.433e-06/5.437, allocations: 0 / 1.211 GB, free: 92.38 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.188/13.63, allocations: 418.4 MB / 1.62 GB, free: 115.5 MB / 0.5262 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