Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.261e-05/4.272e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5375, allocations: 94.36 MB / 416.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5378, allocations: 74.78 kB / 416.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.316/0.8539, allocations: 75.72 MB / 492 MB, free: 15.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8539, allocations: 0 / 492 MB, free: 15.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002108/0.8542, allocations: 79.98 kB / 492.1 MB, free: 15.04 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01624/0.8704, allocations: 3.796 MB / 495.9 MB, free: 11.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.8705, allocations: 8.031 kB / 495.9 MB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002784/0.8733, allocations: 0.6595 MB / 496.6 MB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006216/0.8795, allocations: 0.6815 MB / 497.2 MB, free: 9.816 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008839/0.8884, allocations: 2.204 MB / 499.4 MB, free: 7.562 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004482/0.889, allocations: 291.7 kB / 499.7 MB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002019/0.891, allocations: 387.8 kB / 0.4884 GB, free: 6.898 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3037/1.195, allocations: 8.774 MB / 0.497 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/1.195, allocations: 15.91 kB / 0.497 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/1.196, allocations: 169.2 kB / 0.4971 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002963/1.199, allocations: 0.8463 MB / 0.498 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02679/1.226, allocations: 7.062 MB / 0.5049 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05907/1.285, allocations: 29.03 MB / 0.5332 GB, free: 87.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/1.298, allocations: 2.247 MB / 0.5354 GB, free: 87.26 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/1.3, allocations: 1.053 MB / 0.5364 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/1.314, allocations: 7.597 MB / 0.5438 GB, free: 81.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/1.315, allocations: 48.97 kB / 0.5439 GB, free: 81.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 5.61e-06/1.315, allocations: 112 / 0.5439 GB, free: 81.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.03066/1.345, allocations: 6.475 MB / 0.5502 GB, free: 79.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/1.345, allocations: 143.6 kB / 0.5503 GB, free: 78.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004572/1.35, allocations: 2.311 MB / 0.5526 GB, free: 78.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002389/1.35, allocations: 44.83 kB / 0.5526 GB, free: 78.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/1.352, allocations: 2.386 MB / 0.555 GB, free: 76.17 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005484/1.353, allocations: 397.6 kB / 0.5554 GB, free: 75.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/1.353, allocations: 74.84 kB / 0.5554 GB, free: 75.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002393/1.353, allocations: 475.9 kB / 0.5559 GB, free: 75.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/1.356, allocations: 1.038 MB / 0.5569 GB, free: 75.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00376/1.36, allocations: 3.401 MB / 0.5602 GB, free: 71.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/1.364, allocations: 1.837 MB / 0.562 GB, free: 70.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.398e-05/1.364, allocations: 22.66 kB / 0.562 GB, free: 70.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01068/1.374, allocations: 4.038 MB / 0.566 GB, free: 69.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/1.375, allocations: 40.69 kB / 0.566 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.375, allocations: 86.62 kB / 0.5661 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/1.375, allocations: 123.3 kB / 0.5662 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005656/1.38, allocations: 0.9402 MB / 0.5671 GB, free: 69.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001676/1.381, allocations: 179.9 kB / 0.5673 GB, free: 69.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004046/1.385, allocations: 193 kB / 0.5675 GB, free: 69.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00069/1.386, allocations: 236.7 kB / 0.5677 GB, free: 69.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,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],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],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 (497): * Single equations (assignments): 497 * 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 prepare postOptimizeDAE: time 0.0007151/1.386, allocations: 423.7 kB / 0.5681 GB, free: 68.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/1.387, allocations: 224.7 kB / 0.5683 GB, free: 68.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/1.39, allocations: 1.361 MB / 0.5697 GB, free: 68.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/1.39, allocations: 10.56 kB / 0.5697 GB, free: 68.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/1.39, allocations: 3.906 kB / 0.5697 GB, free: 68.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/1.39, allocations: 7.75 kB / 0.5697 GB, free: 68.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/1.404, allocations: 6.098 MB / 0.5756 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.067e-05/1.404, allocations: 18.34 kB / 0.5757 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/1.405, allocations: 244.5 kB / 0.5759 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.828e-05/1.405, allocations: 32.02 kB / 0.5759 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/1.406, allocations: 40 kB / 0.576 GB, free: 65.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-05/1.406, allocations: 35.05 kB / 0.576 GB, free: 65.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.387e-05/1.406, allocations: 35.77 kB / 0.576 GB, free: 65.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/1.409, allocations: 3.548 MB / 0.5795 GB, free: 61.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008527/1.41, allocations: 328.6 kB / 0.5798 GB, free: 61.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004985/1.411, allocations: 50.05 kB / 0.5799 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/1.412, allocations: 57.78 kB / 0.5799 GB, free: 61.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/1.412, allocations: 135.2 kB / 0.58 GB, free: 61.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.413, allocations: 59.75 kB / 0.5801 GB, free: 61.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003614/1.416, allocations: 1.633 MB / 0.5817 GB, free: 60.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.363e-06/1.416, allocations: 0 / 0.5817 GB, free: 60.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004895/1.421, allocations: 0.6767 MB / 0.5823 GB, free: 60.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 130 * 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.004865/1.426, allocations: 8.658 MB / 0.5908 GB, free: 52.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005508/1.432, allocations: 2.358 MB / 0.5931 GB, free: 50.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.926e-05/1.432, allocations: 4 kB / 0.5931 GB, free: 50.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/1.433, allocations: 0.5751 MB / 0.5937 GB, free: 49.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/1.435, allocations: 303.2 kB / 0.594 GB, free: 49.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/1.455, allocations: 6.978 MB / 0.6008 GB, free: 43.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004913/1.46, allocations: 2.807 MB / 0.6035 GB, free: 41.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003134/1.463, allocations: 1.483 MB / 0.605 GB, free: 39.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.583e-06/1.464, allocations: 4 kB / 0.605 GB, free: 39.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.87/5.333, allocations: 57.88 MB / 0.6615 GB, free: 2.141 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat