Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.554/2.554, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.334e-05/4.34e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4572/0.4573, allocations: 54.86 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.6429, allocations: 100.1 MB / 459.9 MB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.6433, allocations: 75.95 kB / 460 MB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3108/0.9541, allocations: 74.49 MB / 0.522 GB, free: 1.691 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.9542, allocations: 4 kB / 0.522 GB, free: 1.688 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002207/0.9544, allocations: 72 kB / 0.522 GB, free: 1.617 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.3498/1.304, allocations: 3.573 MB / 0.5255 GB, free: 108.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/1.304, allocations: 11.55 kB / 0.5255 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003235/1.308, allocations: 0.6562 MB / 0.5262 GB, free: 108 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006391/1.314, allocations: 0.6648 MB / 0.5268 GB, free: 107.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008591/1.323, allocations: 2.184 MB / 0.529 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004931/1.323, allocations: 297.2 kB / 0.5292 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002014/1.325, allocations: 385.8 kB / 0.5296 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03231/1.358, allocations: 8.415 MB / 0.5378 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/1.358, allocations: 21.09 kB / 0.5379 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001167/1.359, allocations: 177.5 kB / 0.538 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/1.362, allocations: 0.7806 MB / 0.5388 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03334/1.396, allocations: 6.543 MB / 0.5452 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06739/1.463, allocations: 27.72 MB / 0.5722 GB, free: 90 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/1.475, allocations: 1.899 MB / 0.5741 GB, free: 89.46 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/1.476, allocations: 0.8192 MB / 0.5749 GB, free: 89.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/1.489, allocations: 6.349 MB / 0.5811 GB, free: 84.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/1.489, allocations: 49.44 kB / 0.5811 GB, free: 84.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 6.132e-06/1.489, allocations: 0 / 0.5811 GB, free: 84.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=95): time 0.06911/1.558, allocations: 5.819 MB / 0.5868 GB, free: 81.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/1.558, allocations: 136.7 kB / 0.587 GB, free: 81.79 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/1.569, allocations: 2.178 MB / 0.5891 GB, free: 80.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002574/1.57, allocations: 44.33 kB / 0.5891 GB, free: 80.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002512/1.572, allocations: 2.381 MB / 0.5915 GB, free: 78.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006829/1.573, allocations: 378.2 kB / 0.5918 GB, free: 78.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004731/1.573, allocations: 76.19 kB / 0.5919 GB, free: 78.67 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003525/1.574, allocations: 467 kB / 0.5923 GB, free: 78.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003296/1.577, allocations: 0.9086 MB / 0.5932 GB, free: 77.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003529/1.581, allocations: 3.176 MB / 0.5963 GB, free: 74.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003635/1.584, allocations: 1.668 MB / 0.5979 GB, free: 73.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.193e-05/1.585, allocations: 25.66 kB / 0.598 GB, free: 73.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009641/1.594, allocations: 3.698 MB / 0.6016 GB, free: 72.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.056e-05/1.594, allocations: 42.22 kB / 0.6016 GB, free: 72.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.04e-05/1.594, allocations: 81.19 kB / 0.6017 GB, free: 72.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/1.595, allocations: 121.2 kB / 0.6018 GB, free: 72.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/1.6, allocations: 0.8961 MB / 0.6027 GB, free: 72.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001433/1.6, allocations: 163 kB / 0.6028 GB, free: 72.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/1.603, allocations: 172.2 kB / 0.603 GB, free: 72.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004137/1.604, allocations: 223 kB / 0.6032 GB, free: 72.41 MB / 458.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.0005695/1.604, allocations: 411.9 kB / 0.6036 GB, free: 72.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/1.605, allocations: 221.8 kB / 0.6038 GB, free: 71.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/1.607, allocations: 1.1 MB / 0.6049 GB, free: 71.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/1.607, allocations: 12 kB / 0.6049 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/1.607, allocations: 3.953 kB / 0.6049 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/1.607, allocations: 11.36 kB / 0.6049 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/1.621, allocations: 6.083 MB / 0.6109 GB, free: 65.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/1.621, allocations: 23.56 kB / 0.6109 GB, free: 65.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/1.622, allocations: 242.4 kB / 0.6111 GB, free: 65.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.64e-05/1.622, allocations: 28 kB / 0.6112 GB, free: 65.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.561e-05/1.622, allocations: 51.36 kB / 0.6112 GB, free: 65.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.881e-05/1.622, allocations: 43.12 kB / 0.6112 GB, free: 65.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.179e-05/1.622, allocations: 31.88 kB / 0.6113 GB, free: 65.58 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003085/1.625, allocations: 3.744 MB / 0.6149 GB, free: 61.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007132/1.626, allocations: 335.7 kB / 0.6152 GB, free: 60.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/1.627, allocations: 51.17 kB / 0.6153 GB, free: 60.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/1.628, allocations: 47.56 kB / 0.6153 GB, free: 60.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/1.628, allocations: 143.5 kB / 0.6155 GB, free: 60.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.856e-05/1.629, allocations: 59.56 kB / 0.6155 GB, free: 60.67 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003646/1.632, allocations: 1.577 MB / 0.6171 GB, free: 59.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.632, allocations: 0 / 0.6171 GB, free: 59.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004835/1.637, allocations: 0.6504 MB / 0.6177 GB, free: 58.61 MB / 458.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.004565/1.642, allocations: 9.602 MB / 0.6271 GB, free: 48.51 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004742/1.647, allocations: 2.129 MB / 0.6292 GB, free: 46.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.951e-05/1.647, allocations: 1.75 kB / 0.6292 GB, free: 46.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/1.648, allocations: 0.5385 MB / 0.6297 GB, free: 46.06 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/1.65, allocations: 301.3 kB / 0.63 GB, free: 45.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/1.669, allocations: 7.014 MB / 0.6368 GB, free: 39.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004586/1.674, allocations: 2.804 MB / 0.6396 GB, free: 37.21 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002603/1.677, allocations: 1.494 MB / 0.641 GB, free: 35.82 MB / 458.7 MB Notification: Performance of SimCode: time 1.674e-06/1.677, allocations: 0 / 0.641 GB, free: 35.82 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.798/5.475, allocations: 56.22 MB / 0.6959 GB, free: 14.35 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat