Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.239/2.239, allocations: 235 MB / 247.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.033e-05, allocations: 4.938 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4452, allocations: 54.86 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.6545, allocations: 103.9 MB / 463.7 MB, free: 8.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.6548, allocations: 85.03 kB / 463.8 MB, free: 8.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.201/1.856, allocations: 223.6 MB / 0.6713 GB, free: 16.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.856, allocations: 0 / 0.6713 GB, free: 16.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001006/1.857, allocations: 235.9 kB / 0.6716 GB, free: 15.85 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.0578/1.915, allocations: 11.39 MB / 0.6827 GB, free: 4.359 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/1.915, allocations: 8.031 kB / 0.6827 GB, free: 4.352 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009939/1.925, allocations: 2.064 MB / 0.6847 GB, free: 2.273 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09839/2.023, allocations: 12.64 MB / 0.6971 GB, free: 5.594 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.762/2.785, allocations: 12.54 MB / 0.7093 GB, free: 47.87 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001734/2.787, allocations: 0.902 MB / 0.7102 GB, free: 47.84 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007742/2.795, allocations: 1.208 MB / 0.7114 GB, free: 47.84 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1012/2.896, allocations: 28.01 MB / 0.7387 GB, free: 42.41 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001222/2.897, allocations: 139 kB / 0.7389 GB, free: 42.41 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006535/2.904, allocations: 0.5548 MB / 0.7394 GB, free: 42.41 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006396/2.91, allocations: 2.673 MB / 0.742 GB, free: 42.39 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07686/2.987, allocations: 22.83 MB / 0.7643 GB, free: 42.33 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2262/3.213, allocations: 116.9 MB / 0.8784 GB, free: 2.504 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.09071/3.304, allocations: 14.08 MB / 0.8922 GB, free: 8.77 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01862/3.323, allocations: 7.863 MB / 0.8999 GB, free: 1.57 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3804/3.703, allocations: 2.345 MB / 0.9022 GB, free: 106.9 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/3.704, allocations: 96.44 kB / 0.9022 GB, free: 106.9 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.079e-05/3.704, allocations: 0 / 0.9022 GB, free: 106.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.3067/4.01, allocations: 53.32 MB / 0.9543 GB, free: 98.92 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/4.011, allocations: 327.1 kB / 0.9546 GB, free: 98.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02425/4.035, allocations: 8.969 MB / 0.9634 GB, free: 97.87 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001978/4.037, allocations: 125.3 kB / 0.9635 GB, free: 97.84 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.006886/4.044, allocations: 7.311 MB / 0.9706 GB, free: 93.98 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004111/4.048, allocations: 2.341 MB / 0.9729 GB, free: 92.59 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00304/4.051, allocations: 289.8 kB / 0.9732 GB, free: 92.59 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001505/4.053, allocations: 0.9146 MB / 0.9741 GB, free: 92.24 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01735/4.07, allocations: 6.384 MB / 0.9803 GB, free: 92.21 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02272/4.093, allocations: 13.88 MB / 0.9939 GB, free: 81.86 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02233/4.115, allocations: 9.349 MB / 1.003 GB, free: 78.94 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003253/4.116, allocations: 76.19 kB / 1.003 GB, free: 78.94 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.0667/4.182, allocations: 22.09 MB / 1.025 GB, free: 67.97 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002166/4.182, allocations: 116 kB / 1.025 GB, free: 67.86 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004397/4.183, allocations: 264 kB / 1.025 GB, free: 67.6 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01438/4.197, allocations: 3.27 MB / 1.028 GB, free: 65.18 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02497/4.222, allocations: 3.495 MB / 1.032 GB, free: 62.26 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04899/4.271, allocations: 22.57 MB / 1.054 GB, free: 41.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02923/4.301, allocations: 0.8675 MB / 1.055 GB, free: 41.25 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003902/4.305, allocations: 0.8108 MB / 1.055 GB, free: 40.48 MB / 0.5262 GB 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.006454/4.311, allocations: 1.176 MB / 1.056 GB, free: 39.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003487/4.315, allocations: 0.9433 MB / 1.057 GB, free: 38.34 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05005/4.365, allocations: 14.44 MB / 1.071 GB, free: 26.61 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001306/4.365, allocations: 64 kB / 1.072 GB, free: 26.54 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.993e-05/4.365, allocations: 16.56 kB / 1.072 GB, free: 26.53 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002058/4.365, allocations: 34.19 kB / 1.072 GB, free: 26.52 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5613/4.927, allocations: 31.25 MB / 1.102 GB, free: 86.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.916e-05/4.927, allocations: 7.469 kB / 1.102 GB, free: 86.76 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01338/4.94, allocations: 1.218 MB / 1.103 GB, free: 86.76 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01451/4.955, allocations: 2.829 MB / 1.106 GB, free: 86.72 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002102/4.957, allocations: 119.5 kB / 1.106 GB, free: 86.72 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04431/5.001, allocations: 21.07 MB / 1.127 GB, free: 81.39 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/5.001, allocations: 10.34 kB / 1.127 GB, free: 81.39 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07001/5.071, allocations: 23.75 MB / 1.15 GB, free: 78.43 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009033/5.08, allocations: 2.038 MB / 1.152 GB, free: 78.34 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004868/5.085, allocations: 119.4 kB / 1.152 GB, free: 78.34 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01219/5.098, allocations: 488.4 kB / 1.153 GB, free: 78.33 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002761/5.1, allocations: 393.2 kB / 1.153 GB, free: 78.32 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002047/5.102, allocations: 168 kB / 1.153 GB, free: 78.32 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01849/5.121, allocations: 6.412 MB / 1.159 GB, free: 77.99 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.415e-06/5.121, allocations: 0 / 1.159 GB, free: 77.99 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02133/5.142, allocations: 2.933 MB / 1.162 GB, free: 77.99 MB / 0.5262 GB 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.066/5.208, allocations: 24.96 MB / 1.187 GB, free: 67.27 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0382/5.247, allocations: 15.58 MB / 1.202 GB, free: 62.09 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/5.247, allocations: 0 / 1.202 GB, free: 62.09 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02124/5.268, allocations: 6.97 MB / 1.209 GB, free: 59.39 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01246/5.281, allocations: 1.195 MB / 1.21 GB, free: 58.5 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1031/5.384, allocations: 29.13 MB / 1.238 GB, free: 33.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02222/5.406, allocations: 8.314 MB / 1.246 GB, free: 27.73 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01834/5.424, allocations: 5.967 MB / 1.252 GB, free: 22.18 MB / 0.5262 GB Notification: Performance of SimCode: time 1.924e-06/5.425, allocations: 0 / 1.252 GB, free: 22.18 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.216/13.64, allocations: 416.4 MB / 1.659 GB, free: 43.15 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat