Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.94/1.94, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.632e-05/2.643e-05, allocations: 4 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.09994, allocations: 48.7 MB / 316.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5266, allocations: 92.81 MB / 409.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.527, allocations: 78.81 kB / 409.2 MB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3451/0.8721, allocations: 80.38 MB / 489.6 MB, free: 2.668 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8722, allocations: 0 / 489.6 MB, free: 2.668 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002601/0.8724, allocations: 87.98 kB / 489.7 MB, free: 2.582 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1555 * Number of variables: 1555 Notification: Performance of Generate backend data structure: time 0.3438/1.216, allocations: 4.258 MB / 493.9 MB, free: 85.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/1.216, allocations: 10.44 kB / 493.9 MB, free: 85.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01878/1.235, allocations: 2.255 MB / 496.2 MB, free: 85.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01997/1.255, allocations: 4.749 MB / 0.4892 GB, free: 84.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003934/1.256, allocations: 142.5 kB / 0.4893 GB, free: 84.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002428/1.258, allocations: 257.7 kB / 0.4896 GB, free: 84.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01704/1.275, allocations: 6.122 MB / 0.4955 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02447/1.3, allocations: 9.475 MB / 0.5048 GB, free: 81.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002476/1.3, allocations: 61.72 kB / 0.5049 GB, free: 81.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001603/1.302, allocations: 31.16 kB / 0.5049 GB, free: 81.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002202/1.304, allocations: 1.015 MB / 0.5059 GB, free: 81.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06582/1.37, allocations: 47.99 MB / 0.5527 GB, free: 48.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004708/1.374, allocations: 2.606 MB / 0.5553 GB, free: 46.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003045/1.378, allocations: 1.582 MB / 0.5568 GB, free: 46.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001234/1.379, allocations: 0.6529 MB / 0.5575 GB, free: 45.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/1.379, allocations: 46.91 kB / 0.5575 GB, free: 45.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 6.152e-06/1.379, allocations: 3.719 kB / 0.5575 GB, free: 45.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=157): time 0.03221/1.411, allocations: 10.29 MB / 0.5676 GB, free: 41.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/1.411, allocations: 147.5 kB / 0.5677 GB, free: 41.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006205/1.418, allocations: 3.005 MB / 0.5706 GB, free: 39.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004743/1.418, allocations: 29.64 kB / 0.5707 GB, free: 39.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.421, allocations: 3.193 MB / 0.5738 GB, free: 37.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/1.422, allocations: 0.6211 MB / 0.5744 GB, free: 36.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007153/1.422, allocations: 3.188 kB / 0.5744 GB, free: 36.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004526/1.423, allocations: 0.571 MB / 0.575 GB, free: 36.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0048/1.428, allocations: 2.033 MB / 0.5769 GB, free: 35.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007358/1.435, allocations: 5.883 MB / 0.5827 GB, free: 29.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007357/1.443, allocations: 3.429 MB / 0.586 GB, free: 27.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/1.443, allocations: 36 kB / 0.5861 GB, free: 27.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.02244/1.465, allocations: 7.762 MB / 0.5936 GB, free: 20.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/1.465, allocations: 67.95 kB / 0.5937 GB, free: 20.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008214/1.474, allocations: 2.753 MB / 0.5964 GB, free: 18.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005416/1.479, allocations: 1.117 MB / 0.5975 GB, free: 17.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008633/1.488, allocations: 1.439 MB / 0.5989 GB, free: 16.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007302/1.495, allocations: 4.573 MB / 0.6034 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/1.502, allocations: 299.2 kB / 0.6036 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/1.504, allocations: 386.4 kB / 0.604 GB, free: 11.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 36 (FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (771): * Single equations (assignments): 762 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.00206/1.506, allocations: 455.5 kB / 0.6045 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01046/1.517, allocations: 3.357 MB / 0.6077 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.518, allocations: 308.1 kB / 0.608 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009807/1.528, allocations: 3.088 MB / 0.611 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0081/1.536, allocations: 2.552 MB / 0.6135 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-05/1.536, allocations: 4 kB / 0.6135 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.372e-05/1.536, allocations: 6.375 kB / 0.6135 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02754/1.564, allocations: 8.594 MB / 0.6219 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.612e-05/1.564, allocations: 0 / 0.6219 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002846/1.566, allocations: 271.6 kB / 0.6222 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00569/1.572, allocations: 1.018 MB / 0.6232 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004453/1.573, allocations: 15.98 kB / 0.6232 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/1.583, allocations: 4.922 MB / 0.628 GB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00158/1.584, allocations: 1.407 MB / 0.6294 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01567/1.6, allocations: 5.581 MB / 0.6348 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.601, allocations: 365 kB / 0.6352 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/1.603, allocations: 11.98 kB / 0.6352 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003464/1.606, allocations: 127.4 kB / 0.6353 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006722/1.607, allocations: 100.6 kB / 0.6354 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002164/1.607, allocations: 43.98 kB / 0.6355 GB, free: 13.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005698/1.613, allocations: 1.98 MB / 0.6374 GB, free: 11.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.613, allocations: 0 / 0.6374 GB, free: 11.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008057/1.621, allocations: 0.9604 MB / 0.6383 GB, free: 10.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET140104829096328.x[3],$STATESET140104829096328.x[2],$STATESET140104829096328.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01696/1.638, allocations: 6.552 MB / 0.6447 GB, free: 4.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3235/1.962, allocations: 5.456 MB / 0.6501 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.962, allocations: 2.625 kB / 0.6501 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007964/1.97, allocations: 2.197 MB / 0.6522 GB, free: 105.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/1.973, allocations: 325.9 kB / 0.6525 GB, free: 105.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03518/2.008, allocations: 9.708 MB / 0.662 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0084/2.017, allocations: 3.337 MB / 0.6652 GB, free: 102.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005036/2.022, allocations: 1.919 MB / 0.6671 GB, free: 102.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.452e-06/2.022, allocations: 0 / 0.6671 GB, free: 102.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.853/6.875, allocations: 148.7 MB / 0.8124 GB, free: 89.91 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat does not exist to compare? outputFormat=mat