Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUPS",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.033/2.033, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.587e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5202, allocations: 85.07 MB / 401.4 MB, free: 7.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5205, allocations: 78.58 kB / 401.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1457/0.6662, allocations: 33.85 MB / 435.3 MB, free: 9.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6663, allocations: 0 / 435.3 MB, free: 9.336 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001227/0.6664, allocations: 40 kB / 435.3 MB, free: 9.297 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 694 * Number of variables: 694 Notification: Performance of Generate backend data structure: time 0.009277/0.6757, allocations: 2.186 MB / 437.5 MB, free: 7.059 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.6758, allocations: 12.03 kB / 437.5 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/0.6793, allocations: 380.7 kB / 437.9 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004311/0.6836, allocations: 1.133 MB / 439 MB, free: 5.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.6838, allocations: 64 kB / 439.1 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009156/0.6848, allocations: 116 kB / 439.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007282/0.6921, allocations: 2.746 MB / 442 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/0.7023, allocations: 3.769 MB / 445.7 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.994e-05/0.7025, allocations: 15.88 kB / 445.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.7028, allocations: 4 kB / 445.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001697/0.7045, allocations: 0.5189 MB / 446.3 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03395/0.7385, allocations: 15.51 MB / 461.8 MB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002052/0.7406, allocations: 0.8371 MB / 462.6 MB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.742, allocations: 0.6598 MB / 463.3 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007708/0.7497, allocations: 3.497 MB / 466.8 MB, free: 8.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.7498, allocations: 38.56 kB / 466.8 MB, free: 8.812 MB / 394.7 MB Notification: Performance of pre-optimization done (n=28): time 3.306e-06/0.7498, allocations: 0 / 466.8 MB, free: 8.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.006082/0.7559, allocations: 1.057 MB / 467.9 MB, free: 7.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/0.756, allocations: 114.9 kB / 468 MB, free: 7.609 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.7589, allocations: 1.266 MB / 469.3 MB, free: 6.332 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.655e-05/0.759, allocations: 25.7 kB / 469.3 MB, free: 6.301 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.7604, allocations: 1.501 MB / 470.8 MB, free: 4.777 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.7607, allocations: 134.6 kB / 470.9 MB, free: 4.645 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.7608, allocations: 0 / 470.9 MB, free: 4.645 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002632/0.7611, allocations: 419.6 kB / 471.3 MB, free: 4.227 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.7623, allocations: 468.7 kB / 471.8 MB, free: 3.766 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/0.7649, allocations: 2.061 MB / 473.8 MB, free: 0.8789 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.7672, allocations: 0.9478 MB / 474.8 MB, free: 15.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.269e-05/0.7673, allocations: 16 kB / 474.8 MB, free: 15.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=307) (initialization): time 0.006148/0.7735, allocations: 2.1 MB / 476.9 MB, free: 13.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.679e-05/0.7736, allocations: 32 kB / 476.9 MB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-05/0.7737, allocations: 56 kB / 477 MB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001321/0.7738, allocations: 87.98 kB / 477.1 MB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/0.7772, allocations: 0.5659 MB / 477.6 MB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001193/0.7774, allocations: 115.6 kB / 477.8 MB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002654/0.78, allocations: 288.4 kB / 478 MB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004062/0.7805, allocations: 156 kB / 478.2 MB, free: 12.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 265 * Number of states: 0 () * Number of discrete variables: 30 (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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[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 (307): * Single equations (assignments): 307 * 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.0004348/0.7809, allocations: 258.6 kB / 478.4 MB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009183/0.7818, allocations: 379.8 kB / 478.8 MB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.7821, allocations: 118.5 kB / 478.9 MB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004087/0.7825, allocations: 135.5 kB / 479.1 MB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.7825, allocations: 4 kB / 479.1 MB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.7826, allocations: 0 / 479.1 MB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.7826, allocations: 7.953 kB / 479.1 MB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006015/0.7886, allocations: 2.509 MB / 481.6 MB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/0.7887, allocations: 12 kB / 481.6 MB, free: 8.922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.7892, allocations: 75.84 kB / 481.7 MB, free: 8.848 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.06e-05/0.7892, allocations: 12 kB / 481.7 MB, free: 8.836 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.7893, allocations: 15.94 kB / 481.7 MB, free: 8.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.906e-05/0.7893, allocations: 15.94 kB / 481.7 MB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/0.7893, allocations: 8 kB / 481.7 MB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.7909, allocations: 1.203 MB / 482.9 MB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.7914, allocations: 207.4 kB / 483.1 MB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002361/0.7916, allocations: 15.98 kB / 483.1 MB, free: 6.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007299/0.7924, allocations: 15.98 kB / 483.2 MB, free: 6.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.7925, allocations: 47.81 kB / 483.2 MB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.7925, allocations: 20 kB / 483.2 MB, free: 6.863 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001828/0.7944, allocations: 0.8353 MB / 484.1 MB, free: 6.027 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.7944, allocations: 0 / 484.1 MB, free: 6.027 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002997/0.7974, allocations: 449.7 kB / 484.5 MB, free: 5.586 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 37 * 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.002863/0.8003, allocations: 4.142 MB / 488.6 MB, free: 1.168 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.8033, allocations: 1.122 MB / 489.8 MB, free: 60 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.539e-05/0.8034, allocations: 4 kB / 489.8 MB, free: 56 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004481/0.8038, allocations: 171 kB / 489.9 MB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.8049, allocations: 121.3 kB / 490 MB, free: 15.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.8164, allocations: 3.344 MB / 493.4 MB, free: 12.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00314/0.8196, allocations: 1.728 MB / 495.1 MB, free: 10.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.8214, allocations: 0.7609 MB / 495.9 MB, free: 9.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/0.8214, allocations: 0 / 495.9 MB, free: 9.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.512/4.334, allocations: 28.66 MB / 0.5123 GB, free: 122 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUPS_res.mat does not exist to compare? outputFormat=mat