Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.495/2.495, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.611e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.414, allocations: 54.85 MB / 359.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.6113, allocations: 101.6 MB / 461.4 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.6117, allocations: 89.06 kB / 461.5 MB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7081/1.32, allocations: 97.49 MB / 0.5459 GB, free: 104.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.32, allocations: 0 / 0.5459 GB, free: 104.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002686/1.32, allocations: 94.03 kB / 0.546 GB, free: 104.8 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02522/1.345, allocations: 4.644 MB / 0.5505 GB, free: 102.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/1.345, allocations: 8.969 kB / 0.5506 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004684/1.35, allocations: 0.9404 MB / 0.5515 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02718/1.377, allocations: 3.62 MB / 0.555 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02008/1.397, allocations: 4.895 MB / 0.5598 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000475/1.398, allocations: 373.3 kB / 0.5601 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003259/1.401, allocations: 496.9 kB / 0.5606 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03668/1.438, allocations: 12.05 MB / 0.5724 GB, free: 98.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002834/1.438, allocations: 38.16 kB / 0.5724 GB, free: 98.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002825/1.441, allocations: 219.4 kB / 0.5726 GB, free: 98.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002849/1.444, allocations: 1.316 MB / 0.5739 GB, free: 98.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03229/1.476, allocations: 11.21 MB / 0.5849 GB, free: 94.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0825/1.559, allocations: 41.89 MB / 0.6258 GB, free: 60.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01553/1.575, allocations: 4.891 MB / 0.6306 GB, free: 55.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005013/1.58, allocations: 2.354 MB / 0.6329 GB, free: 53.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01571/1.595, allocations: 6.557 MB / 0.6393 GB, free: 46.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/1.595, allocations: 56.52 kB / 0.6393 GB, free: 46.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=228): time 6.522e-06/1.595, allocations: 0 / 0.6393 GB, free: 46.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.05466/1.65, allocations: 13.61 MB / 0.6526 GB, free: 32.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/1.65, allocations: 73.41 kB / 0.6527 GB, free: 32.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006435/1.657, allocations: 2.82 MB / 0.6554 GB, free: 29.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005792/1.657, allocations: 57.7 kB / 0.6555 GB, free: 29.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.66, allocations: 3.255 MB / 0.6587 GB, free: 26.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001345/1.661, allocations: 0.8901 MB / 0.6595 GB, free: 25.37 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007387/1.662, allocations: 119.8 kB / 0.6596 GB, free: 25.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000454/1.662, allocations: 0.5722 MB / 0.6602 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006202/1.669, allocations: 2.335 MB / 0.6625 GB, free: 22.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008276/1.677, allocations: 5.649 MB / 0.668 GB, free: 15.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007897/1.685, allocations: 3.671 MB / 0.6716 GB, free: 11.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.685, allocations: 35.95 kB / 0.6716 GB, free: 11.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02421/1.709, allocations: 8.433 MB / 0.6799 GB, free: 2.887 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.71e-05/1.709, allocations: 57.72 kB / 0.6799 GB, free: 2.832 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/1.71, allocations: 116 kB / 0.68 GB, free: 2.719 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006184/1.716, allocations: 1.156 MB / 0.6811 GB, free: 1.559 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008592/1.724, allocations: 1.376 MB / 0.6825 GB, free: 184 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.735, allocations: 4.589 MB / 0.687 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006671/1.741, allocations: 327.7 kB / 0.6873 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/1.743, allocations: 352 kB / 0.6876 GB, free: 10.77 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (742): * Single equations (assignments): 734 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.00184/1.745, allocations: 0.54 MB / 0.6881 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008603/1.746, allocations: 300.1 kB / 0.6884 GB, free: 9.926 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/1.76, allocations: 4.394 MB / 0.6927 GB, free: 5.504 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001242/1.76, allocations: 51.89 kB / 0.6928 GB, free: 5.453 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.76, allocations: 0 / 0.6928 GB, free: 5.453 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-05/1.76, allocations: 15.95 kB / 0.6928 GB, free: 5.438 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3609/2.121, allocations: 10.38 MB / 0.7029 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.508e-05/2.121, allocations: 5.688 kB / 0.7029 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003788/2.125, allocations: 392.1 kB / 0.7033 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/2.129, allocations: 0.6682 MB / 0.704 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005929/2.129, allocations: 47.8 kB / 0.704 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004301/2.134, allocations: 2.41 MB / 0.7064 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.657e-06/2.134, allocations: 8.312 kB / 0.7064 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01861/2.152, allocations: 7.124 MB / 0.7133 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/2.153, allocations: 353.3 kB / 0.7137 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/2.154, allocations: 42.47 kB / 0.7137 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002839/2.157, allocations: 139.1 kB / 0.7138 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006204/2.158, allocations: 133.7 kB / 0.714 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002705/2.158, allocations: 66.61 kB / 0.714 GB, free: 103.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005425/2.164, allocations: 1.9 MB / 0.7159 GB, free: 103.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.164, allocations: 0 / 0.7159 GB, free: 103.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007624/2.171, allocations: 1.07 MB / 0.7169 GB, free: 103.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 182 * 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.01678/2.188, allocations: 8.906 MB / 0.7256 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01357/2.202, allocations: 5.553 MB / 0.731 GB, free: 99.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.202, allocations: 3.969 kB / 0.731 GB, free: 99.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006657/2.209, allocations: 2.377 MB / 0.7334 GB, free: 99.03 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003539/2.212, allocations: 411.8 kB / 0.7338 GB, free: 98.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/2.247, allocations: 11.6 MB / 0.7451 GB, free: 94.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00826/2.256, allocations: 3.832 MB / 0.7488 GB, free: 93.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005242/2.261, allocations: 2.158 MB / 0.7509 GB, free: 91.65 MB / 474.7 MB Notification: Performance of SimCode: time 1.974e-06/2.261, allocations: 4 kB / 0.7509 GB, free: 91.64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.101/7.361, allocations: 139.1 MB / 0.8868 GB, free: 110.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat