Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.118/2.118, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.858e-05/3.868e-05, allocations: 4 kB / 273.2 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4893/0.6024, allocations: 95.97 MB / 417.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.6027, allocations: 74.97 kB / 417.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8106/1.413, allocations: 118.2 MB / 0.5235 GB, free: 90.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.413, allocations: 0 / 0.5235 GB, free: 90.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000413/1.414, allocations: 114 kB / 0.5236 GB, free: 90.89 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: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.02527/1.439, allocations: 5.945 MB / 0.5294 GB, free: 88.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/1.439, allocations: 11.22 kB / 0.5295 GB, free: 88.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005596/1.445, allocations: 1.012 MB / 0.5304 GB, free: 88.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05146/1.496, allocations: 6.998 MB / 0.5373 GB, free: 88.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02785/1.524, allocations: 7.79 MB / 0.5449 GB, free: 87.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005581/1.525, allocations: 440 kB / 0.5453 GB, free: 87.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003359/1.528, allocations: 0.5792 MB / 0.5459 GB, free: 87.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04163/1.57, allocations: 13.73 MB / 0.5593 GB, free: 81.15 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004341/1.57, allocations: 91.25 kB / 0.5594 GB, free: 81.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002795/1.573, allocations: 272.2 kB / 0.5596 GB, free: 80.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00295/1.576, allocations: 1.33 MB / 0.5609 GB, free: 80.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03574/1.612, allocations: 11.29 MB / 0.5719 GB, free: 77.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09647/1.708, allocations: 62.03 MB / 0.6325 GB, free: 18.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02309/1.732, allocations: 5.687 MB / 0.6381 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006063/1.738, allocations: 3.282 MB / 0.6413 GB, free: 8.949 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009281/1.739, allocations: 0.6942 MB / 0.642 GB, free: 8.164 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/1.739, allocations: 64.5 kB / 0.642 GB, free: 8.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.301e-06/1.739, allocations: 0 / 0.642 GB, free: 8.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.461/2.2, allocations: 29.15 MB / 0.6705 GB, free: 96.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/2.2, allocations: 268.8 kB / 0.6707 GB, free: 96.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01417/2.214, allocations: 4.621 MB / 0.6753 GB, free: 95.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009541/2.215, allocations: 74.66 kB / 0.6753 GB, free: 95.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004615/2.22, allocations: 3.861 MB / 0.6791 GB, free: 93.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002497/2.222, allocations: 1.191 MB / 0.6803 GB, free: 93.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/2.224, allocations: 156.6 kB / 0.6804 GB, free: 93.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007344/2.224, allocations: 0.6314 MB / 0.681 GB, free: 92.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009516/2.234, allocations: 3.253 MB / 0.6842 GB, free: 92.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01326/2.247, allocations: 7.442 MB / 0.6915 GB, free: 87.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/2.259, allocations: 4.909 MB / 0.6963 GB, free: 87.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002263/2.259, allocations: 43.22 kB / 0.6963 GB, free: 87.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03677/2.296, allocations: 11.86 MB / 0.7079 GB, free: 83.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/2.296, allocations: 71.09 kB / 0.708 GB, free: 83.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/2.296, allocations: 145.3 kB / 0.7081 GB, free: 83.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009299/2.306, allocations: 2.14 MB / 0.7102 GB, free: 83.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01189/2.318, allocations: 1.751 MB / 0.7119 GB, free: 83.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02844/2.346, allocations: 14.32 MB / 0.7259 GB, free: 75.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0101/2.356, allocations: 458.8 kB / 0.7263 GB, free: 75.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/2.358, allocations: 455.9 kB / 0.7267 GB, free: 75.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002372/2.361, allocations: 0.674 MB / 0.7274 GB, free: 75.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001654/2.362, allocations: 499.5 kB / 0.7279 GB, free: 74.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02062/2.383, allocations: 7.024 MB / 0.7347 GB, free: 72.17 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.419e-05/2.383, allocations: 34.97 kB / 0.7348 GB, free: 72.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.6e-05/2.383, allocations: 12.88 kB / 0.7348 GB, free: 72.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.674e-05/2.383, allocations: 15.23 kB / 0.7348 GB, free: 72.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04939/2.433, allocations: 15.98 MB / 0.7504 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.081e-05/2.433, allocations: 3.844 kB / 0.7504 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005097/2.438, allocations: 0.5092 MB / 0.7509 GB, free: 66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008455/2.446, allocations: 1.862 MB / 0.7527 GB, free: 65.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008701/2.447, allocations: 72.16 kB / 0.7528 GB, free: 65.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02732/2.475, allocations: 12.82 MB / 0.7653 GB, free: 56.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/2.475, allocations: 11.94 kB / 0.7653 GB, free: 56.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02749/2.502, allocations: 12.07 MB / 0.7771 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004214/2.507, allocations: 1.058 MB / 0.7781 GB, free: 44.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/2.508, allocations: 61.41 kB / 0.7782 GB, free: 44.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005385/2.514, allocations: 215.9 kB / 0.7784 GB, free: 44.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/2.515, allocations: 208.3 kB / 0.7786 GB, free: 44.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003599/2.515, allocations: 89.06 kB / 0.7787 GB, free: 44.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008111/2.523, allocations: 3.264 MB / 0.7819 GB, free: 41.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.31e-07/2.524, allocations: 0 / 0.7819 GB, free: 41.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01049/2.534, allocations: 1.489 MB / 0.7833 GB, free: 39.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02883/2.563, allocations: 14.07 MB / 0.7971 GB, free: 27.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01821/2.581, allocations: 7.924 MB / 0.8048 GB, free: 19.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/2.581, allocations: 0 / 0.8048 GB, free: 19.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01184/2.593, allocations: 3.837 MB / 0.8086 GB, free: 16.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005741/2.599, allocations: 0.6251 MB / 0.8092 GB, free: 15.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04588/2.645, allocations: 14.8 MB / 0.8236 GB, free: 2.234 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3296/2.974, allocations: 4.515 MB / 0.828 GB, free: 103.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007928/2.982, allocations: 2.844 MB / 0.8308 GB, free: 103.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.964e-06/2.982, allocations: 1.25 kB / 0.8308 GB, free: 103.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.41/8.393, allocations: 165.8 MB / 0.9927 GB, free: 91.67 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat