Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.999/1.999, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.111e-05/5.117e-05, allocations: 11.98 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5538, allocations: 93.56 MB / 415.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5542, allocations: 75 kB / 415.5 MB, free: 12.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.308/0.8622, allocations: 74.51 MB / 490 MB, free: 1.246 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.594e-06/0.8622, allocations: 0 / 490 MB, free: 1.246 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.8625, allocations: 79.94 kB / 490.1 MB, free: 1.168 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.01481/0.8773, allocations: 3.577 MB / 493.6 MB, free: 13.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.8774, allocations: 8.031 kB / 493.6 MB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003034/0.8804, allocations: 0.6591 MB / 494.3 MB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006136/0.8866, allocations: 0.6738 MB / 495 MB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008244/0.8949, allocations: 2.177 MB / 497.2 MB, free: 9.949 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004449/0.8954, allocations: 303.8 kB / 497.5 MB, free: 9.652 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.8974, allocations: 387.8 kB / 497.8 MB, free: 9.273 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03196/0.9294, allocations: 8.408 MB / 0.4944 GB, free: 492 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001556/0.9296, allocations: 15.88 kB / 0.4944 GB, free: 476 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001506/0.9311, allocations: 171.9 kB / 0.4946 GB, free: 304 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2777/1.209, allocations: 0.7886 MB / 0.4953 GB, free: 105.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02624/1.235, allocations: 6.538 MB / 0.5017 GB, free: 105.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06109/1.296, allocations: 27.73 MB / 0.5288 GB, free: 93.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/1.307, allocations: 1.902 MB / 0.5307 GB, free: 93.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001901/1.309, allocations: 0.815 MB / 0.5314 GB, free: 92.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01224/1.321, allocations: 6.341 MB / 0.5376 GB, free: 88.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/1.321, allocations: 52.56 kB / 0.5377 GB, free: 88.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.268e-06/1.321, allocations: 0 / 0.5377 GB, free: 88.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=95): time 0.02773/1.349, allocations: 5.82 MB / 0.5434 GB, free: 85.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/1.349, allocations: 140.5 kB / 0.5435 GB, free: 85.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004786/1.354, allocations: 2.172 MB / 0.5456 GB, free: 84.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/1.354, allocations: 41.08 kB / 0.5457 GB, free: 84.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001787/1.356, allocations: 2.373 MB / 0.548 GB, free: 83.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00049/1.357, allocations: 391.9 kB / 0.5484 GB, free: 82.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003008/1.357, allocations: 77.84 kB / 0.5484 GB, free: 82.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002351/1.357, allocations: 464.6 kB / 0.5489 GB, free: 82.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/1.359, allocations: 0.9059 MB / 0.5498 GB, free: 82.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003676/1.363, allocations: 3.18 MB / 0.5529 GB, free: 78.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003843/1.367, allocations: 1.672 MB / 0.5545 GB, free: 78.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.396e-05/1.367, allocations: 24.72 kB / 0.5545 GB, free: 78.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.01007/1.377, allocations: 3.697 MB / 0.5581 GB, free: 76.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.785e-05/1.377, allocations: 38.66 kB / 0.5582 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.377, allocations: 83.03 kB / 0.5582 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001602/1.378, allocations: 125.7 kB / 0.5584 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005482/1.383, allocations: 0.8942 MB / 0.5592 GB, free: 76.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001675/1.383, allocations: 157.9 kB / 0.5594 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003832/1.387, allocations: 169.4 kB / 0.5596 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007728/1.388, allocations: 236.4 kB / 0.5598 GB, free: 76.62 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: 37 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (480): * Single equations (assignments): 480 * 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.0007324/1.389, allocations: 406.9 kB / 0.5602 GB, free: 76.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005294/1.389, allocations: 216.9 kB / 0.5604 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002644/1.392, allocations: 1.101 MB / 0.5615 GB, free: 75.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/1.392, allocations: 17.62 kB / 0.5615 GB, free: 75.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/1.392, allocations: 7.219 kB / 0.5615 GB, free: 75.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/1.392, allocations: 3.234 kB / 0.5615 GB, free: 75.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/1.407, allocations: 6.076 MB / 0.5674 GB, free: 72.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-05/1.407, allocations: 18.03 kB / 0.5674 GB, free: 72.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/1.408, allocations: 242.7 kB / 0.5677 GB, free: 72.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-05/1.408, allocations: 32.09 kB / 0.5677 GB, free: 72.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.994e-05/1.408, allocations: 57.38 kB / 0.5677 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-05/1.408, allocations: 37.61 kB / 0.5678 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.317e-05/1.409, allocations: 34.36 kB / 0.5678 GB, free: 72.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003518/1.412, allocations: 3.739 MB / 0.5715 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007751/1.413, allocations: 324.3 kB / 0.5718 GB, free: 68.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003942/1.413, allocations: 56.42 kB / 0.5718 GB, free: 68.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/1.415, allocations: 44.91 kB / 0.5719 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/1.415, allocations: 148.4 kB / 0.572 GB, free: 68.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.894e-05/1.415, allocations: 63.03 kB / 0.5721 GB, free: 68.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003564/1.419, allocations: 1.574 MB / 0.5736 GB, free: 68.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.91e-07/1.419, allocations: 0 / 0.5736 GB, free: 68.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005301/1.424, allocations: 0.6532 MB / 0.5742 GB, free: 67.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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.005188/1.429, allocations: 9.602 MB / 0.5836 GB, free: 58.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005165/1.435, allocations: 2.135 MB / 0.5857 GB, free: 57.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.182e-05/1.435, allocations: 4 kB / 0.5857 GB, free: 57.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/1.436, allocations: 0.5339 MB / 0.5862 GB, free: 57.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/1.438, allocations: 309.6 kB / 0.5865 GB, free: 56.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02117/1.459, allocations: 7 MB / 0.5934 GB, free: 50.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005668/1.465, allocations: 2.809 MB / 0.5961 GB, free: 48.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003211/1.468, allocations: 1.483 MB / 0.5976 GB, free: 47 MB / 426.7 MB Notification: Performance of SimCode: time 1.694e-06/1.468, allocations: 0 / 0.5976 GB, free: 47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.486/4.954, allocations: 56.22 MB / 0.6525 GB, free: 11.87 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat