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.861/1.861, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.258e-05, allocations: 0 / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5433, allocations: 93.22 MB / 415.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5436, allocations: 78.58 kB / 415.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.353/0.8967, allocations: 82.29 MB / 497.5 MB, free: 9.645 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.8967, allocations: 3.938 kB / 497.5 MB, free: 9.641 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002934/0.897, allocations: 87.98 kB / 497.5 MB, free: 9.555 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: 1555 * Number of variables: 1555 Notification: Performance of Generate backend data structure: time 0.02365/0.9207, allocations: 4.272 MB / 0.4901 GB, free: 5.215 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.9208, allocations: 12.03 kB / 0.4901 GB, free: 5.203 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003681/0.9245, allocations: 0.7987 MB / 0.4908 GB, free: 4.395 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01854/0.9431, allocations: 2.256 MB / 0.493 GB, free: 2.129 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3058/1.249, allocations: 4.744 MB / 0.4977 GB, free: 91.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005113/1.249, allocations: 337.6 kB / 0.498 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00242/1.252, allocations: 441.7 kB / 0.4984 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03234/1.284, allocations: 10.48 MB / 0.5087 GB, free: 88.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003255/1.285, allocations: 63.28 kB / 0.5087 GB, free: 88.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002037/1.287, allocations: 213.8 kB / 0.5089 GB, free: 88.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002829/1.29, allocations: 1.012 MB / 0.5099 GB, free: 88.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02688/1.317, allocations: 8.193 MB / 0.5179 GB, free: 88.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0708/1.387, allocations: 49.28 MB / 0.566 GB, free: 54.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01471/1.402, allocations: 3.493 MB / 0.5694 GB, free: 53.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003508/1.406, allocations: 1.683 MB / 0.5711 GB, free: 52.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/1.422, allocations: 7.527 MB / 0.5784 GB, free: 48.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/1.423, allocations: 49.81 kB / 0.5785 GB, free: 48.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=139): time 4.969e-06/1.423, allocations: 3.5 kB / 0.5785 GB, free: 48.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.04181/1.464, allocations: 10.57 MB / 0.5888 GB, free: 43.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001347/1.466, allocations: 1.605 MB / 0.5904 GB, free: 42.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007879/1.474, allocations: 3.495 MB / 0.5938 GB, free: 40.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004391/1.474, allocations: 45.75 kB / 0.5938 GB, free: 40.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/1.477, allocations: 3.115 MB / 0.5969 GB, free: 38.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001047/1.478, allocations: 0.6059 MB / 0.5975 GB, free: 38.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006765/1.478, allocations: 115.5 kB / 0.5976 GB, free: 37.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003589/1.479, allocations: 0.5528 MB / 0.5981 GB, free: 37.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005023/1.484, allocations: 2.073 MB / 0.6001 GB, free: 36.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007466/1.491, allocations: 5.745 MB / 0.6058 GB, free: 31.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007492/1.499, allocations: 3.427 MB / 0.6091 GB, free: 28.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001381/1.499, allocations: 40 kB / 0.6091 GB, free: 28.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.02324/1.522, allocations: 7.943 MB / 0.6169 GB, free: 21.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.753e-05/1.523, allocations: 60 kB / 0.617 GB, free: 21.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008438/1.531, allocations: 2.806 MB / 0.6197 GB, free: 19.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005443/1.536, allocations: 1.118 MB / 0.6208 GB, free: 18.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008292/1.545, allocations: 1.371 MB / 0.6221 GB, free: 17.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007392/1.552, allocations: 4.728 MB / 0.6267 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007695/1.56, allocations: 425 kB / 0.6271 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/1.562, allocations: 366.4 kB / 0.6275 GB, free: 12.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (735): * Single equations (assignments): 726 * 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.001427/1.563, allocations: 0.5675 MB / 0.6281 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008744/1.564, allocations: 323.8 kB / 0.6284 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009564/1.573, allocations: 3.065 MB / 0.6314 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008127/1.582, allocations: 2.58 MB / 0.6339 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.135e-05/1.582, allocations: 11.8 kB / 0.6339 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.487e-05/1.582, allocations: 11.72 kB / 0.6339 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009813/1.592, allocations: 3.847 MB / 0.6377 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/1.592, allocations: 0 / 0.6377 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.594, allocations: 249.6 kB / 0.6379 GB, free: 3.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005326/1.6, allocations: 1.018 MB / 0.6389 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004207/1.6, allocations: 43.78 kB / 0.6389 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009179/1.609, allocations: 5.023 MB / 0.6438 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001464/1.611, allocations: 1.476 MB / 0.6453 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/1.626, allocations: 5.445 MB / 0.6506 GB, free: 7.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/1.628, allocations: 404.7 kB / 0.651 GB, free: 7.473 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.629, allocations: 27.52 kB / 0.651 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/1.632, allocations: 147.2 kB / 0.6511 GB, free: 7.363 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005758/1.633, allocations: 88.36 kB / 0.6512 GB, free: 7.312 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.633, allocations: 43.12 kB / 0.6513 GB, free: 7.277 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00665/1.64, allocations: 2.406 MB / 0.6536 GB, free: 5.168 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.373e-06/1.64, allocations: 0 / 0.6536 GB, free: 5.168 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008536/1.648, allocations: 1.055 MB / 0.6546 GB, free: 4.121 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (114): * Single equations (assignments): 107 * 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.3106/1.959, allocations: 6.272 MB / 0.6608 GB, free: 98.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01622/1.975, allocations: 5.411 MB / 0.6661 GB, free: 97.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.975, allocations: 0.9844 kB / 0.6661 GB, free: 97.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007791/1.983, allocations: 2.173 MB / 0.6682 GB, free: 97.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003597/1.987, allocations: 394.3 kB / 0.6686 GB, free: 97.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03368/2.021, allocations: 9.806 MB / 0.6781 GB, free: 95.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007212/2.028, allocations: 3.347 MB / 0.6814 GB, free: 94.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004462/2.032, allocations: 1.902 MB / 0.6833 GB, free: 94.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.483e-06/2.032, allocations: 0 / 0.6833 GB, free: 94.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.924/6.956, allocations: 149.8 MB / 0.8295 GB, free: 107.2 MB / 458.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