Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.007/2.007, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.927e-05/4.954e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.514/0.6245, allocations: 95.71 MB / 417.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.6249, allocations: 71.97 kB / 417.6 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9569/1.582, allocations: 151.8 MB / 0.556 GB, free: 87.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.582, allocations: 0 / 0.556 GB, free: 87.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006638/1.583, allocations: 149.5 kB / 0.5562 GB, free: 87.41 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: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.0392/1.622, allocations: 7.384 MB / 0.5634 GB, free: 83.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/1.622, allocations: 7.219 kB / 0.5634 GB, free: 83.88 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006876/1.629, allocations: 1.35 MB / 0.5647 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07205/1.701, allocations: 9.635 MB / 0.5741 GB, free: 79.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03367/1.735, allocations: 9.105 MB / 0.583 GB, free: 73.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007565/1.735, allocations: 0.5755 MB / 0.5836 GB, free: 72.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00462/1.74, allocations: 0.7645 MB / 0.5843 GB, free: 71.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05713/1.797, allocations: 17.92 MB / 0.6018 GB, free: 52.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006454/1.798, allocations: 107 kB / 0.6019 GB, free: 52.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004263/1.802, allocations: 380.3 kB / 0.6023 GB, free: 51.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00388/1.806, allocations: 1.693 MB / 0.604 GB, free: 50.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04571/1.852, allocations: 14.08 MB / 0.6177 GB, free: 36.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4804/2.332, allocations: 80.77 MB / 0.6966 GB, free: 24.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03092/2.363, allocations: 7.102 MB / 0.7035 GB, free: 23.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008487/2.372, allocations: 4.056 MB / 0.7075 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004212/2.372, allocations: 69.55 kB / 0.7075 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.489e-05/2.373, allocations: 71.67 kB / 0.7076 GB, free: 23.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 8.415e-06/2.373, allocations: 0 / 0.7076 GB, free: 23.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.1214/2.494, allocations: 27.34 MB / 0.7343 GB, free: 16.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/2.494, allocations: 295.7 kB / 0.7346 GB, free: 16.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01966/2.514, allocations: 6.516 MB / 0.741 GB, free: 14.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001085/2.515, allocations: 82.86 kB / 0.741 GB, free: 14.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005262/2.52, allocations: 5.075 MB / 0.746 GB, free: 10.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002578/2.523, allocations: 1.289 MB / 0.7473 GB, free: 9.262 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/2.525, allocations: 195.1 kB / 0.7474 GB, free: 9.113 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001007/2.526, allocations: 0.7163 MB / 0.7481 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01011/2.536, allocations: 3.601 MB / 0.7517 GB, free: 7.387 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01535/2.551, allocations: 9.137 MB / 0.7606 GB, free: 14.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/2.567, allocations: 5.708 MB / 0.7662 GB, free: 12.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002504/2.567, allocations: 56.56 kB / 0.7662 GB, free: 12.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.04247/2.61, allocations: 12.9 MB / 0.7788 GB, free: 8.188 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000201/2.61, allocations: 92 kB / 0.7789 GB, free: 8.098 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004373/2.61, allocations: 196 kB / 0.7791 GB, free: 7.906 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006597/2.617, allocations: 1.375 MB / 0.7804 GB, free: 6.828 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01643/2.633, allocations: 2.24 MB / 0.7826 GB, free: 4.898 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02622/2.66, allocations: 11.32 MB / 0.7937 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01324/2.673, allocations: 0.536 MB / 0.7942 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002994/2.676, allocations: 0.5629 MB / 0.7947 GB, free: 9.664 MB / 458.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.004854/2.681, allocations: 0.8414 MB / 0.7956 GB, free: 8.824 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002646/2.684, allocations: 0.6402 MB / 0.7962 GB, free: 8.176 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02446/2.708, allocations: 6.592 MB / 0.8026 GB, free: 2.742 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/2.708, allocations: 36 kB / 0.8027 GB, free: 2.707 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.372e-05/2.708, allocations: 12.03 kB / 0.8027 GB, free: 2.699 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/2.708, allocations: 25.06 kB / 0.8027 GB, free: 2.691 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05726/2.766, allocations: 15.46 MB / 0.8178 GB, free: 6.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.814e-05/2.766, allocations: 3.812 kB / 0.8178 GB, free: 6.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006685/2.773, allocations: 0.5866 MB / 0.8184 GB, free: 5.938 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006011/2.779, allocations: 1.044 MB / 0.8194 GB, free: 5.184 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/2.78, allocations: 59.33 kB / 0.8194 GB, free: 5.129 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3942/3.174, allocations: 10.25 MB / 0.8294 GB, free: 115.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/3.174, allocations: 2.656 kB / 0.8295 GB, free: 115.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03059/3.205, allocations: 11.12 MB / 0.8403 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005292/3.21, allocations: 1.209 MB / 0.8415 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002711/3.213, allocations: 57 kB / 0.8415 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006973/3.22, allocations: 207.6 kB / 0.8417 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001377/3.221, allocations: 192.3 kB / 0.8419 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004363/3.222, allocations: 92.69 kB / 0.842 GB, free: 114.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01384/3.236, allocations: 4.629 MB / 0.8465 GB, free: 114.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.092e-06/3.236, allocations: 0 / 0.8465 GB, free: 114.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01345/3.249, allocations: 1.799 MB / 0.8483 GB, free: 114.2 MB / 474.7 MB 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.02902/3.278, allocations: 12.01 MB / 0.86 GB, free: 111.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02149/3.3, allocations: 8.807 MB / 0.8686 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/3.3, allocations: 3.75 kB / 0.8686 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009308/3.309, allocations: 3.439 MB / 0.872 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007965/3.317, allocations: 0.8153 MB / 0.8728 GB, free: 106.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06074/3.378, allocations: 17.66 MB / 0.89 GB, free: 100.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01546/3.393, allocations: 5.608 MB / 0.8955 GB, free: 98.75 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01016/3.404, allocations: 3.723 MB / 0.8991 GB, free: 95.75 MB / 474.7 MB Notification: Performance of SimCode: time 1.653e-06/3.404, allocations: 2 kB / 0.8991 GB, free: 95.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.117/9.521, allocations: 240.9 MB / 1.134 GB, free: 23.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat