Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.096e-05/4.103e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.401, allocations: 54.85 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.5876, allocations: 99.57 MB / 459.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.588, allocations: 75.95 kB / 459.5 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9912/1.579, allocations: 170.1 MB / 0.6148 GB, free: 73.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.903e-06/1.579, allocations: 0 / 0.6148 GB, free: 73.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006001/1.58, allocations: 167.9 kB / 0.615 GB, free: 73.66 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: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.03559/1.616, allocations: 8.262 MB / 0.623 GB, free: 65.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/1.616, allocations: 12.03 kB / 0.6231 GB, free: 65.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007533/1.623, allocations: 1.463 MB / 0.6245 GB, free: 63.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1105/1.734, allocations: 12.08 MB / 0.6363 GB, free: 51.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03795/1.772, allocations: 10.94 MB / 0.647 GB, free: 40.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009119/1.773, allocations: 0.6342 MB / 0.6476 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005173/1.778, allocations: 0.8627 MB / 0.6484 GB, free: 39.19 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06367/1.842, allocations: 19.73 MB / 0.6677 GB, free: 17.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007358/1.842, allocations: 115 kB / 0.6678 GB, free: 17.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004575/1.847, allocations: 403.8 kB / 0.6682 GB, free: 17.42 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004047/1.851, allocations: 1.815 MB / 0.67 GB, free: 15.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05238/1.904, allocations: 15.74 MB / 0.6853 GB, free: 15.84 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5112/2.415, allocations: 82.1 MB / 0.7655 GB, free: 32.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03386/2.449, allocations: 8.047 MB / 0.7734 GB, free: 32.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008379/2.457, allocations: 4.07 MB / 0.7774 GB, free: 32.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00111/2.458, allocations: 0.6678 MB / 0.778 GB, free: 31.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.193e-05/2.458, allocations: 77.58 kB / 0.7781 GB, free: 31.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 7.584e-06/2.458, allocations: 0 / 0.7781 GB, free: 31.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=335): time 0.1199/2.578, allocations: 26.24 MB / 0.8037 GB, free: 23.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/2.579, allocations: 296.4 kB / 0.804 GB, free: 23.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01716/2.596, allocations: 6.802 MB / 0.8106 GB, free: 20.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009111/2.597, allocations: 75.64 kB / 0.8107 GB, free: 20.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005073/2.602, allocations: 5.538 MB / 0.8161 GB, free: 16.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/2.604, allocations: 1.272 MB / 0.8174 GB, free: 15.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/2.605, allocations: 194.8 kB / 0.8175 GB, free: 15.47 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006769/2.606, allocations: 0.7195 MB / 0.8182 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008691/2.615, allocations: 3.431 MB / 0.8216 GB, free: 13.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01285/2.628, allocations: 9.054 MB / 0.8304 GB, free: 5.074 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01272/2.64, allocations: 5.541 MB / 0.8358 GB, free: 3.305 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002466/2.641, allocations: 58.84 kB / 0.8359 GB, free: 3.305 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03721/2.678, allocations: 12.31 MB / 0.8479 GB, free: 9.723 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001995/2.678, allocations: 94.5 kB / 0.848 GB, free: 9.633 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003944/2.679, allocations: 203 kB / 0.8482 GB, free: 9.438 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004675/2.683, allocations: 1.044 MB / 0.8492 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01549/2.699, allocations: 2.245 MB / 0.8514 GB, free: 6.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02134/2.72, allocations: 11.28 MB / 0.8624 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01293/2.733, allocations: 0.5255 MB / 0.863 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002859/2.736, allocations: 0.5713 MB / 0.8635 GB, free: 10.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1179): * Single equations (assignments): 1172 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004523/2.741, allocations: 0.8448 MB / 0.8643 GB, free: 10.03 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002403/2.743, allocations: 0.6786 MB / 0.865 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01998/2.763, allocations: 5.955 MB / 0.8708 GB, free: 4.379 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.672e-05/2.763, allocations: 38.89 kB / 0.8709 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.196e-05/2.763, allocations: 12 kB / 0.8709 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/2.763, allocations: 15.98 kB / 0.8709 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05454/2.818, allocations: 15.06 MB / 0.8856 GB, free: 8.223 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.062e-05/2.818, allocations: 1.312 kB / 0.8856 GB, free: 8.223 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006286/2.824, allocations: 0.5619 MB / 0.8861 GB, free: 7.773 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/2.828, allocations: 0.7008 MB / 0.8868 GB, free: 7.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001008/2.829, allocations: 59.47 kB / 0.8869 GB, free: 7.176 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3929/3.222, allocations: 10.1 MB / 0.8967 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.627e-06/3.222, allocations: 7.781 kB / 0.8967 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/3.25, allocations: 10.07 MB / 0.9066 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005263/3.255, allocations: 1.188 MB / 0.9077 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002838/3.258, allocations: 55.83 kB / 0.9078 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006903/3.265, allocations: 197.5 kB / 0.908 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/3.266, allocations: 196 kB / 0.9082 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004613/3.267, allocations: 87.66 kB / 0.9082 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01601/3.283, allocations: 4.85 MB / 0.913 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/3.283, allocations: 0.6562 kB / 0.913 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01446/3.298, allocations: 1.866 MB / 0.9148 GB, free: 119.6 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%) 11,(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.02664/3.324, allocations: 11.02 MB / 0.9256 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02014/3.344, allocations: 8.53 MB / 0.9339 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/3.344, allocations: 4.906 kB / 0.9339 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006796/3.351, allocations: 3.137 MB / 0.937 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008403/3.36, allocations: 0.931 MB / 0.9379 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06189/3.422, allocations: 18.68 MB / 0.9561 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01588/3.438, allocations: 6.118 MB / 0.9621 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01041/3.448, allocations: 4.157 MB / 0.9662 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/3.448, allocations: 0 / 0.9662 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.513/9.961, allocations: 294.7 MB / 1.254 GB, free: 4.578 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat