Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.751e-05/4.757e-05, allocations: 4 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.4406, allocations: 54.85 MB / 359.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2293/0.6699, allocations: 105.3 MB / 465.2 MB, free: 7.453 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.6703, allocations: 81.17 kB / 465.3 MB, free: 7.375 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.301/1.971, allocations: 240.3 MB / 0.689 GB, free: 13.83 MB / 474.7 MB Notification: Performance of FrontEnd: time 6.062e-06/1.971, allocations: 0 / 0.689 GB, free: 13.83 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001032/1.972, allocations: 259.9 kB / 0.6892 GB, free: 13.58 MB / 474.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.06152/2.034, allocations: 12.35 MB / 0.7013 GB, free: 1.129 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.505e-05/2.034, allocations: 12.03 kB / 0.7013 GB, free: 1.117 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4294/2.464, allocations: 2.193 MB / 0.7035 GB, free: 43.14 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1249/2.589, allocations: 12.82 MB / 0.716 GB, free: 42.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05189/2.64, allocations: 13.28 MB / 0.7289 GB, free: 41.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001548/2.642, allocations: 0.957 MB / 0.7299 GB, free: 41.65 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007662/2.65, allocations: 1.274 MB / 0.7311 GB, free: 41.64 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1008/2.751, allocations: 29.79 MB / 0.7602 GB, free: 35.53 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001162/2.752, allocations: 156.2 kB / 0.7604 GB, free: 35.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006837/2.759, allocations: 0.5869 MB / 0.7609 GB, free: 35.52 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006811/2.766, allocations: 2.859 MB / 0.7637 GB, free: 35.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08216/2.848, allocations: 23.87 MB / 0.787 GB, free: 32.46 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7053/3.553, allocations: 127.8 MB / 0.9118 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06396/3.617, allocations: 13.88 MB / 0.9254 GB, free: 31.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01562/3.633, allocations: 7.97 MB / 0.9331 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05219/3.685, allocations: 19.83 MB / 0.9525 GB, free: 29.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/3.685, allocations: 95.22 kB / 0.9526 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.016e-05/3.685, allocations: 0 / 0.9526 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2876/3.973, allocations: 59.14 MB / 1.01 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/3.973, allocations: 378.8 kB / 1.011 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03013/4.003, allocations: 10.61 MB / 1.021 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00194/4.005, allocations: 125.6 kB / 1.021 GB, free: 11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.009062/4.014, allocations: 8.556 MB / 1.03 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004401/4.019, allocations: 2.375 MB / 1.032 GB, free: 1.223 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003262/4.022, allocations: 314.7 kB / 1.032 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001562/4.024, allocations: 0.9683 MB / 1.033 GB, free: 136 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0891/4.113, allocations: 8.959 MB / 1.042 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03687/4.15, allocations: 14.96 MB / 1.056 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02605/4.176, allocations: 9.879 MB / 1.066 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003524/4.176, allocations: 84 kB / 1.066 GB, free: 6.215 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.1143/4.291, allocations: 24.43 MB / 1.09 GB, free: 4.285 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002624/4.291, allocations: 132 kB / 1.09 GB, free: 4.156 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005212/4.292, allocations: 292 kB / 1.09 GB, free: 3.871 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01516/4.307, allocations: 3.312 MB / 1.094 GB, free: 0.5469 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02781/4.335, allocations: 3.759 MB / 1.097 GB, free: 12.78 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05102/4.386, allocations: 22.59 MB / 1.119 GB, free: 5.676 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02153/4.407, allocations: 0.9362 MB / 1.12 GB, free: 4.738 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004787/4.412, allocations: 0.8899 MB / 1.121 GB, free: 3.852 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * 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 (1897): * Single equations (assignments): 1890 * 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.00764/4.42, allocations: 1.28 MB / 1.122 GB, free: 2.559 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004292/4.424, allocations: 1.064 MB / 1.123 GB, free: 1.48 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05011/4.474, allocations: 14.59 MB / 1.138 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001432/4.475, allocations: 72 kB / 1.138 GB, free: 2.777 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.153e-05/4.475, allocations: 16 kB / 1.138 GB, free: 2.762 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001951/4.475, allocations: 31.89 kB / 1.138 GB, free: 2.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5496/5.024, allocations: 32.37 MB / 1.169 GB, free: 169.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001258/5.025, allocations: 11.5 kB / 1.169 GB, free: 169.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01331/5.038, allocations: 1.279 MB / 1.171 GB, free: 169.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01329/5.051, allocations: 2.829 MB / 1.173 GB, free: 169.4 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002232/5.054, allocations: 124.5 kB / 1.174 GB, free: 169.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04421/5.098, allocations: 21.08 MB / 1.194 GB, free: 164.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-05/5.098, allocations: 19.39 kB / 1.194 GB, free: 164.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06184/5.16, allocations: 26.08 MB / 1.22 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009714/5.17, allocations: 2.183 MB / 1.222 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004558/5.174, allocations: 121.4 kB / 1.222 GB, free: 156 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01229/5.187, allocations: 444.5 kB / 1.222 GB, free: 155.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002569/5.189, allocations: 417.7 kB / 1.223 GB, free: 155.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001224/5.19, allocations: 168.4 kB / 1.223 GB, free: 155.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.02138/5.212, allocations: 7.641 MB / 1.23 GB, free: 153.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.273e-06/5.212, allocations: 0 / 1.23 GB, free: 153.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02145/5.233, allocations: 3.109 MB / 1.233 GB, free: 152.9 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (553): * Single equations (assignments): 546 * 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.06136/5.295, allocations: 27.2 MB / 1.26 GB, free: 139.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.03749/5.332, allocations: 16.08 MB / 1.276 GB, free: 131.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.788e-05/5.332, allocations: 0 / 1.276 GB, free: 131.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01954/5.352, allocations: 6.924 MB / 1.282 GB, free: 125.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01329/5.365, allocations: 1.355 MB / 1.284 GB, free: 124.1 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09557/5.461, allocations: 29.81 MB / 1.313 GB, free: 98.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02247/5.483, allocations: 8.875 MB / 1.322 GB, free: 92.29 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.02495/5.508, allocations: 5.147 MB / 1.327 GB, free: 88.92 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01589/5.524, allocations: 6.424 MB / 1.333 GB, free: 82.94 MB / 0.6198 GB Notification: Performance of SimCode: time 1.904e-06/5.524, allocations: 0 / 1.333 GB, free: 82.94 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9678/6.492, allocations: 237.2 MB / 1.565 GB, free: 67 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002564/6.493, allocations: 168.4 kB / 1.565 GB, free: 66.78 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/20.78, allocations: 0 / 1.565 GB, free: 66.78 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat