Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.148/2.148, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.812e-05/2.822e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09724, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5228, allocations: 94.16 MB / 410.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.5231, allocations: 80.08 kB / 410.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8318/1.355, allocations: 128.7 MB / 0.5267 GB, free: 83.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.355, allocations: 0 / 0.5267 GB, free: 83.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004693/1.355, allocations: 144.6 kB / 0.5268 GB, free: 83.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02794/1.383, allocations: 6.655 MB / 0.5333 GB, free: 81.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.384, allocations: 7.25 kB / 0.5333 GB, free: 81.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05244/1.436, allocations: 7.133 MB / 0.5403 GB, free: 79.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02654/1.463, allocations: 7.437 MB / 0.5475 GB, free: 77.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004335/1.463, allocations: 217.3 kB / 0.5477 GB, free: 77.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003501/1.467, allocations: 395.2 kB / 0.5481 GB, free: 77.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02322/1.49, allocations: 9.247 MB / 0.5571 GB, free: 72.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03668/1.527, allocations: 14.32 MB / 0.5711 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004204/1.527, allocations: 95.11 kB / 0.5712 GB, free: 56.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002836/1.53, allocations: 44 kB / 0.5713 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003338/1.533, allocations: 1.545 MB / 0.5728 GB, free: 55.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1266/1.66, allocations: 69.66 MB / 0.6408 GB, free: 8 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3135/1.974, allocations: 5.187 MB / 0.6459 GB, free: 91.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007136/1.981, allocations: 3.514 MB / 0.6493 GB, free: 91.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009858/1.982, allocations: 387.9 kB / 0.6497 GB, free: 91.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/1.982, allocations: 70.95 kB / 0.6497 GB, free: 91.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 7.123e-06/1.982, allocations: 0 / 0.6497 GB, free: 91.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=312): time 0.0963/2.078, allocations: 27.53 MB / 0.6766 GB, free: 84.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/2.078, allocations: 240 kB / 0.6768 GB, free: 84.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/2.091, allocations: 4.776 MB / 0.6815 GB, free: 82.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009172/2.091, allocations: 28.98 kB / 0.6815 GB, free: 82.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004064/2.096, allocations: 4.792 MB / 0.6862 GB, free: 78.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002058/2.098, allocations: 1.15 MB / 0.6873 GB, free: 77.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/2.099, allocations: 0 / 0.6873 GB, free: 77.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007361/2.1, allocations: 0.7081 MB / 0.688 GB, free: 77.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008433/2.108, allocations: 3.408 MB / 0.6913 GB, free: 76.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01206/2.121, allocations: 8.849 MB / 0.7 GB, free: 67.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01186/2.132, allocations: 5.439 MB / 0.7053 GB, free: 65.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000241/2.133, allocations: 57.84 kB / 0.7054 GB, free: 65.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03468/2.167, allocations: 12.38 MB / 0.7174 GB, free: 61.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/2.168, allocations: 91.53 kB / 0.7175 GB, free: 61.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003182/2.168, allocations: 194.6 kB / 0.7177 GB, free: 61.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007189/2.175, allocations: 1.717 MB / 0.7194 GB, free: 61.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0143/2.19, allocations: 2.214 MB / 0.7216 GB, free: 59.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/2.21, allocations: 10.74 MB / 0.732 GB, free: 50.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01087/2.221, allocations: 373.3 kB / 0.7324 GB, free: 49.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002378/2.223, allocations: 0.5574 MB / 0.7329 GB, free: 49.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (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 (1148): * Single equations (assignments): 1143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00319/2.227, allocations: 0.5986 MB / 0.7335 GB, free: 48.78 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0171/2.244, allocations: 6.458 MB / 0.7398 GB, free: 43.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001946/2.246, allocations: 0.5013 MB / 0.7403 GB, free: 42.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01945/2.265, allocations: 6.512 MB / 0.7467 GB, free: 37.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.091e-05/2.265, allocations: 36 kB / 0.7467 GB, free: 37.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/2.265, allocations: 8 kB / 0.7467 GB, free: 37.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.739e-05/2.265, allocations: 16.61 kB / 0.7467 GB, free: 37.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03934/2.305, allocations: 13.73 MB / 0.7602 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.594e-05/2.305, allocations: 0 / 0.7602 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005468/2.31, allocations: 0.5359 MB / 0.7607 GB, free: 26.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006336/2.317, allocations: 1.4 MB / 0.762 GB, free: 25.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009367/2.318, allocations: 10.58 kB / 0.7621 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01943/2.337, allocations: 9.902 MB / 0.7717 GB, free: 16.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/2.337, allocations: 0 / 0.7717 GB, free: 16.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02558/2.363, allocations: 10.94 MB / 0.7824 GB, free: 5.969 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004204/2.367, allocations: 1.029 MB / 0.7834 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002357/2.37, allocations: 12 kB / 0.7834 GB, free: 4.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005486/2.375, allocations: 163.7 kB / 0.7836 GB, free: 4.746 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001282/2.376, allocations: 186.3 kB / 0.7838 GB, free: 4.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000434/2.377, allocations: 84.47 kB / 0.7838 GB, free: 4.484 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00829/2.385, allocations: 3.212 MB / 0.787 GB, free: 1.301 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.385, allocations: 4 kB / 0.787 GB, free: 1.297 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01266/2.398, allocations: 1.427 MB / 0.7884 GB, free: 15.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03188/2.43, allocations: 12.04 MB / 0.8001 GB, free: 3.676 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3486/2.778, allocations: 8.587 MB / 0.8085 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/2.779, allocations: 2.594 kB / 0.8085 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009804/2.788, allocations: 3.319 MB / 0.8118 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005232/2.794, allocations: 0.524 MB / 0.8123 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05247/2.846, allocations: 15.69 MB / 0.8276 GB, free: 98.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01263/2.859, allocations: 5.042 MB / 0.8325 GB, free: 97.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009173/2.868, allocations: 3.242 MB / 0.8357 GB, free: 95.37 MB / 442.7 MB Notification: Performance of SimCode: time 2.946e-06/2.868, allocations: 1.969 kB / 0.8357 GB, free: 95.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.644/8.512, allocations: 183 MB / 1.014 GB, free: 105.8 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat