Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.209e-05/4.209e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1128, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.5663, allocations: 91.16 MB / 413 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/0.5667, allocations: 83.94 kB / 413.1 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4099/0.9767, allocations: 90.59 MB / 0.4919 GB, free: 3.359 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.9767, allocations: 0 / 0.4919 GB, free: 3.359 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002882/0.977, allocations: 80 kB / 0.492 GB, free: 3.281 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.3182/1.295, allocations: 4.251 MB / 0.4961 GB, free: 96.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/1.295, allocations: 10.31 kB / 0.4961 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004704/1.3, allocations: 0.8564 MB / 0.497 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/1.329, allocations: 3.563 MB / 0.5004 GB, free: 96.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/1.349, allocations: 4.665 MB / 0.505 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000581/1.35, allocations: 332.1 kB / 0.5053 GB, free: 96.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003248/1.353, allocations: 436.4 kB / 0.5057 GB, free: 96.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03691/1.39, allocations: 10.9 MB / 0.5164 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003363/1.39, allocations: 36.62 kB / 0.5164 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00332/1.394, allocations: 202.9 kB / 0.5166 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/1.397, allocations: 1.227 MB / 0.5178 GB, free: 94.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02987/1.427, allocations: 10.39 MB / 0.5279 GB, free: 94.58 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07497/1.502, allocations: 37.34 MB / 0.5644 GB, free: 72.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/1.514, allocations: 4.327 MB / 0.5686 GB, free: 70.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004252/1.518, allocations: 2.133 MB / 0.5707 GB, free: 69.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001478/1.52, allocations: 1.322 MB / 0.572 GB, free: 68.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/1.52, allocations: 52.16 kB / 0.5721 GB, free: 68.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 5.75e-06/1.52, allocations: 0 / 0.5721 GB, free: 68.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.05685/1.577, allocations: 11.16 MB / 0.583 GB, free: 62.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/1.577, allocations: 77.36 kB / 0.583 GB, free: 62.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00503/1.582, allocations: 2.493 MB / 0.5855 GB, free: 59.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005964/1.582, allocations: 62.56 kB / 0.5855 GB, free: 59.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002094/1.584, allocations: 2.919 MB / 0.5884 GB, free: 57.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/1.586, allocations: 0.971 MB / 0.5893 GB, free: 56.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006836/1.587, allocations: 111.9 kB / 0.5894 GB, free: 56.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004638/1.587, allocations: 0.5609 MB / 0.59 GB, free: 55.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005529/1.593, allocations: 2.282 MB / 0.5922 GB, free: 53.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00747/1.6, allocations: 5.389 MB / 0.5975 GB, free: 47.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/1.608, allocations: 3.569 MB / 0.601 GB, free: 44.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/1.608, allocations: 36 kB / 0.601 GB, free: 44.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02415/1.632, allocations: 8.071 MB / 0.6089 GB, free: 37.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.853e-05/1.632, allocations: 52.22 kB / 0.6089 GB, free: 37.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.632, allocations: 116 kB / 0.609 GB, free: 37.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006389/1.639, allocations: 1.049 MB / 0.6101 GB, free: 36.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00843/1.647, allocations: 1.331 MB / 0.6114 GB, free: 35.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003838/1.651, allocations: 2.462 MB / 0.6138 GB, free: 33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00593/1.657, allocations: 316.1 kB / 0.6141 GB, free: 32.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/1.659, allocations: 345.5 kB / 0.6144 GB, free: 32.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 710 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001533/1.66, allocations: 0.5181 MB / 0.6149 GB, free: 31.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007183/1.661, allocations: 291.9 kB / 0.6152 GB, free: 31.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/1.676, allocations: 5.01 MB / 0.6201 GB, free: 27.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/1.676, allocations: 43.8 kB / 0.6201 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/1.676, allocations: 4 kB / 0.6201 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6e-05/1.676, allocations: 22.06 kB / 0.6201 GB, free: 27.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0337/1.71, allocations: 11.54 MB / 0.6314 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.915e-05/1.71, allocations: 11.95 kB / 0.6314 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003866/1.714, allocations: 427.3 kB / 0.6318 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006032/1.72, allocations: 0.9038 MB / 0.6327 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006433/1.721, allocations: 63.97 kB / 0.6328 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003375/1.724, allocations: 2.276 MB / 0.635 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/1.724, allocations: 11.88 kB / 0.635 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01948/1.743, allocations: 8.083 MB / 0.6429 GB, free: 3.543 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008822/1.744, allocations: 333.3 kB / 0.6432 GB, free: 3.195 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000961/1.745, allocations: 55.91 kB / 0.6433 GB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.748, allocations: 131.8 kB / 0.6434 GB, free: 3.016 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005791/1.749, allocations: 165.6 kB / 0.6435 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/1.749, allocations: 79.67 kB / 0.6436 GB, free: 2.777 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003769/1.753, allocations: 1.686 MB / 0.6453 GB, free: 1.082 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.753, allocations: 0 / 0.6453 GB, free: 1.082 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006876/1.76, allocations: 1.009 MB / 0.6463 GB, free: 84 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02427/1.784, allocations: 10.68 MB / 0.6567 GB, free: 5.094 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3046/2.089, allocations: 5.894 MB / 0.6624 GB, free: 103.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/2.089, allocations: 1.969 kB / 0.6624 GB, free: 103.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008516/2.097, allocations: 2.546 MB / 0.6649 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003607/2.101, allocations: 397.5 kB / 0.6653 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03828/2.139, allocations: 11.29 MB / 0.6763 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009912/2.149, allocations: 3.601 MB / 0.6798 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005426/2.155, allocations: 2.025 MB / 0.6818 GB, free: 100.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.423e-06/2.155, allocations: 0 / 0.6818 GB, free: 100.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.39/6.545, allocations: 139.1 MB / 0.8177 GB, free: 6.637 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat