Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.089/2.089, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.09e-05/5.102e-05, allocations: 4 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1215, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4715/0.5931, allocations: 95.97 MB / 417.9 MB, free: 9.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5934, allocations: 71.97 kB / 417.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8136/1.407, allocations: 118.2 MB / 0.5236 GB, free: 90.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.407, allocations: 6.375 kB / 0.5236 GB, free: 90.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004262/1.408, allocations: 119.3 kB / 0.5237 GB, free: 90.62 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.02568/1.433, allocations: 5.933 MB / 0.5295 GB, free: 88.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/1.433, allocations: 9.312 kB / 0.5295 GB, free: 88.32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00496/1.438, allocations: 1.018 MB / 0.5305 GB, free: 88.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05107/1.489, allocations: 6.998 MB / 0.5373 GB, free: 87.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0276/1.517, allocations: 7.786 MB / 0.5449 GB, free: 86.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000564/1.518, allocations: 439.7 kB / 0.5453 GB, free: 86.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003304/1.521, allocations: 0.5777 MB / 0.5459 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04202/1.563, allocations: 13.74 MB / 0.5593 GB, free: 81.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004768/1.564, allocations: 90.09 kB / 0.5594 GB, free: 81.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002999/1.567, allocations: 270.9 kB / 0.5596 GB, free: 80.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/1.57, allocations: 1.325 MB / 0.5609 GB, free: 80.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0354/1.605, allocations: 11.3 MB / 0.572 GB, free: 77.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09531/1.7, allocations: 62.03 MB / 0.6325 GB, free: 17.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02327/1.724, allocations: 5.691 MB / 0.6381 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006097/1.73, allocations: 3.282 MB / 0.6413 GB, free: 8.453 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009292/1.731, allocations: 0.6882 MB / 0.642 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/1.731, allocations: 68.5 kB / 0.642 GB, free: 7.594 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.372e-06/1.731, allocations: 0 / 0.642 GB, free: 7.594 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.4522/2.183, allocations: 29.14 MB / 0.6705 GB, free: 95.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/2.183, allocations: 273.8 kB / 0.6708 GB, free: 95.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0147/2.198, allocations: 4.619 MB / 0.6753 GB, free: 94.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009459/2.199, allocations: 74.66 kB / 0.6753 GB, free: 94.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005013/2.204, allocations: 4.037 MB / 0.6793 GB, free: 93.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002388/2.206, allocations: 1.192 MB / 0.6805 GB, free: 92.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/2.208, allocations: 152.6 kB / 0.6806 GB, free: 92.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000662/2.208, allocations: 0.6315 MB / 0.6812 GB, free: 92.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009509/2.218, allocations: 3.254 MB / 0.6844 GB, free: 92.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01285/2.231, allocations: 7.443 MB / 0.6917 GB, free: 86.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/2.242, allocations: 4.911 MB / 0.6965 GB, free: 86.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002365/2.243, allocations: 42.94 kB / 0.6965 GB, free: 86.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03757/2.28, allocations: 12.05 MB / 0.7083 GB, free: 83.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/2.28, allocations: 72.23 kB / 0.7083 GB, free: 83.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002457/2.281, allocations: 150.6 kB / 0.7085 GB, free: 83.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009583/2.29, allocations: 2.131 MB / 0.7106 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01188/2.302, allocations: 1.756 MB / 0.7123 GB, free: 82.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02817/2.33, allocations: 14.32 MB / 0.7263 GB, free: 75.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01007/2.34, allocations: 459.1 kB / 0.7267 GB, free: 75.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002017/2.342, allocations: 458.9 kB / 0.7271 GB, free: 74.97 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.00287/2.345, allocations: 0.673 MB / 0.7278 GB, free: 74.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/2.347, allocations: 0.4886 MB / 0.7283 GB, free: 74.15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0218/2.369, allocations: 7.025 MB / 0.7351 GB, free: 71.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.416e-05/2.369, allocations: 38.88 kB / 0.7352 GB, free: 71.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-05/2.369, allocations: 11.5 kB / 0.7352 GB, free: 71.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-05/2.369, allocations: 16.03 kB / 0.7352 GB, free: 71.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04799/2.417, allocations: 15.97 MB / 0.7508 GB, free: 65.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.315e-05/2.417, allocations: 7.625 kB / 0.7508 GB, free: 65.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005092/2.423, allocations: 0.507 MB / 0.7513 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008583/2.431, allocations: 1.865 MB / 0.7531 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.432, allocations: 70.42 kB / 0.7532 GB, free: 64.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02783/2.46, allocations: 12.83 MB / 0.7657 GB, free: 55.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/2.46, allocations: 8 kB / 0.7657 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/2.489, allocations: 12.06 MB / 0.7775 GB, free: 44.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004432/2.493, allocations: 1.061 MB / 0.7785 GB, free: 43.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002328/2.496, allocations: 63.88 kB / 0.7786 GB, free: 43.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005869/2.501, allocations: 215.8 kB / 0.7788 GB, free: 43.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/2.503, allocations: 208.9 kB / 0.779 GB, free: 43.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000462/2.503, allocations: 87.98 kB / 0.7791 GB, free: 43.28 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009052/2.512, allocations: 3.262 MB / 0.7823 GB, free: 40.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.342e-06/2.513, allocations: 0 / 0.7823 GB, free: 40.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01118/2.524, allocations: 1.494 MB / 0.7837 GB, free: 38.92 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.03026/2.554, allocations: 14.06 MB / 0.7975 GB, free: 26.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01889/2.573, allocations: 7.927 MB / 0.8052 GB, free: 18.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/2.573, allocations: 0 / 0.8052 GB, free: 18.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01278/2.586, allocations: 3.839 MB / 0.8089 GB, free: 15.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006475/2.592, allocations: 0.6301 MB / 0.8096 GB, free: 14.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04849/2.641, allocations: 14.13 MB / 0.8234 GB, free: 1.945 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3327/2.974, allocations: 4.513 MB / 0.8278 GB, free: 103 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01379/2.988, allocations: 2.492 MB / 0.8302 GB, free: 102.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007586/2.995, allocations: 2.79 MB / 0.8329 GB, free: 102.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.724e-06/2.995, allocations: 0 / 0.8329 GB, free: 102.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3606/3.356, allocations: 118.4 MB / 0.9486 GB, free: 39.85 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/3.356, allocations: 168.8 kB / 0.9487 GB, free: 39.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.108/10.46, allocations: 3.938 kB / 0.9487 GB, free: 39.62 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat