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.033/2.033, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.931e-05/4.95e-05, allocations: 0 / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4508/0.5629, allocations: 95.96 MB / 417.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.5633, allocations: 79.02 kB / 417.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.809/1.372, allocations: 118.2 MB / 0.5235 GB, free: 90.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.372, allocations: 3.688 kB / 0.5235 GB, free: 90.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004082/1.373, allocations: 118.9 kB / 0.5236 GB, free: 90.69 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.02451/1.397, allocations: 5.941 MB / 0.5294 GB, free: 88.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.397, allocations: 7.781 kB / 0.5294 GB, free: 88.39 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004611/1.402, allocations: 1.013 MB / 0.5304 GB, free: 88.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04962/1.452, allocations: 6.996 MB / 0.5372 GB, free: 87.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.479, allocations: 7.79 MB / 0.5449 GB, free: 87.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000559/1.479, allocations: 437.6 kB / 0.5453 GB, free: 87.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00327/1.483, allocations: 0.5773 MB / 0.5458 GB, free: 87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04045/1.523, allocations: 13.81 MB / 0.5593 GB, free: 81.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004357/1.524, allocations: 84.31 kB / 0.5594 GB, free: 81.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002848/1.526, allocations: 275.7 kB / 0.5597 GB, free: 80.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002837/1.529, allocations: 1.327 MB / 0.561 GB, free: 80.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0342/1.564, allocations: 11.51 MB / 0.5722 GB, free: 76.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09284/1.656, allocations: 62.03 MB / 0.6328 GB, free: 17.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02281/1.679, allocations: 5.714 MB / 0.6384 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005973/1.685, allocations: 3.282 MB / 0.6416 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000934/1.686, allocations: 0.6905 MB / 0.6422 GB, free: 7.629 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/1.686, allocations: 64.5 kB / 0.6423 GB, free: 7.559 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 5.951e-06/1.686, allocations: 0 / 0.6423 GB, free: 7.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.444/2.13, allocations: 29.16 MB / 0.6708 GB, free: 95.65 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/2.131, allocations: 267.1 kB / 0.671 GB, free: 95.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01541/2.146, allocations: 4.62 MB / 0.6755 GB, free: 94.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009555/2.147, allocations: 72.27 kB / 0.6756 GB, free: 94.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004406/2.152, allocations: 3.872 MB / 0.6794 GB, free: 93.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002476/2.154, allocations: 1.185 MB / 0.6805 GB, free: 92.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/2.155, allocations: 157.3 kB / 0.6807 GB, free: 92.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008162/2.156, allocations: 0.633 MB / 0.6813 GB, free: 92.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009523/2.166, allocations: 3.258 MB / 0.6845 GB, free: 92.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01302/2.179, allocations: 7.485 MB / 0.6918 GB, free: 86.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/2.19, allocations: 4.91 MB / 0.6966 GB, free: 86.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002237/2.191, allocations: 42.5 kB / 0.6966 GB, free: 86.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03561/2.226, allocations: 12.26 MB / 0.7086 GB, free: 83.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/2.226, allocations: 71.19 kB / 0.7087 GB, free: 83.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002019/2.227, allocations: 147.6 kB / 0.7088 GB, free: 83.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009012/2.236, allocations: 2.136 MB / 0.7109 GB, free: 82.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/2.247, allocations: 1.756 MB / 0.7126 GB, free: 82.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02725/2.275, allocations: 14.32 MB / 0.7266 GB, free: 75.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009644/2.284, allocations: 453.1 kB / 0.727 GB, free: 74.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001886/2.286, allocations: 452.9 kB / 0.7275 GB, free: 74.82 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.00207/2.288, allocations: 0.6747 MB / 0.7281 GB, free: 74.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/2.29, allocations: 0.4907 MB / 0.7286 GB, free: 73.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02044/2.31, allocations: 7.021 MB / 0.7355 GB, free: 71.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-05/2.31, allocations: 39.92 kB / 0.7355 GB, free: 71.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/2.311, allocations: 10.28 kB / 0.7355 GB, free: 71.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.016e-05/2.311, allocations: 14.34 kB / 0.7355 GB, free: 71.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04387/2.354, allocations: 15.99 MB / 0.7511 GB, free: 65.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.993e-05/2.355, allocations: 6.812 kB / 0.7511 GB, free: 65.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005039/2.36, allocations: 0.5103 MB / 0.7516 GB, free: 65.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00833/2.368, allocations: 1.868 MB / 0.7535 GB, free: 64.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008099/2.369, allocations: 65.2 kB / 0.7535 GB, free: 64.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02787/2.397, allocations: 12.82 MB / 0.766 GB, free: 55.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/2.397, allocations: 15.94 kB / 0.7661 GB, free: 55.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02939/2.426, allocations: 12.07 MB / 0.7778 GB, free: 44.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00447/2.431, allocations: 1.052 MB / 0.7789 GB, free: 43.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/2.433, allocations: 62.3 kB / 0.7789 GB, free: 43.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005754/2.439, allocations: 215.7 kB / 0.7791 GB, free: 43.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/2.44, allocations: 210.5 kB / 0.7793 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003646/2.441, allocations: 94.27 kB / 0.7794 GB, free: 43.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008546/2.449, allocations: 3.263 MB / 0.7826 GB, free: 40.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.372e-06/2.449, allocations: 0 / 0.7826 GB, free: 40.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01005/2.459, allocations: 1.494 MB / 0.7841 GB, free: 38.8 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.0306/2.49, allocations: 14.06 MB / 0.7978 GB, free: 25.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01847/2.509, allocations: 8.178 MB / 0.8058 GB, free: 18.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/2.509, allocations: 0 / 0.8058 GB, free: 18.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0132/2.522, allocations: 3.871 MB / 0.8096 GB, free: 15.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005437/2.527, allocations: 0.6257 MB / 0.8102 GB, free: 14.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04178/2.569, allocations: 14.83 MB / 0.8247 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3298/2.899, allocations: 4.52 MB / 0.8291 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008166/2.907, allocations: 2.84 MB / 0.8319 GB, free: 102.8 MB / 458.7 MB Notification: Performance of SimCode: time 2.896e-06/2.907, allocations: 3.969 kB / 0.8319 GB, free: 102.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.502/8.409, allocations: 167 MB / 0.995 GB, free: 93.48 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