Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.597/2.597, allocations: 235.1 MB / 242.3 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.511e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3812, allocations: 54.86 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2309/0.6122, allocations: 99 MB / 453.4 MB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.6126, allocations: 71.97 kB / 453.5 MB, free: 12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9215/1.534, allocations: 139.8 MB / 0.5794 GB, free: 15.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.534, allocations: 0 / 0.5794 GB, free: 15.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006097/1.535, allocations: 147.9 kB / 0.5796 GB, free: 15.75 MB / 426.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.0331/1.568, allocations: 6.833 MB / 0.5863 GB, free: 8.848 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.424e-05/1.568, allocations: 8.031 kB / 0.5863 GB, free: 8.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08371/1.652, allocations: 9.534 MB / 0.5956 GB, free: 15.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03762/1.689, allocations: 8.828 MB / 0.6042 GB, free: 6.371 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005557/1.69, allocations: 239.9 kB / 0.6044 GB, free: 6.137 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003945/1.694, allocations: 431.7 kB / 0.6048 GB, free: 5.715 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03093/1.725, allocations: 9.42 MB / 0.614 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4147/2.14, allocations: 14.57 MB / 0.6283 GB, free: 66.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008186/2.14, allocations: 101.8 kB / 0.6284 GB, free: 66.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003759/2.144, allocations: 45.06 kB / 0.6284 GB, free: 66.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/2.149, allocations: 1.525 MB / 0.6299 GB, free: 66.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1135/2.262, allocations: 69.42 MB / 0.6977 GB, free: 26.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009723/2.272, allocations: 4.636 MB / 0.7022 GB, free: 25.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006377/2.278, allocations: 2.994 MB / 0.7051 GB, free: 25.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003755/2.279, allocations: 56.3 kB / 0.7052 GB, free: 25.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/2.279, allocations: 65.31 kB / 0.7052 GB, free: 25.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=249): time 7.584e-06/2.279, allocations: 0 / 0.7052 GB, free: 25.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=268): time 0.08314/2.362, allocations: 24.42 MB / 0.7291 GB, free: 14.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/2.362, allocations: 266.7 kB / 0.7293 GB, free: 14.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/2.375, allocations: 4.91 MB / 0.7341 GB, free: 12.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007136/2.375, allocations: 25.7 kB / 0.7342 GB, free: 12.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004742/2.38, allocations: 5.14 MB / 0.7392 GB, free: 8.766 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/2.382, allocations: 1.006 MB / 0.7402 GB, free: 8.027 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001049/2.383, allocations: 2.625 kB / 0.7402 GB, free: 8.027 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006023/2.384, allocations: 0.6841 MB / 0.7408 GB, free: 7.559 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007424/2.391, allocations: 2.779 MB / 0.7436 GB, free: 6.562 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01212/2.403, allocations: 8.23 MB / 0.7516 GB, free: 14.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/2.416, allocations: 4.744 MB / 0.7562 GB, free: 12.65 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002429/2.416, allocations: 55.88 kB / 0.7563 GB, free: 12.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.0344/2.45, allocations: 10.4 MB / 0.7664 GB, free: 7.484 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002297/2.451, allocations: 88 kB / 0.7665 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003863/2.451, allocations: 196.2 kB / 0.7667 GB, free: 7.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004003/2.455, allocations: 0.8427 MB / 0.7675 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01618/2.471, allocations: 2.072 MB / 0.7696 GB, free: 4.684 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01729/2.489, allocations: 8.199 MB / 0.7776 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/2.5, allocations: 314 kB / 0.7779 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00257/2.502, allocations: 0.5374 MB / 0.7784 GB, free: 12.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 891 * 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 (1099): * Single equations (assignments): 1093 * 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.003555/2.506, allocations: 0.5874 MB / 0.779 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01531/2.521, allocations: 4.381 MB / 0.7832 GB, free: 7.742 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002162/2.524, allocations: 0.5129 MB / 0.7837 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/2.539, allocations: 4.21 MB / 0.7878 GB, free: 3.734 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.794e-05/2.539, allocations: 28 kB / 0.7879 GB, free: 3.707 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.182e-05/2.539, allocations: 8 kB / 0.7879 GB, free: 3.699 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.233e-05/2.539, allocations: 21.31 kB / 0.7879 GB, free: 3.691 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03806/2.577, allocations: 10.29 MB / 0.7979 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.663e-05/2.577, allocations: 0 / 0.7979 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005551/2.583, allocations: 443.6 kB / 0.7984 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003139/2.586, allocations: 0.5212 MB / 0.7989 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006159/2.587, allocations: 7.469 kB / 0.7989 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/2.602, allocations: 7.272 MB / 0.806 GB, free: 3.594 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/2.602, allocations: 7.969 kB / 0.806 GB, free: 3.586 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.437/3.039, allocations: 7.796 MB / 0.8136 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003893/3.043, allocations: 0.8995 MB / 0.8145 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002044/3.045, allocations: 3.234 kB / 0.8145 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005685/3.051, allocations: 111.6 kB / 0.8146 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/3.052, allocations: 165.6 kB / 0.8148 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003429/3.052, allocations: 72.27 kB / 0.8148 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009347/3.062, allocations: 3.324 MB / 0.8181 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.71e-07/3.062, allocations: 0 / 0.8181 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01188/3.074, allocations: 1.344 MB / 0.8194 GB, free: 107.9 MB / 0.4948 GB 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 (220): * Single equations (assignments): 214 * 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.0193/3.093, allocations: 8.443 MB / 0.8276 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0165/3.11, allocations: 7.008 MB / 0.8345 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/3.11, allocations: 3 kB / 0.8345 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005474/3.115, allocations: 2.406 MB / 0.8368 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006058/3.121, allocations: 0.6021 MB / 0.8374 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04712/3.168, allocations: 14.26 MB / 0.8513 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/3.181, allocations: 5.214 MB / 0.8564 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01586/3.197, allocations: 2.794 MB / 0.8592 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00832/3.206, allocations: 3.343 MB / 0.8624 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.844e-06/3.206, allocations: 0 / 0.8624 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/3.505, allocations: 111.7 MB / 0.9715 GB, free: 22.13 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002695/3.506, allocations: 135.8 kB / 0.9716 GB, free: 21.94 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.738/11.24, allocations: 0 / 0.9716 GB, free: 21.94 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat