Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 235.1 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.275e-05/3.267e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3926, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.6002, allocations: 104.6 MB / 459.1 MB, free: 6.391 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.6005, allocations: 83.89 kB / 459.2 MB, free: 6.309 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.847/2.448, allocations: 234.3 MB / 0.6772 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.575e-06/2.448, allocations: 2.953 kB / 0.6772 GB, free: 40.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001389/2.449, allocations: 254.8 kB / 0.6774 GB, free: 40.75 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: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.07069/2.52, allocations: 12.34 MB / 0.6895 GB, free: 36.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/2.52, allocations: 7.406 kB / 0.6895 GB, free: 36.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.11/2.63, allocations: 12.82 MB / 0.702 GB, free: 35.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0525/2.683, allocations: 13.28 MB / 0.715 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009199/2.683, allocations: 416.6 kB / 0.7154 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007095/2.691, allocations: 0.7532 MB / 0.7161 GB, free: 33.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04923/2.74, allocations: 17.54 MB / 0.7332 GB, free: 30.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07518/2.815, allocations: 26.02 MB / 0.7586 GB, free: 6.301 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009675/2.816, allocations: 151.7 kB / 0.7588 GB, free: 6.223 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006172/2.822, allocations: 68 kB / 0.7588 GB, free: 6.156 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006988/2.829, allocations: 2.862 MB / 0.7616 GB, free: 3.785 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6846/3.514, allocations: 121.6 MB / 0.8803 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02272/3.537, allocations: 10.78 MB / 0.8909 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02098/3.558, allocations: 7.546 MB / 0.8982 GB, free: 29.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003623/3.562, allocations: 1.096 MB / 0.8993 GB, free: 28.74 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/3.562, allocations: 97.89 kB / 0.8994 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=548): time 1.906e-05/3.562, allocations: 0 / 0.8994 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=636): time 0.2572/3.819, allocations: 61.48 MB / 0.9595 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/3.819, allocations: 389.5 kB / 0.9598 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02278/3.842, allocations: 8.018 MB / 0.9677 GB, free: 7.246 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002039/3.844, allocations: 28.92 kB / 0.9677 GB, free: 7.215 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.009536/3.854, allocations: 8.689 MB / 0.9762 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005243/3.859, allocations: 2.277 MB / 0.9784 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00335/3.862, allocations: 0 / 0.9784 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002418/3.865, allocations: 0.9912 MB / 0.9794 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02078/3.886, allocations: 6.442 MB / 0.9857 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04636/3.932, allocations: 15.1 MB / 1 GB, free: 6.363 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03187/3.964, allocations: 9.834 MB / 1.01 GB, free: 14.91 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003923/3.964, allocations: 88 kB / 1.01 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2081) (initialization): time 0.5238/4.488, allocations: 23.12 MB / 1.033 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002568/4.489, allocations: 143.7 kB / 1.033 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005778/4.489, allocations: 303 kB / 1.033 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01594/4.505, allocations: 3.325 MB / 1.036 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03109/4.536, allocations: 3.875 MB / 1.04 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05025/4.587, allocations: 21.39 MB / 1.061 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02166/4.608, allocations: 0.637 MB / 1.062 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004696/4.613, allocations: 0.9208 MB / 1.063 GB, free: 118.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (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],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.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 (1961): * Single equations (assignments): 1954 * 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.007002/4.62, allocations: 0.9012 MB / 1.063 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04325/4.663, allocations: 13.17 MB / 1.076 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004091/4.667, allocations: 0.906 MB / 1.077 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04733/4.715, allocations: 13.79 MB / 1.091 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001498/4.715, allocations: 67.66 kB / 1.091 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.809e-05/4.715, allocations: 23.2 kB / 1.091 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000166/4.715, allocations: 35 kB / 1.091 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0967/4.812, allocations: 28.82 MB / 1.119 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/4.812, allocations: 7 kB / 1.119 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01475/4.827, allocations: 1.229 MB / 1.12 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01507/4.842, allocations: 2.806 MB / 1.123 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002246/4.844, allocations: 30.72 kB / 1.123 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04626/4.891, allocations: 19.78 MB / 1.142 GB, free: 99.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-05/4.891, allocations: 14.12 kB / 1.142 GB, free: 99.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06464/4.955, allocations: 23.36 MB / 1.165 GB, free: 79.05 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00916/4.965, allocations: 1.931 MB / 1.167 GB, free: 77.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004884/4.97, allocations: 11.61 kB / 1.167 GB, free: 77.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01206/4.982, allocations: 348 kB / 1.167 GB, free: 77.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002871/4.985, allocations: 397.6 kB / 1.168 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002259/4.987, allocations: 166.2 kB / 1.168 GB, free: 76.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01587/5.003, allocations: 5.428 MB / 1.173 GB, free: 72.04 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.335e-06/5.003, allocations: 0 / 1.173 GB, free: 72.04 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02401/5.027, allocations: 2.674 MB / 1.176 GB, free: 69.37 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,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 (547): * Single equations (assignments): 540 * 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.06688/5.094, allocations: 24.88 MB / 1.2 GB, free: 47.26 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04396/5.138, allocations: 16.38 MB / 1.216 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/5.138, allocations: 4 kB / 1.216 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02098/5.159, allocations: 6.825 MB / 1.223 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01109/5.17, allocations: 0.9742 MB / 1.224 GB, free: 25.76 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5687/5.739, allocations: 28.92 MB / 1.252 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02457/5.763, allocations: 8.902 MB / 1.261 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.02793/5.791, allocations: 5.11 MB / 1.266 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01862/5.81, allocations: 6.401 MB / 1.272 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of SimCode: time 2.454e-06/5.81, allocations: 0 / 1.272 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.008/6.818, allocations: 215.9 MB / 1.483 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002715/6.819, allocations: 131.2 kB / 1.483 GB, free: 108.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 12.57/19.39, allocations: 0 / 1.483 GB, free: 108.5 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat