Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.625/2.625, allocations: 235.2 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.517e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.445/0.4451, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.6553, allocations: 103.2 MB / 457.6 MB, free: 7.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.6557, allocations: 75.95 kB / 457.7 MB, free: 7.766 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.719/2.375, allocations: 218.1 MB / 0.66 GB, free: 41.86 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.375, allocations: 0 / 0.66 GB, free: 41.86 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008657/2.376, allocations: 241.2 kB / 0.6602 GB, free: 41.86 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.05333/2.429, allocations: 11.38 MB / 0.6713 GB, free: 37.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/2.429, allocations: 13.44 kB / 0.6713 GB, free: 37.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1106/2.54, allocations: 12.64 MB / 0.6837 GB, free: 36.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04867/2.589, allocations: 12.53 MB / 0.6959 GB, free: 35.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008434/2.59, allocations: 395.2 kB / 0.6963 GB, free: 35.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006684/2.596, allocations: 0.7067 MB / 0.697 GB, free: 35.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0483/2.645, allocations: 16.72 MB / 0.7133 GB, free: 35.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07227/2.717, allocations: 24.46 MB / 0.7372 GB, free: 21.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008088/2.718, allocations: 131.7 kB / 0.7373 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004882/2.723, allocations: 63.56 kB / 0.7374 GB, free: 21.36 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006952/2.73, allocations: 2.685 MB / 0.74 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6966/3.426, allocations: 110.3 MB / 0.8477 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02221/3.449, allocations: 10.81 MB / 0.8583 GB, free: 24.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01589/3.465, allocations: 7.543 MB / 0.8656 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004651/3.469, allocations: 2.336 MB / 0.8679 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/3.469, allocations: 97.52 kB / 0.868 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=541): time 1.173e-05/3.469, allocations: 0 / 0.868 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=629): time 0.251/3.721, allocations: 56.9 MB / 0.9236 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/3.721, allocations: 320.9 kB / 0.9239 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01823/3.739, allocations: 7.048 MB / 0.9308 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00191/3.741, allocations: 28.92 kB / 0.9308 GB, free: 7.938 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00714/3.748, allocations: 7.907 MB / 0.9385 GB, free: 2.348 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004118/3.752, allocations: 2.233 MB / 0.9407 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002524/3.755, allocations: 0 / 0.9407 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001284/3.756, allocations: 0.9301 MB / 0.9416 GB, free: 100 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02734/3.783, allocations: 6.748 MB / 0.9482 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02752/3.811, allocations: 14.01 MB / 0.9619 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02515/3.836, allocations: 9.204 MB / 0.9709 GB, free: 8.094 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003639/3.837, allocations: 80.5 kB / 0.971 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1919) (initialization): time 0.07659/3.913, allocations: 21.63 MB / 0.9921 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002682/3.914, allocations: 128.2 kB / 0.9922 GB, free: 6.535 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00058/3.914, allocations: 276 kB / 0.9925 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01725/3.931, allocations: 3.283 MB / 0.9957 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03052/3.962, allocations: 3.603 MB / 0.9992 GB, free: 0.8281 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05852/4.021, allocations: 21.47 MB / 1.02 GB, free: 14.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02016/4.041, allocations: 0.6062 MB / 1.021 GB, free: 13.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004473/4.045, allocations: 0.8417 MB / 1.022 GB, free: 13.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * 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 (1799): * Single equations (assignments): 1792 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00602/4.051, allocations: 0.8271 MB / 1.022 GB, free: 12.19 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04768/4.099, allocations: 13.04 MB / 1.035 GB, free: 1.289 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004205/4.103, allocations: 0.8172 MB / 1.036 GB, free: 476 kB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4859/4.589, allocations: 13.86 MB / 1.049 GB, free: 144.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001846/4.589, allocations: 62.53 kB / 1.05 GB, free: 144.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.599e-05/4.59, allocations: 16.75 kB / 1.05 GB, free: 144.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001991/4.59, allocations: 33.23 kB / 1.05 GB, free: 144.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09771/4.688, allocations: 27.65 MB / 1.077 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.86e-05/4.688, allocations: 5.234 kB / 1.077 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01466/4.702, allocations: 1.228 MB / 1.078 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01496/4.717, allocations: 2.805 MB / 1.08 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001973/4.719, allocations: 21.3 kB / 1.081 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04436/4.764, allocations: 19.66 MB / 1.1 GB, free: 138.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/4.764, allocations: 2.875 kB / 1.1 GB, free: 138.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06037/4.824, allocations: 21.53 MB / 1.121 GB, free: 130.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008331/4.833, allocations: 1.835 MB / 1.123 GB, free: 129.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004284/4.837, allocations: 7.422 kB / 1.123 GB, free: 129.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01154/4.848, allocations: 387.7 kB / 1.123 GB, free: 129.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002772/4.851, allocations: 364.2 kB / 1.123 GB, free: 129.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001165/4.852, allocations: 162.5 kB / 1.123 GB, free: 129.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01357/4.866, allocations: 4.756 MB / 1.128 GB, free: 127.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.62e-07/4.866, allocations: 0 / 1.128 GB, free: 127.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02109/4.887, allocations: 2.532 MB / 1.131 GB, free: 127.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (540): * Single equations (assignments): 533 * 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.06264/4.95, allocations: 22.47 MB / 1.152 GB, free: 116.8 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04136/4.991, allocations: 15.84 MB / 1.168 GB, free: 103.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/4.991, allocations: 4 kB / 1.168 GB, free: 103.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01918/5.011, allocations: 6.717 MB / 1.175 GB, free: 97.34 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009961/5.021, allocations: 0.8683 MB / 1.175 GB, free: 96.62 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09407/5.115, allocations: 26.91 MB / 1.202 GB, free: 73.81 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02237/5.137, allocations: 8.312 MB / 1.21 GB, free: 67.85 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02602/5.163, allocations: 4.664 MB / 1.214 GB, free: 64.88 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01624/5.179, allocations: 5.779 MB / 1.22 GB, free: 59.52 MB / 0.573 GB Notification: Performance of SimCode: time 1.653e-06/5.18, allocations: 0 / 1.22 GB, free: 59.52 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9844/6.164, allocations: 204.4 MB / 1.42 GB, free: 35.65 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002804/6.164, allocations: 126.9 kB / 1.42 GB, free: 35.46 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.94/18.1, allocations: 0 / 1.42 GB, free: 35.46 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat