Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2/2, allocations: 209.4 MB / 216.9 MB, free: 6.73 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.875e-05, allocations: 7.938 kB / 267.6 MB, free: 5.402 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 48.7 MB / 316.3 MB, free: 4.598 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.5907, allocations: 92.27 MB / 408.6 MB, free: 396 kB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5911, allocations: 66.34 kB / 408.6 MB, free: 364 kB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.8613/1.452, allocations: 134 MB / 0.5299 GB, free: 82.08 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.405e-06/1.452, allocations: 0 / 0.5299 GB, free: 82.08 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0004807/1.453, allocations: 134.4 kB / 0.53 GB, free: 82.07 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.02878/1.482, allocations: 6.64 MB / 0.5365 GB, free: 79.41 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/1.482, allocations: 8.938 kB / 0.5365 GB, free: 79.41 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06835/1.55, allocations: 9.499 MB / 0.5458 GB, free: 77.69 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03088/1.581, allocations: 8.717 MB / 0.5543 GB, free: 73.03 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004995/1.582, allocations: 219.4 kB / 0.5545 GB, free: 73.03 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004337/1.586, allocations: 407.7 kB / 0.5549 GB, free: 73.01 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02527/1.611, allocations: 9.051 MB / 0.5638 GB, free: 65.34 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03781/1.649, allocations: 14.05 MB / 0.5775 GB, free: 49.84 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004765/1.65, allocations: 107 kB / 0.5776 GB, free: 49.74 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002919/1.653, allocations: 44 kB / 0.5776 GB, free: 49.7 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003323/1.656, allocations: 1.459 MB / 0.579 GB, free: 48.24 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4598/2.116, allocations: 67.57 MB / 0.645 GB, free: 48.8 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/2.128, allocations: 4.617 MB / 0.6495 GB, free: 48.11 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006568/2.135, allocations: 2.963 MB / 0.6524 GB, free: 48.06 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003486/2.135, allocations: 50.44 kB / 0.6525 GB, free: 48.06 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/2.135, allocations: 58.53 kB / 0.6525 GB, free: 48.02 MB / 426.8 MB Notification: Performance of pre-optimization done (n=242): time 6.722e-06/2.135, allocations: 0.7188 kB / 0.6525 GB, free: 48.02 MB / 426.8 MB Notification: Performance of matching and sorting (n=263): time 0.0763/2.211, allocations: 25.6 MB / 0.6775 GB, free: 43.02 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/2.212, allocations: 262.7 kB / 0.6778 GB, free: 42.74 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/2.222, allocations: 4.798 MB / 0.6825 GB, free: 41.05 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006648/2.222, allocations: 28.95 kB / 0.6825 GB, free: 41.02 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004413/2.227, allocations: 4.8 MB / 0.6872 GB, free: 37.33 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00159/2.228, allocations: 0.9845 MB / 0.6881 GB, free: 36.61 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008291/2.229, allocations: 0 / 0.6881 GB, free: 36.61 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005212/2.23, allocations: 0.6812 MB / 0.6888 GB, free: 36.13 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006082/2.236, allocations: 2.698 MB / 0.6914 GB, free: 35.16 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01061/2.247, allocations: 7.969 MB / 0.6992 GB, free: 27.07 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/2.257, allocations: 4.592 MB / 0.7037 GB, free: 25.7 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002407/2.257, allocations: 54.84 kB / 0.7038 GB, free: 25.7 MB / 426.8 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.0277/2.285, allocations: 9.916 MB / 0.7134 GB, free: 22.85 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/2.285, allocations: 87.56 kB / 0.7135 GB, free: 22.85 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002849/2.285, allocations: 186.4 kB / 0.7137 GB, free: 22.85 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003042/2.288, allocations: 0.8017 MB / 0.7145 GB, free: 22.7 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0124/2.301, allocations: 1.994 MB / 0.7164 GB, free: 22.46 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/2.313, allocations: 8.018 MB / 0.7243 GB, free: 16.56 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00986/2.323, allocations: 300.5 kB / 0.7246 GB, free: 16.31 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002217/2.326, allocations: 0.5285 MB / 0.7251 GB, free: 15.79 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.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 (1069): * Single equations (assignments): 1063 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002424/2.328, allocations: 0.5727 MB / 0.7256 GB, free: 15.23 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01089/2.339, allocations: 4.243 MB / 0.7298 GB, free: 11.55 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001874/2.341, allocations: 0.5052 MB / 0.7303 GB, free: 11.04 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/2.352, allocations: 4.072 MB / 0.7342 GB, free: 7.672 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.666e-05/2.352, allocations: 32.34 kB / 0.7343 GB, free: 7.645 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.732e-05/2.352, allocations: 8 kB / 0.7343 GB, free: 7.637 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.815e-05/2.352, allocations: 10.97 kB / 0.7343 GB, free: 7.637 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02975/2.382, allocations: 10.02 MB / 0.7441 GB, free: 15.66 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.732e-05/2.382, allocations: 0 / 0.7441 GB, free: 15.66 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004363/2.386, allocations: 417.3 kB / 0.7445 GB, free: 15.32 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002608/2.389, allocations: 0.4926 MB / 0.745 GB, free: 14.95 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005876/2.39, allocations: 14.91 kB / 0.745 GB, free: 14.94 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/2.402, allocations: 7.084 MB / 0.7519 GB, free: 8.156 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/2.403, allocations: 2.125 kB / 0.7519 GB, free: 8.156 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/2.422, allocations: 7.418 MB / 0.7591 GB, free: 1.496 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004014/2.426, allocations: 0.8823 MB / 0.76 GB, free: 0.6641 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001921/2.428, allocations: 8 kB / 0.76 GB, free: 0.6562 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004973/2.433, allocations: 105.9 kB / 0.7601 GB, free: 0.5977 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001107/2.434, allocations: 152.6 kB / 0.7603 GB, free: 0.5 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003239/2.434, allocations: 66.95 kB / 0.7603 GB, free: 448 kB / 442.8 MB Notification: Performance of sorting global known variables: time 0.02137/2.456, allocations: 3.927 MB / 0.7642 GB, free: 15.29 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.92e-07/2.456, allocations: 0 / 0.7642 GB, free: 15.29 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01203/2.468, allocations: 1.309 MB / 0.7654 GB, free: 13.99 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 212 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02016/2.488, allocations: 8.235 MB / 0.7735 GB, free: 6.535 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01841/2.507, allocations: 6.818 MB / 0.7801 GB, free: 352 kB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.507, allocations: 4 kB / 0.7801 GB, free: 348 kB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01096/2.518, allocations: 2.642 MB / 0.7827 GB, free: 14.96 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006193/2.524, allocations: 0.595 MB / 0.7833 GB, free: 14.47 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09998/2.624, allocations: 14.59 MB / 0.7975 GB, free: 1.023 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0152/2.639, allocations: 5.044 MB / 0.8025 GB, free: 11.98 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009107/2.648, allocations: 3.276 MB / 0.8057 GB, free: 8.711 MB / 490.8 MB Notification: Performance of SimCode: time 1.373e-06/2.648, allocations: 0 / 0.8057 GB, free: 8.711 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.831/8.479, allocations: 207.3 MB / 1.008 GB, free: 128.5 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat