Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.322e-05/5.329e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.09833, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5275, allocations: 96.31 MB / 418.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.5278, allocations: 74.69 kB / 418.2 MB, free: 9.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3035/0.8314, allocations: 73.6 MB / 491.8 MB, free: 15.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8315, allocations: 0 / 491.8 MB, free: 15.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002503/0.8317, allocations: 80 kB / 491.9 MB, free: 15.41 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: 1385 * Number of variables: 1385 Notification: Performance of Generate backend data structure: time 0.01802/0.8498, allocations: 4.09 MB / 496 MB, free: 11.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.8498, allocations: 8.031 kB / 496 MB, free: 11.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003416/0.8533, allocations: 0.7084 MB / 496.7 MB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007248/0.8606, allocations: 0.7475 MB / 497.5 MB, free: 9.777 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009906/0.8705, allocations: 2.568 MB / 0.4883 GB, free: 7.156 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004788/0.871, allocations: 320.4 kB / 0.4886 GB, free: 6.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/0.8732, allocations: 415.8 kB / 0.489 GB, free: 6.434 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3086/1.182, allocations: 9.797 MB / 0.4986 GB, free: 99.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/1.182, allocations: 17.41 kB / 0.4986 GB, free: 99.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001302/1.183, allocations: 186.4 kB / 0.4988 GB, free: 99.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002959/1.186, allocations: 0.8563 MB / 0.4996 GB, free: 99.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03057/1.217, allocations: 8.265 MB / 0.5077 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06507/1.282, allocations: 31.85 MB / 0.5388 GB, free: 84.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/1.297, allocations: 2.995 MB / 0.5417 GB, free: 83.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/1.3, allocations: 1.538 MB / 0.5432 GB, free: 83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0178/1.318, allocations: 8.974 MB / 0.552 GB, free: 77.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/1.318, allocations: 45.28 kB / 0.552 GB, free: 77.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=91): time 4.188e-06/1.318, allocations: 3.688 kB / 0.552 GB, free: 77.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=108): time 0.04104/1.359, allocations: 7.608 MB / 0.5595 GB, free: 74.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/1.359, allocations: 114.7 kB / 0.5596 GB, free: 74.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005892/1.365, allocations: 2.501 MB / 0.562 GB, free: 73.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003222/1.366, allocations: 41.58 kB / 0.5621 GB, free: 73.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001832/1.368, allocations: 2.471 MB / 0.5645 GB, free: 71.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006285/1.368, allocations: 435.4 kB / 0.5649 GB, free: 71.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004551/1.369, allocations: 82.62 kB / 0.565 GB, free: 71.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002677/1.369, allocations: 487.2 kB / 0.5654 GB, free: 70.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003549/1.372, allocations: 1.403 MB / 0.5668 GB, free: 70.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004859/1.377, allocations: 3.689 MB / 0.5704 GB, free: 66.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005277/1.383, allocations: 2.218 MB / 0.5726 GB, free: 65.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.841e-05/1.383, allocations: 22.66 kB / 0.5726 GB, free: 65.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=523) (initialization): time 0.01272/1.396, allocations: 4.78 MB / 0.5773 GB, free: 64.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.92e-05/1.396, allocations: 40.34 kB / 0.5773 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/1.396, allocations: 91.42 kB / 0.5774 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/1.396, allocations: 120.5 kB / 0.5775 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006734/1.403, allocations: 0.9945 MB / 0.5785 GB, free: 63.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000166/1.403, allocations: 164.5 kB / 0.5786 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00483/1.408, allocations: 235.9 kB / 0.5788 GB, free: 63.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009046/1.409, allocations: 241 kB / 0.5791 GB, free: 63.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 46 (n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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 (521): * Single equations (assignments): 520 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001119/1.41, allocations: 441.2 kB / 0.5795 GB, free: 63.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006118/1.411, allocations: 248.8 kB / 0.5797 GB, free: 63.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004936/1.416, allocations: 2.03 MB / 0.5817 GB, free: 62.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/1.416, allocations: 11.41 kB / 0.5817 GB, free: 62.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.416, allocations: 3.656 kB / 0.5817 GB, free: 62.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/1.416, allocations: 7.188 kB / 0.5817 GB, free: 62.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/1.433, allocations: 6.913 MB / 0.5885 GB, free: 57.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-05/1.433, allocations: 16.19 kB / 0.5885 GB, free: 57.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/1.435, allocations: 301 kB / 0.5888 GB, free: 57.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-05/1.435, allocations: 28 kB / 0.5888 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.435, allocations: 48 kB / 0.5889 GB, free: 57.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-05/1.435, allocations: 37.31 kB / 0.5889 GB, free: 57.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.821e-05/1.435, allocations: 27.88 kB / 0.5889 GB, free: 57.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004562/1.44, allocations: 4.233 MB / 0.5931 GB, free: 52.74 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.441, allocations: 355.9 kB / 0.5934 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.442, allocations: 58.45 kB / 0.5935 GB, free: 52.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002371/1.445, allocations: 73.55 kB / 0.5935 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/1.445, allocations: 154.6 kB / 0.5937 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.445, allocations: 56 kB / 0.5937 GB, free: 52.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004286/1.449, allocations: 1.762 MB / 0.5954 GB, free: 50.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.449, allocations: 0 / 0.5954 GB, free: 50.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005421/1.455, allocations: 0.7634 MB / 0.5962 GB, free: 49.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006529/1.461, allocations: 9.527 MB / 0.6055 GB, free: 39.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007005/1.468, allocations: 3.024 MB / 0.6084 GB, free: 37.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.862e-05/1.469, allocations: 0.625 kB / 0.6084 GB, free: 37.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/1.471, allocations: 0.8567 MB / 0.6093 GB, free: 36.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/1.473, allocations: 308.3 kB / 0.6096 GB, free: 36.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/1.496, allocations: 7.946 MB / 0.6173 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00591/1.502, allocations: 3.03 MB / 0.6203 GB, free: 26.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003827/1.506, allocations: 1.606 MB / 0.6219 GB, free: 24.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/1.506, allocations: 3.938 kB / 0.6219 GB, free: 24.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.272/5.778, allocations: 64.11 MB / 0.6845 GB, free: 106.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat does not exist to compare? outputFormat=mat