Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.519/2.519, allocations: 235.2 MB / 242.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.723e-05, allocations: 4 kB / 299.6 MB, free: 192 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3825, allocations: 54.85 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.5875, allocations: 100.7 MB / 455.2 MB, free: 10.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.5878, allocations: 79.95 kB / 455.2 MB, free: 10.22 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8989/1.487, allocations: 129 MB / 0.5705 GB, free: 9.035 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.487, allocations: 0 / 0.5705 GB, free: 9.035 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005689/1.487, allocations: 135.9 kB / 0.5706 GB, free: 8.902 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.03364/1.521, allocations: 6.662 MB / 0.5771 GB, free: 2.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.073e-05/1.521, allocations: 12.03 kB / 0.5772 GB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0639/1.585, allocations: 7.143 MB / 0.5841 GB, free: 10.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03321/1.618, allocations: 7.419 MB / 0.5914 GB, free: 3.484 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/1.619, allocations: 224 kB / 0.5916 GB, free: 3.266 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003968/1.623, allocations: 403.8 kB / 0.592 GB, free: 2.871 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02989/1.653, allocations: 9.255 MB / 0.601 GB, free: 9.609 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04651/1.699, allocations: 14.33 MB / 0.615 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005903/1.7, allocations: 87.22 kB / 0.6151 GB, free: 9.723 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003657/1.704, allocations: 44 kB / 0.6151 GB, free: 9.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004334/1.708, allocations: 1.553 MB / 0.6167 GB, free: 8.117 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5112/2.219, allocations: 69.69 MB / 0.6847 GB, free: 35.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/2.23, allocations: 5.199 MB / 0.6898 GB, free: 35.09 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007103/2.237, allocations: 3.514 MB / 0.6932 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/2.238, allocations: 386.3 kB / 0.6936 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/2.238, allocations: 69.06 kB / 0.6937 GB, free: 34.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=268): time 7.674e-06/2.238, allocations: 0 / 0.6937 GB, free: 34.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=312): time 0.099/2.337, allocations: 27.53 MB / 0.7205 GB, free: 25.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/2.337, allocations: 235.3 kB / 0.7208 GB, free: 25.49 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/2.348, allocations: 4.773 MB / 0.7254 GB, free: 23.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009002/2.349, allocations: 30.48 kB / 0.7254 GB, free: 23.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00462/2.354, allocations: 4.921 MB / 0.7303 GB, free: 20.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002026/2.356, allocations: 1.152 MB / 0.7314 GB, free: 19.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/2.357, allocations: 6.406 kB / 0.7314 GB, free: 19.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006323/2.358, allocations: 0.7011 MB / 0.7321 GB, free: 19.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008619/2.367, allocations: 3.405 MB / 0.7354 GB, free: 17.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/2.379, allocations: 8.863 MB / 0.744 GB, free: 9.289 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/2.392, allocations: 5.43 MB / 0.7494 GB, free: 5.762 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002484/2.392, allocations: 56 kB / 0.7494 GB, free: 5.707 MB / 458.7 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04077/2.433, allocations: 12.55 MB / 0.7617 GB, free: 11.28 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001843/2.433, allocations: 88.97 kB / 0.7618 GB, free: 11.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004046/2.434, allocations: 192 kB / 0.7619 GB, free: 11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008336/2.442, allocations: 1.719 MB / 0.7636 GB, free: 9.707 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01647/2.459, allocations: 2.209 MB / 0.7658 GB, free: 7.816 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02709/2.486, allocations: 10.78 MB / 0.7763 GB, free: 14.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/2.497, allocations: 372 kB / 0.7767 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002637/2.5, allocations: 0.5588 MB / 0.7772 GB, free: 13.48 MB / 490.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.002851/2.503, allocations: 0.589 MB / 0.7778 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02173/2.525, allocations: 6.467 MB / 0.7841 GB, free: 7.504 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002162/2.527, allocations: 0.5091 MB / 0.7846 GB, free: 6.988 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02237/2.549, allocations: 6.496 MB / 0.7909 GB, free: 1.766 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-05/2.55, allocations: 35.66 kB / 0.791 GB, free: 1.734 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.869e-05/2.55, allocations: 8 kB / 0.791 GB, free: 1.727 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.308e-05/2.55, allocations: 11.53 kB / 0.791 GB, free: 1.727 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04922/2.599, allocations: 13.79 MB / 0.8045 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-05/2.599, allocations: 0 / 0.8045 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008405/2.607, allocations: 0.538 MB / 0.805 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01025/2.618, allocations: 1.397 MB / 0.8063 GB, free: 5.383 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001138/2.619, allocations: 19.09 kB / 0.8064 GB, free: 5.367 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4691/3.088, allocations: 9.92 MB / 0.816 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/3.088, allocations: 5.594 kB / 0.8161 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02838/3.116, allocations: 10.94 MB / 0.8267 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004381/3.121, allocations: 1.028 MB / 0.8277 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001923/3.123, allocations: 6.719 kB / 0.8278 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005368/3.128, allocations: 164.5 kB / 0.8279 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/3.129, allocations: 184.5 kB / 0.8281 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004033/3.13, allocations: 85.05 kB / 0.8282 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008215/3.138, allocations: 3.211 MB / 0.8313 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/3.138, allocations: 3.438 kB / 0.8313 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0124/3.15, allocations: 1.42 MB / 0.8327 GB, free: 112.5 MB / 0.4948 GB 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.0294/3.18, allocations: 12.06 MB / 0.8445 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0217/3.202, allocations: 8.599 MB / 0.8529 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/3.202, allocations: 3.719 kB / 0.8529 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009364/3.211, allocations: 3.306 MB / 0.8561 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005535/3.217, allocations: 0.5251 MB / 0.8566 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04984/3.267, allocations: 14.95 MB / 0.8712 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01191/3.279, allocations: 5.034 MB / 0.8761 GB, free: 104 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01499/3.294, allocations: 3 MB / 0.8791 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008424/3.302, allocations: 3.177 MB / 0.8822 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of SimCode: time 2.234e-06/3.302, allocations: 0 / 0.8822 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7622/4.064, allocations: 116.9 MB / 0.9963 GB, free: 77.53 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002593/4.065, allocations: 127.8 kB / 0.9964 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.594/11.66, allocations: 0 / 0.9964 GB, free: 77.34 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat