Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.385/2.385, allocations: 235 MB / 247.6 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.458e-05, allocations: 4 kB / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4811/0.4811, allocations: 54.85 MB / 359.9 MB, free: 2.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.6737, allocations: 102.5 MB / 462.4 MB, free: 10.37 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.674, allocations: 71.97 kB / 462.5 MB, free: 10.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9733/1.647, allocations: 151.9 MB / 0.6 GB, free: 88.53 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.647, allocations: 0 / 0.6 GB, free: 88.53 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005778/1.648, allocations: 149.4 kB / 0.6001 GB, free: 88.53 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.03136/1.679, allocations: 7.38 MB / 0.6073 GB, free: 81.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/1.679, allocations: 12.03 kB / 0.6074 GB, free: 81.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006614/1.686, allocations: 1.339 MB / 0.6087 GB, free: 80.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06986/1.756, allocations: 9.635 MB / 0.6181 GB, free: 70.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03326/1.789, allocations: 9.126 MB / 0.627 GB, free: 61.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008145/1.79, allocations: 0.5853 MB / 0.6276 GB, free: 60.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004668/1.795, allocations: 0.7653 MB / 0.6283 GB, free: 60.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0558/1.851, allocations: 17.94 MB / 0.6458 GB, free: 40.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007075/1.852, allocations: 103.1 kB / 0.6459 GB, free: 40.44 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004427/1.856, allocations: 371.8 kB / 0.6463 GB, free: 40.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003954/1.86, allocations: 1.691 MB / 0.6479 GB, free: 38.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04498/1.905, allocations: 14.1 MB / 0.6617 GB, free: 24.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5441/2.449, allocations: 80.8 MB / 0.7406 GB, free: 39.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03032/2.48, allocations: 7.104 MB / 0.7475 GB, free: 38.82 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00884/2.488, allocations: 4.069 MB / 0.7515 GB, free: 38.77 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004144/2.489, allocations: 60.97 kB / 0.7516 GB, free: 38.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/2.489, allocations: 70.75 kB / 0.7516 GB, free: 38.73 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 7.224e-06/2.489, allocations: 3.719 kB / 0.7516 GB, free: 38.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.1183/2.607, allocations: 27.35 MB / 0.7783 GB, free: 31.71 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/2.608, allocations: 302.3 kB / 0.7786 GB, free: 31.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01735/2.625, allocations: 6.512 MB / 0.785 GB, free: 30.87 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009237/2.626, allocations: 74.95 kB / 0.7851 GB, free: 30.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004677/2.631, allocations: 5.081 MB / 0.79 GB, free: 26.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002212/2.633, allocations: 1.285 MB / 0.7913 GB, free: 25.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/2.634, allocations: 193.3 kB / 0.7915 GB, free: 25.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001014/2.635, allocations: 0.7197 MB / 0.7922 GB, free: 25.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009869/2.645, allocations: 3.597 MB / 0.7957 GB, free: 24.03 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01329/2.659, allocations: 9.134 MB / 0.8046 GB, free: 15.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/2.672, allocations: 5.707 MB / 0.8102 GB, free: 13.64 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002453/2.672, allocations: 56 kB / 0.8102 GB, free: 13.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03824/2.711, allocations: 12.9 MB / 0.8228 GB, free: 8.594 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/2.711, allocations: 96 kB / 0.8229 GB, free: 8.504 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003215/2.711, allocations: 196 kB / 0.8231 GB, free: 8.312 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005769/2.717, allocations: 1.383 MB / 0.8245 GB, free: 7.227 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01479/2.732, allocations: 2.235 MB / 0.8266 GB, free: 5.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0217/2.753, allocations: 11.24 MB / 0.8376 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0154/2.769, allocations: 0.5428 MB / 0.8381 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003199/2.772, allocations: 0.5617 MB / 0.8387 GB, free: 9.871 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1172): * Single equations (assignments): 1166 * 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%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004913/2.777, allocations: 0.8408 MB / 0.8395 GB, free: 9.031 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00294/2.78, allocations: 0.644 MB / 0.8401 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03018/2.81, allocations: 6.586 MB / 0.8466 GB, free: 2.957 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001229/2.811, allocations: 39 kB / 0.8466 GB, free: 2.922 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.416e-05/2.811, allocations: 12.94 kB / 0.8466 GB, free: 2.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/2.811, allocations: 16.27 kB / 0.8466 GB, free: 2.91 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07124/2.882, allocations: 15.52 MB / 0.8618 GB, free: 6.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-05/2.882, allocations: 0 / 0.8618 GB, free: 6.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008804/2.891, allocations: 0.5861 MB / 0.8624 GB, free: 6.277 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00767/2.899, allocations: 1.047 MB / 0.8634 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/2.9, allocations: 59.42 kB / 0.8634 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03298/2.933, allocations: 10.3 MB / 0.8735 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/2.933, allocations: 0 / 0.8735 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04333/2.977, allocations: 11.11 MB / 0.8844 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006394/2.983, allocations: 1.207 MB / 0.8855 GB, free: 412 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00266/2.986, allocations: 58.58 kB / 0.8856 GB, free: 356 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006791/2.993, allocations: 203.7 kB / 0.8858 GB, free: 152 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/2.994, allocations: 202.5 kB / 0.886 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004158/2.995, allocations: 80 kB / 0.8861 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01455/3.009, allocations: 4.628 MB / 0.8906 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.212e-06/3.009, allocations: 0 / 0.8906 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01468/3.024, allocations: 1.794 MB / 0.8923 GB, free: 9.484 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4095/3.433, allocations: 12.02 MB / 0.9041 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02483/3.458, allocations: 8.794 MB / 0.9127 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/3.458, allocations: 1.094 kB / 0.9127 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01024/3.469, allocations: 3.447 MB / 0.916 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007951/3.477, allocations: 0.8173 MB / 0.9168 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06186/3.539, allocations: 17.67 MB / 0.9341 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01476/3.553, allocations: 5.606 MB / 0.9395 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01077/3.564, allocations: 3.729 MB / 0.9432 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.282e-06/3.564, allocations: 3.344 kB / 0.9432 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.006/9.571, allocations: 241.1 MB / 1.179 GB, free: 110.5 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat