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 2.092/2.092, allocations: 209.4 MB / 216.9 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.877e-05, allocations: 6.109 kB / 267.6 MB, free: 5.348 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 48.7 MB / 316.3 MB, free: 4.555 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5608/0.6708, allocations: 95.9 MB / 412.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.6712, allocations: 74.08 kB / 412.3 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3014/0.9725, allocations: 71.78 MB / 484.1 MB, free: 8.336 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.9726, allocations: 0 / 484.1 MB, free: 8.336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003075/0.973, allocations: 79.94 kB / 484.1 MB, free: 8.258 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: 1385 * Number of variables: 1385 Notification: Performance of Generate backend data structure: time 0.01981/0.9928, allocations: 4.086 MB / 488.2 MB, free: 4.109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.9929, allocations: 12.03 kB / 488.2 MB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007989/1.001, allocations: 0.7514 MB / 489 MB, free: 3.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/1.012, allocations: 2.572 MB / 491.6 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/1.012, allocations: 136 kB / 491.7 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002329/1.014, allocations: 243.9 kB / 491.9 MB, free: 356 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3385/1.353, allocations: 6.132 MB / 498.1 MB, free: 91.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0272/1.38, allocations: 7.802 MB / 0.494 GB, free: 90.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001701/1.381, allocations: 17.53 kB / 0.494 GB, free: 90.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/1.382, allocations: 13.11 kB / 0.494 GB, free: 90.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002957/1.385, allocations: 0.8585 MB / 0.4949 GB, free: 90.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06439/1.449, allocations: 30.24 MB / 0.5244 GB, free: 76.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/1.454, allocations: 1.948 MB / 0.5263 GB, free: 75.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/1.456, allocations: 1.445 MB / 0.5277 GB, free: 74.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01746/1.474, allocations: 8.585 MB / 0.5361 GB, free: 69.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/1.474, allocations: 45 kB / 0.5361 GB, free: 69.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 4.459e-06/1.474, allocations: 3.875 kB / 0.5361 GB, free: 69.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.02891/1.503, allocations: 8.043 MB / 0.544 GB, free: 66.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/1.503, allocations: 119.8 kB / 0.5441 GB, free: 66.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004545/1.507, allocations: 2.163 MB / 0.5462 GB, free: 65.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000332/1.508, allocations: 25.7 kB / 0.5463 GB, free: 65.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/1.51, allocations: 2.6 MB / 0.5488 GB, free: 63.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005949/1.51, allocations: 388.3 kB / 0.5492 GB, free: 63.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003722/1.511, allocations: 3.5 kB / 0.5492 GB, free: 63.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002857/1.511, allocations: 493.5 kB / 0.5496 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002987/1.514, allocations: 1.292 MB / 0.5509 GB, free: 62.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004548/1.519, allocations: 3.715 MB / 0.5545 GB, free: 58.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007146/1.526, allocations: 2.254 MB / 0.5567 GB, free: 57.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/1.526, allocations: 30.81 kB / 0.5568 GB, free: 57.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01453/1.541, allocations: 4.614 MB / 0.5613 GB, free: 55.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.198e-05/1.541, allocations: 42.72 kB / 0.5613 GB, free: 55.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/1.541, allocations: 87.47 kB / 0.5614 GB, free: 55.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001791/1.541, allocations: 129 kB / 0.5615 GB, free: 55.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0067/1.548, allocations: 1.022 MB / 0.5625 GB, free: 55.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001614/1.548, allocations: 172.8 kB / 0.5627 GB, free: 55.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005266/1.553, allocations: 169.4 kB / 0.5628 GB, free: 55.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/1.554, allocations: 257.1 kB / 0.5631 GB, free: 55.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 397 * 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 (534): * Single equations (assignments): 533 * 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.0008057/1.555, allocations: 340.7 kB / 0.5634 GB, free: 55.38 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003416/1.559, allocations: 1.539 MB / 0.5649 GB, free: 54.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005303/1.559, allocations: 220.7 kB / 0.5651 GB, free: 53.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003834/1.563, allocations: 1.709 MB / 0.5668 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/1.563, allocations: 8 kB / 0.5668 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.563, allocations: 3.953 kB / 0.5668 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/1.563, allocations: 7.797 kB / 0.5668 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/1.577, allocations: 5.59 MB / 0.5723 GB, free: 47.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.348e-05/1.577, allocations: 16 kB / 0.5723 GB, free: 47.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.579, allocations: 273.2 kB / 0.5725 GB, free: 47.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-05/1.579, allocations: 24 kB / 0.5726 GB, free: 47.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/1.579, allocations: 20 kB / 0.5726 GB, free: 47.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.648e-05/1.579, allocations: 35.77 kB / 0.5726 GB, free: 47.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.955e-05/1.579, allocations: 23.94 kB / 0.5726 GB, free: 47.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004121/1.583, allocations: 3.511 MB / 0.5761 GB, free: 43.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008929/1.584, allocations: 324.4 kB / 0.5764 GB, free: 42.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005816/1.585, allocations: 23.7 kB / 0.5764 GB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/1.587, allocations: 49.34 kB / 0.5764 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003236/1.587, allocations: 140 kB / 0.5766 GB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.587, allocations: 52 kB / 0.5766 GB, free: 42.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003258/1.591, allocations: 1.438 MB / 0.578 GB, free: 41.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.591, allocations: 0 / 0.578 GB, free: 41.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005888/1.597, allocations: 0.6644 MB / 0.5787 GB, free: 40.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 142 * 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.005668/1.602, allocations: 8.575 MB / 0.5871 GB, free: 31.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006409/1.609, allocations: 2.858 MB / 0.5898 GB, free: 29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.318e-05/1.609, allocations: 4.625 kB / 0.5899 GB, free: 29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/1.611, allocations: 0.7659 MB / 0.5906 GB, free: 28.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/1.613, allocations: 215.9 kB / 0.5908 GB, free: 28.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/1.636, allocations: 7.676 MB / 0.5983 GB, free: 21.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004793/1.64, allocations: 3.019 MB / 0.6013 GB, free: 18.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003392/1.644, allocations: 1.606 MB / 0.6028 GB, free: 17.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.744e-06/1.644, allocations: 0 / 0.6028 GB, free: 17.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.732/5.376, allocations: 61.96 MB / 0.6633 GB, free: 86.33 MB / 426.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