Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.644/2.644, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.619e-05, allocations: 4 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4349/0.435, allocations: 54.85 MB / 359.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.6254, allocations: 99.67 MB / 459.6 MB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.6258, allocations: 75.95 kB / 459.6 MB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9086/1.534, allocations: 142.9 MB / 0.5884 GB, free: 94.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.624e-06/1.535, allocations: 0 / 0.5884 GB, free: 94.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005504/1.535, allocations: 147.6 kB / 0.5885 GB, free: 94.84 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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02976/1.565, allocations: 6.842 MB / 0.5952 GB, free: 90.38 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.565, allocations: 10.34 kB / 0.5952 GB, free: 90.38 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006014/1.571, allocations: 1.231 MB / 0.5964 GB, free: 89.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06872/1.64, allocations: 9.532 MB / 0.6057 GB, free: 82.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03189/1.672, allocations: 8.839 MB / 0.6143 GB, free: 73.78 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006687/1.672, allocations: 0.5256 MB / 0.6149 GB, free: 73.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003884/1.676, allocations: 0.7059 MB / 0.6155 GB, free: 72.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05063/1.727, allocations: 16.45 MB / 0.6316 GB, free: 54.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006294/1.728, allocations: 99.11 kB / 0.6317 GB, free: 54.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004288/1.732, allocations: 343.8 kB / 0.632 GB, free: 54.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/1.735, allocations: 1.519 MB / 0.6335 GB, free: 52.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04171/1.777, allocations: 12.83 MB / 0.646 GB, free: 39.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5089/2.286, allocations: 72.57 MB / 0.7169 GB, free: 52.61 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02434/2.311, allocations: 5.841 MB / 0.7226 GB, free: 51.92 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006817/2.317, allocations: 3.062 MB / 0.7256 GB, free: 51.88 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002781/2.318, allocations: 49.34 kB / 0.7257 GB, free: 51.87 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.172e-05/2.318, allocations: 63.81 kB / 0.7257 GB, free: 51.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=249): time 6.892e-06/2.318, allocations: 0.9844 kB / 0.7257 GB, free: 51.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.08526/2.403, allocations: 19.49 MB / 0.7448 GB, free: 46.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/2.403, allocations: 258.5 kB / 0.745 GB, free: 46.26 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01645/2.42, allocations: 6.129 MB / 0.751 GB, free: 45.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007297/2.421, allocations: 68.7 kB / 0.7511 GB, free: 45.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005159/2.426, allocations: 5.047 MB / 0.756 GB, free: 43.08 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001758/2.428, allocations: 1.034 MB / 0.757 GB, free: 42.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/2.429, allocations: 175 kB / 0.7572 GB, free: 42.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007743/2.43, allocations: 0.668 MB / 0.7578 GB, free: 42.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007606/2.437, allocations: 2.878 MB / 0.7606 GB, free: 42.15 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/2.449, allocations: 8.081 MB / 0.7685 GB, free: 34.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/2.46, allocations: 4.8 MB / 0.7732 GB, free: 32.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002284/2.46, allocations: 53.91 kB / 0.7733 GB, free: 32.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03191/2.492, allocations: 10.87 MB / 0.7839 GB, free: 29.81 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/2.492, allocations: 87.97 kB / 0.7839 GB, free: 29.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003061/2.493, allocations: 189.9 kB / 0.7841 GB, free: 29.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003262/2.496, allocations: 0.8357 MB / 0.7849 GB, free: 29.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0131/2.509, allocations: 1.986 MB / 0.7869 GB, free: 29.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/2.523, allocations: 8.489 MB / 0.7952 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/2.534, allocations: 470.2 kB / 0.7956 GB, free: 23.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002174/2.536, allocations: 0.5142 MB / 0.7961 GB, free: 23.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003241/2.539, allocations: 0.778 MB / 0.7969 GB, free: 22.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001735/2.541, allocations: 0.5882 MB / 0.7975 GB, free: 22.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01312/2.554, allocations: 4.451 MB / 0.8018 GB, free: 19.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.167e-05/2.554, allocations: 33.5 kB / 0.8018 GB, free: 19.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.57e-05/2.554, allocations: 8 kB / 0.8018 GB, free: 19.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.034e-05/2.554, allocations: 13.88 kB / 0.8019 GB, free: 19.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03632/2.591, allocations: 11.6 MB / 0.8132 GB, free: 9.965 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-05/2.591, allocations: 0 / 0.8132 GB, free: 9.965 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004669/2.596, allocations: 435.5 kB / 0.8136 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0027/2.598, allocations: 0.5221 MB / 0.8141 GB, free: 9.215 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006754/2.599, allocations: 52.22 kB / 0.8142 GB, free: 9.172 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/2.611, allocations: 7.576 MB / 0.8216 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.611, allocations: 0 / 0.8216 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02131/2.632, allocations: 7.929 MB / 0.8293 GB, free: 10.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004588/2.637, allocations: 1.014 MB / 0.8303 GB, free: 9.984 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002239/2.639, allocations: 44.81 kB / 0.8303 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005556/2.644, allocations: 148.1 kB / 0.8305 GB, free: 9.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/2.646, allocations: 160.2 kB / 0.8306 GB, free: 9.742 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003891/2.646, allocations: 71.48 kB / 0.8307 GB, free: 9.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01387/2.66, allocations: 4.359 MB / 0.835 GB, free: 5.848 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.66, allocations: 0 / 0.835 GB, free: 5.848 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01274/2.673, allocations: 1.559 MB / 0.8365 GB, free: 4.297 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02458/2.697, allocations: 8.837 MB / 0.8451 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01939/2.717, allocations: 7.057 MB / 0.852 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/2.717, allocations: 0 / 0.852 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006441/2.723, allocations: 2.457 MB / 0.8544 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00739/2.731, allocations: 0.7662 MB / 0.8551 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05606/2.787, allocations: 14.65 MB / 0.8695 GB, free: 6.207 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01475/2.802, allocations: 5.21 MB / 0.8745 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0152/2.817, allocations: 2.8 MB / 0.8773 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009438/2.826, allocations: 3.364 MB / 0.8806 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of SimCode: time 2.054e-06/2.826, allocations: 0 / 0.8806 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6789/3.505, allocations: 124.3 MB / 1.002 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002837/3.506, allocations: 172.8 kB / 1.002 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.236/11.74, allocations: 4 kB / 1.002 GB, free: 123.1 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat