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.231/2.231, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.52e-05/2.548e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 48.71 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5523, allocations: 90.75 MB / 407.1 MB, free: 1.777 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5526, allocations: 76.27 kB / 407.1 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.653/1.206, allocations: 89 MB / 496.1 MB, free: 88.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.206, allocations: 0 / 496.1 MB, free: 88.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002321/1.206, allocations: 81.06 kB / 496.2 MB, free: 88.7 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.02462/1.231, allocations: 4.26 MB / 0.4887 GB, free: 87.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/1.231, allocations: 8.656 kB / 0.4887 GB, free: 87.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02908/1.26, allocations: 3.56 MB / 0.4922 GB, free: 86.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01929/1.279, allocations: 4.671 MB / 0.4968 GB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004331/1.28, allocations: 140 kB / 0.4969 GB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003058/1.283, allocations: 260.3 kB / 0.4972 GB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02096/1.304, allocations: 7.778 MB / 0.5048 GB, free: 86.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02974/1.333, allocations: 10.18 MB / 0.5147 GB, free: 84.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000317/1.334, allocations: 39.02 kB / 0.5147 GB, free: 84.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002681/1.337, allocations: 13.94 kB / 0.5148 GB, free: 84.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002783/1.339, allocations: 1.224 MB / 0.516 GB, free: 84.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07397/1.413, allocations: 34.69 MB / 0.5498 GB, free: 66.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006924/1.42, allocations: 4.009 MB / 0.5537 GB, free: 64.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004149/1.425, allocations: 2.08 MB / 0.5558 GB, free: 63.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001572/1.426, allocations: 1.326 MB / 0.5571 GB, free: 62.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/1.426, allocations: 51.44 kB / 0.5571 GB, free: 62.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 6.623e-06/1.426, allocations: 0 / 0.5571 GB, free: 62.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=266): time 0.04261/1.469, allocations: 12.01 MB / 0.5689 GB, free: 54.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/1.469, allocations: 77.41 kB / 0.5689 GB, free: 54.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004698/1.474, allocations: 2.395 MB / 0.5713 GB, free: 52.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005877/1.474, allocations: 29.67 kB / 0.5713 GB, free: 52.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002287/1.477, allocations: 3.029 MB / 0.5743 GB, free: 49.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001498/1.478, allocations: 0.9555 MB / 0.5752 GB, free: 48.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006551/1.479, allocations: 3.469 kB / 0.5752 GB, free: 48.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004572/1.479, allocations: 0.5763 MB / 0.5758 GB, free: 48.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005218/1.485, allocations: 2.252 MB / 0.578 GB, free: 46.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007868/1.492, allocations: 5.632 MB / 0.5835 GB, free: 39.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007959/1.5, allocations: 3.619 MB / 0.587 GB, free: 36.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.501, allocations: 36 kB / 0.587 GB, free: 36.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02412/1.525, allocations: 8.008 MB / 0.5948 GB, free: 29.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.42e-05/1.525, allocations: 59.95 kB / 0.5949 GB, free: 29.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/1.525, allocations: 120 kB / 0.595 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006701/1.532, allocations: 1.068 MB / 0.5961 GB, free: 28.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008734/1.541, allocations: 1.414 MB / 0.5974 GB, free: 27.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00357/1.544, allocations: 2.401 MB / 0.5998 GB, free: 25.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006046/1.55, allocations: 214.8 kB / 0.6 GB, free: 24.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.552, allocations: 363.4 kB / 0.6003 GB, free: 24.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * 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 (765): * Single equations (assignments): 756 * 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.001318/1.553, allocations: 404 kB / 0.6007 GB, free: 24.1 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01369/1.567, allocations: 4.369 MB / 0.605 GB, free: 20.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/1.568, allocations: 284.3 kB / 0.6053 GB, free: 19.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01596/1.584, allocations: 4.914 MB / 0.6101 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001277/1.584, allocations: 52.94 kB / 0.6101 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/1.584, allocations: 0 / 0.6101 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.521e-05/1.584, allocations: 11.95 kB / 0.6101 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03039/1.615, allocations: 10.46 MB / 0.6203 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-05/1.615, allocations: 12.03 kB / 0.6203 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003862/1.619, allocations: 423.4 kB / 0.6207 GB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006169/1.625, allocations: 0.9072 MB / 0.6216 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006075/1.625, allocations: 35.97 kB / 0.6217 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003158/1.629, allocations: 2.182 MB / 0.6238 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/1.629, allocations: 15.89 kB / 0.6238 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02082/1.65, allocations: 8.043 MB / 0.6317 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/1.651, allocations: 325.3 kB / 0.632 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.652, allocations: 23.98 kB / 0.632 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/1.654, allocations: 103.9 kB / 0.6321 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006624/1.655, allocations: 169.5 kB / 0.6323 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002953/1.655, allocations: 75.97 kB / 0.6323 GB, free: 7.551 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004036/1.66, allocations: 1.569 MB / 0.6339 GB, free: 5.977 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.66, allocations: 0 / 0.6339 GB, free: 5.977 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007305/1.667, allocations: 0.8788 MB / 0.6347 GB, free: 5.098 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (217): * Single equations (assignments): 208 * 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.3209/1.988, allocations: 10.74 MB / 0.6452 GB, free: 91.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01661/2.005, allocations: 5.947 MB / 0.651 GB, free: 91.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/2.005, allocations: 1.094 kB / 0.651 GB, free: 91.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007918/2.013, allocations: 2.545 MB / 0.6535 GB, free: 91.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/2.016, allocations: 283.9 kB / 0.6538 GB, free: 91.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03519/2.051, allocations: 11.13 MB / 0.6646 GB, free: 89.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007471/2.058, allocations: 3.588 MB / 0.6681 GB, free: 88.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004907/2.063, allocations: 2.023 MB / 0.6701 GB, free: 88.52 MB / 426.7 MB Notification: Performance of SimCode: time 2.234e-06/2.063, allocations: 3.406 kB / 0.6701 GB, free: 88.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.721/6.784, allocations: 138.9 MB / 0.8058 GB, free: 96.29 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