Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.382/2.382, allocations: 235 MB / 247.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.459e-05/4.479e-05, allocations: 7.984 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4135, allocations: 54.86 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.6014, allocations: 99.36 MB / 459.2 MB, free: 13.49 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.6018, allocations: 71.97 kB / 459.3 MB, free: 13.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014/1.616, allocations: 162.6 MB / 0.6074 GB, free: 81.19 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.616, allocations: 0 / 0.6074 GB, free: 81.19 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005991/1.617, allocations: 164 kB / 0.6075 GB, free: 81.03 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: 2806 * Number of variables: 2806 Notification: Performance of Generate backend data structure: time 0.03274/1.65, allocations: 8.01 MB / 0.6153 GB, free: 72.93 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.65, allocations: 15.97 kB / 0.6153 GB, free: 72.92 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006524/1.656, allocations: 1.401 MB / 0.6167 GB, free: 71.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0869/1.743, allocations: 12.03 MB / 0.6285 GB, free: 59.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03779/1.781, allocations: 10.81 MB / 0.639 GB, free: 48.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008416/1.782, allocations: 0.6018 MB / 0.6396 GB, free: 47.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0047/1.787, allocations: 0.8199 MB / 0.6404 GB, free: 47.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06354/1.85, allocations: 19.01 MB / 0.659 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007523/1.851, allocations: 107 kB / 0.6591 GB, free: 26.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004206/1.855, allocations: 383.8 kB / 0.6594 GB, free: 26.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003919/1.859, allocations: 1.724 MB / 0.6611 GB, free: 24.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05012/1.909, allocations: 15.19 MB / 0.676 GB, free: 9.191 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5097/2.419, allocations: 79.63 MB / 0.7537 GB, free: 37.21 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0363/2.455, allocations: 8.15 MB / 0.7617 GB, free: 36.51 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008492/2.464, allocations: 4.083 MB / 0.7657 GB, free: 36.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001161/2.465, allocations: 0.6669 MB / 0.7663 GB, free: 35.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.822e-05/2.465, allocations: 64.25 kB / 0.7664 GB, free: 35.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 7.444e-06/2.465, allocations: 0 / 0.7664 GB, free: 35.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=331): time 0.1194/2.585, allocations: 25.9 MB / 0.7917 GB, free: 29.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/2.585, allocations: 296 kB / 0.792 GB, free: 29.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01709/2.602, allocations: 6.65 MB / 0.7984 GB, free: 28.43 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008656/2.603, allocations: 77.33 kB / 0.7985 GB, free: 28.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004966/2.608, allocations: 5.304 MB / 0.8037 GB, free: 24.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002113/2.61, allocations: 1.25 MB / 0.8049 GB, free: 23.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/2.612, allocations: 187.3 kB / 0.8051 GB, free: 23.12 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007248/2.612, allocations: 0.7063 MB / 0.8058 GB, free: 22.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008422/2.621, allocations: 3.366 MB / 0.8091 GB, free: 21.49 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01229/2.633, allocations: 8.803 MB / 0.8177 GB, free: 13.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/2.645, allocations: 5.406 MB / 0.823 GB, free: 11.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002517/2.645, allocations: 54.12 kB / 0.823 GB, free: 11.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03432/2.68, allocations: 12 MB / 0.8347 GB, free: 6.652 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000164/2.68, allocations: 93.83 kB / 0.8348 GB, free: 6.566 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003172/2.68, allocations: 192 kB / 0.835 GB, free: 6.379 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/2.685, allocations: 1.005 MB / 0.836 GB, free: 5.539 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01409/2.699, allocations: 2.163 MB / 0.8381 GB, free: 3.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/2.717, allocations: 11 MB / 0.8488 GB, free: 9.152 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/2.73, allocations: 0.5052 MB / 0.8493 GB, free: 8.703 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002433/2.732, allocations: 0.5497 MB / 0.8499 GB, free: 8.168 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 882 * Number of states: 0 () * Number of discrete variables: 63 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.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],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.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 (1149): * Single equations (assignments): 1142 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003103/2.735, allocations: 0.824 MB / 0.8507 GB, free: 7.344 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002066/2.738, allocations: 0.6595 MB / 0.8513 GB, free: 6.676 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01791/2.755, allocations: 5.865 MB / 0.857 GB, free: 1.785 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.328e-05/2.756, allocations: 36.55 kB / 0.8571 GB, free: 1.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-05/2.756, allocations: 8 kB / 0.8571 GB, free: 1.742 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.698e-05/2.756, allocations: 21.48 kB / 0.8571 GB, free: 1.742 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05024/2.806, allocations: 14.67 MB / 0.8714 GB, free: 5.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-05/2.806, allocations: 4 kB / 0.8714 GB, free: 5.961 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005816/2.812, allocations: 0.5244 MB / 0.8719 GB, free: 5.531 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003576/2.816, allocations: 0.66 MB / 0.8726 GB, free: 5.023 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000777/2.816, allocations: 67.83 kB / 0.8726 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/2.834, allocations: 9.858 MB / 0.8823 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/2.834, allocations: 0 / 0.8823 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02639/2.861, allocations: 9.923 MB / 0.892 GB, free: 2.496 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005141/2.866, allocations: 1.162 MB / 0.8931 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00239/2.868, allocations: 56 kB / 0.8932 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006598/2.875, allocations: 194.1 kB / 0.8933 GB, free: 1.227 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001211/2.876, allocations: 192.3 kB / 0.8935 GB, free: 1.109 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004026/2.877, allocations: 95 kB / 0.8936 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.3957/3.272, allocations: 5.331 MB / 0.8988 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.442e-06/3.272, allocations: 0 / 0.8988 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0139/3.286, allocations: 1.811 MB / 0.9006 GB, free: 124.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(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.02831/3.315, allocations: 10.88 MB / 0.9112 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0227/3.337, allocations: 8.329 MB / 0.9193 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/3.337, allocations: 0 / 0.9193 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007255/3.345, allocations: 3.093 MB / 0.9224 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008648/3.353, allocations: 0.9248 MB / 0.9233 GB, free: 122 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07551/3.429, allocations: 18.03 MB / 0.9409 GB, free: 119 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01706/3.446, allocations: 5.904 MB / 0.9466 GB, free: 118 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009965/3.456, allocations: 3.983 MB / 0.9505 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of SimCode: time 2.154e-06/3.456, allocations: 0 / 0.9505 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.285/9.741, allocations: 283.4 MB / 1.227 GB, free: 38.64 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat does not exist to compare? outputFormat=mat