Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.684/2.684, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.12e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1386, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5432/0.6819, allocations: 112.2 MB / 0.5103 GB, free: 7.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.6822, allocations: 84.78 kB / 0.5104 GB, free: 7.734 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.357/2.04, allocations: 222.2 MB / 0.7274 GB, free: 74.98 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.374e-06/2.04, allocations: 0 / 0.7274 GB, free: 74.98 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008502/2.041, allocations: 240 kB / 0.7276 GB, free: 74.74 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.05052/2.091, allocations: 11.53 MB / 0.7389 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/2.091, allocations: 12.03 kB / 0.7389 GB, free: 63.11 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01007/2.101, allocations: 1.993 MB / 0.7408 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09243/2.194, allocations: 12.61 MB / 0.7531 GB, free: 48.45 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04288/2.237, allocations: 12.2 MB / 0.765 GB, free: 36.15 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001275/2.238, allocations: 0.8746 MB / 0.7659 GB, free: 35.28 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006767/2.245, allocations: 1.167 MB / 0.767 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08942/2.334, allocations: 27.37 MB / 0.7938 GB, free: 4.562 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009546/2.335, allocations: 150.6 kB / 0.7939 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006151/2.341, allocations: 0.5427 MB / 0.7944 GB, free: 3.871 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005657/2.347, allocations: 2.541 MB / 0.7969 GB, free: 1.32 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.554/2.901, allocations: 21.65 MB / 0.8181 GB, free: 80.53 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2522/3.154, allocations: 119.5 MB / 0.9348 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05975/3.213, allocations: 12.77 MB / 0.9472 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01477/3.228, allocations: 7.093 MB / 0.9542 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04843/3.277, allocations: 17.29 MB / 0.971 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001163/3.277, allocations: 99.61 kB / 0.9711 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=459): time 9.087e-06/3.277, allocations: 0 / 0.9711 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=543): time 0.2999/3.577, allocations: 54.4 MB / 1.024 GB, free: 4.648 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002678/3.577, allocations: 372.1 kB / 1.025 GB, free: 4.215 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5083/4.085, allocations: 10.59 MB / 1.035 GB, free: 132.6 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001714/4.087, allocations: 109.1 kB / 1.035 GB, free: 132.6 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0107/4.098, allocations: 7.891 MB / 1.043 GB, free: 130.6 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00407/4.102, allocations: 2.021 MB / 1.045 GB, free: 129.5 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002935/4.105, allocations: 281.9 kB / 1.045 GB, free: 129.5 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001597/4.107, allocations: 0.8996 MB / 1.046 GB, free: 129.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01795/4.125, allocations: 5.731 MB / 1.051 GB, free: 129.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02446/4.149, allocations: 13.55 MB / 1.065 GB, free: 119.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02082/4.17, allocations: 8.734 MB / 1.073 GB, free: 119 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004721/4.171, allocations: 80.69 kB / 1.073 GB, free: 119 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.06633/4.237, allocations: 21.33 MB / 1.094 GB, free: 116.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003034/4.237, allocations: 125.5 kB / 1.094 GB, free: 116.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005063/4.238, allocations: 277.7 kB / 1.095 GB, free: 116.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01424/4.252, allocations: 3.281 MB / 1.098 GB, free: 115.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02338/4.276, allocations: 3.353 MB / 1.101 GB, free: 115.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04509/4.321, allocations: 22.55 MB / 1.123 GB, free: 103.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02597/4.347, allocations: 0.8277 MB / 1.124 GB, free: 103.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005733/4.353, allocations: 0.816 MB / 1.125 GB, free: 103.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * Number of states: 0 () * Number of discrete variables: 138 (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.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1698): * Single equations (assignments): 1691 * 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.009133/4.362, allocations: 1.201 MB / 1.126 GB, free: 102.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005417/4.367, allocations: 0.9974 MB / 1.127 GB, free: 101.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05431/4.422, allocations: 12.52 MB / 1.139 GB, free: 97.28 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001073/4.422, allocations: 56.69 kB / 1.139 GB, free: 97.28 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.106e-05/4.422, allocations: 15.84 kB / 1.139 GB, free: 97.28 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001589/4.422, allocations: 33.12 kB / 1.139 GB, free: 97.27 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09146/4.514, allocations: 28.56 MB / 1.167 GB, free: 75.17 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001042/4.514, allocations: 12 kB / 1.167 GB, free: 75.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01101/4.525, allocations: 1.068 MB / 1.168 GB, free: 74.35 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01331/4.538, allocations: 2.83 MB / 1.171 GB, free: 72.36 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001875/4.54, allocations: 105 kB / 1.171 GB, free: 72.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04312/4.583, allocations: 21.13 MB / 1.192 GB, free: 53.36 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/4.583, allocations: 11.94 kB / 1.192 GB, free: 53.35 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05684/4.64, allocations: 22.52 MB / 1.214 GB, free: 32.78 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004534/4.645, allocations: 1.09 MB / 1.215 GB, free: 31.71 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005479/4.65, allocations: 98.62 kB / 1.215 GB, free: 31.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01125/4.662, allocations: 376.1 kB / 1.215 GB, free: 31.38 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002409/4.664, allocations: 352.6 kB / 1.215 GB, free: 31.15 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000752/4.665, allocations: 150.9 kB / 1.216 GB, free: 31.01 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.02037/4.685, allocations: 7.306 MB / 1.223 GB, free: 24.63 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.062e-06/4.685, allocations: 0 / 1.223 GB, free: 24.63 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02184/4.707, allocations: 2.788 MB / 1.225 GB, free: 21.85 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (451): * Single equations (assignments): 444 * 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.572/5.279, allocations: 23.71 MB / 1.249 GB, free: 113 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03937/5.319, allocations: 14.04 MB / 1.262 GB, free: 112.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/5.319, allocations: 5.469 kB / 1.262 GB, free: 112.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.02287/5.342, allocations: 6.084 MB / 1.268 GB, free: 112 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0174/5.359, allocations: 1.325 MB / 1.27 GB, free: 111.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1355/5.495, allocations: 26.88 MB / 1.296 GB, free: 107.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02393/5.519, allocations: 8.161 MB / 1.304 GB, free: 106.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02401/5.543, allocations: 4.644 MB / 1.308 GB, free: 106 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01587/5.559, allocations: 5.797 MB / 1.314 GB, free: 101.8 MB / 0.573 GB Notification: Performance of SimCode: time 2.074e-06/5.559, allocations: 0 / 1.314 GB, free: 101.8 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9927/6.551, allocations: 219.6 MB / 1.528 GB, free: 95.01 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002829/6.552, allocations: 168.3 kB / 1.529 GB, free: 94.79 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/20.65, allocations: 3.938 kB / 1.529 GB, free: 94.79 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat