Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.422/2.422, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.97e-05/4.992e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4223/0.4224, allocations: 54.85 MB / 359.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.703, allocations: 102.8 MB / 462.7 MB, free: 10.08 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004184/0.7035, allocations: 75.97 kB / 462.7 MB, free: 10.01 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8364/1.54, allocations: 118.4 MB / 0.5675 GB, free: 102.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.54, allocations: 0 / 0.5675 GB, free: 102.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004196/1.54, allocations: 115.5 kB / 0.5677 GB, free: 102.6 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02628/1.567, allocations: 5.947 MB / 0.5735 GB, free: 99.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/1.567, allocations: 10.31 kB / 0.5735 GB, free: 99.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004813/1.572, allocations: 1.013 MB / 0.5745 GB, free: 99.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06561/1.637, allocations: 7.003 MB / 0.5813 GB, free: 98.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03741/1.675, allocations: 7.797 MB / 0.5889 GB, free: 95.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008063/1.676, allocations: 442.9 kB / 0.5893 GB, free: 95.08 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004379/1.68, allocations: 0.5781 MB / 0.5899 GB, free: 94.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0575/1.738, allocations: 13.82 MB / 0.6034 GB, free: 83.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005789/1.738, allocations: 83.23 kB / 0.6035 GB, free: 83.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003485/1.742, allocations: 280.1 kB / 0.6038 GB, free: 83.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004358/1.746, allocations: 1.316 MB / 0.605 GB, free: 82.08 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0378/1.784, allocations: 11.52 MB / 0.6163 GB, free: 70.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09449/1.879, allocations: 62.07 MB / 0.6769 GB, free: 6.934 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/1.902, allocations: 5.727 MB / 0.6825 GB, free: 1.066 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007448/1.91, allocations: 3.279 MB / 0.6857 GB, free: 13.78 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001246/1.911, allocations: 0.6909 MB / 0.6864 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.33e-05/1.911, allocations: 72.48 kB / 0.6864 GB, free: 12.91 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 6.843e-06/1.911, allocations: 0 / 0.6864 GB, free: 12.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.4861/2.397, allocations: 29.15 MB / 0.7149 GB, free: 105.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/2.397, allocations: 267.5 kB / 0.7152 GB, free: 105.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01384/2.411, allocations: 4.623 MB / 0.7197 GB, free: 105.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009128/2.412, allocations: 76.45 kB / 0.7198 GB, free: 105.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00431/2.417, allocations: 4.043 MB / 0.7237 GB, free: 103 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002088/2.419, allocations: 1.195 MB / 0.7249 GB, free: 102.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001071/2.42, allocations: 154.8 kB / 0.725 GB, free: 102 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005572/2.42, allocations: 0.6319 MB / 0.7256 GB, free: 101.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008157/2.429, allocations: 3.249 MB / 0.7288 GB, free: 100.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/2.441, allocations: 7.482 MB / 0.7361 GB, free: 93.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/2.452, allocations: 4.917 MB / 0.7409 GB, free: 92.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001517/2.452, allocations: 39.5 kB / 0.741 GB, free: 92.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03695/2.489, allocations: 12.46 MB / 0.7531 GB, free: 87.83 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/2.49, allocations: 71.62 kB / 0.7532 GB, free: 87.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002291/2.49, allocations: 147.8 kB / 0.7533 GB, free: 87.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009178/2.499, allocations: 2.13 MB / 0.7554 GB, free: 87.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01176/2.511, allocations: 1.764 MB / 0.7571 GB, free: 87.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02838/2.539, allocations: 14.32 MB / 0.7711 GB, free: 79.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009864/2.549, allocations: 452 kB / 0.7715 GB, free: 79.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/2.551, allocations: 454.2 kB / 0.772 GB, free: 79.46 MB / 474.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.002514/2.554, allocations: 0.6731 MB / 0.7726 GB, free: 78.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/2.555, allocations: 0.4955 MB / 0.7731 GB, free: 78.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02053/2.576, allocations: 7.016 MB / 0.78 GB, free: 75.99 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.966e-05/2.576, allocations: 34.92 kB / 0.78 GB, free: 75.99 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-05/2.576, allocations: 9 kB / 0.78 GB, free: 75.99 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.758e-05/2.576, allocations: 18.41 kB / 0.78 GB, free: 75.99 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04602/2.622, allocations: 16.01 MB / 0.7957 GB, free: 63.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.102e-05/2.622, allocations: 8.938 kB / 0.7957 GB, free: 63.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005048/2.627, allocations: 0.5086 MB / 0.7962 GB, free: 63.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008464/2.636, allocations: 1.882 MB / 0.798 GB, free: 62.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009542/2.637, allocations: 67.89 kB / 0.7981 GB, free: 61.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02777/2.665, allocations: 12.81 MB / 0.8106 GB, free: 50.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/2.665, allocations: 8 kB / 0.8106 GB, free: 50.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0282/2.693, allocations: 12.07 MB / 0.8224 GB, free: 39.69 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004362/2.697, allocations: 1.057 MB / 0.8234 GB, free: 38.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001836/2.699, allocations: 63.05 kB / 0.8235 GB, free: 38.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005648/2.705, allocations: 214 kB / 0.8237 GB, free: 38.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/2.706, allocations: 201.6 kB / 0.8239 GB, free: 38.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005704/2.707, allocations: 89.56 kB / 0.824 GB, free: 38.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008548/2.715, allocations: 3.263 MB / 0.8271 GB, free: 35.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.41e-07/2.716, allocations: 0 / 0.8271 GB, free: 35.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01085/2.726, allocations: 1.503 MB / 0.8286 GB, free: 33.93 MB / 474.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.02965/2.756, allocations: 14.06 MB / 0.8423 GB, free: 20.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.019/2.775, allocations: 8.167 MB / 0.8503 GB, free: 12.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/2.775, allocations: 0 / 0.8503 GB, free: 12.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01326/2.788, allocations: 3.894 MB / 0.8541 GB, free: 8.383 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005822/2.794, allocations: 0.621 MB / 0.8547 GB, free: 7.789 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04653/2.841, allocations: 14.16 MB / 0.8686 GB, free: 9.547 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01119/2.852, allocations: 4.526 MB / 0.873 GB, free: 5.012 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01224/2.864, allocations: 2.488 MB / 0.8754 GB, free: 2.527 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3496/3.214, allocations: 2.794 MB / 0.8781 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.764e-06/3.214, allocations: 0 / 0.8781 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2749/3.489, allocations: 119.3 MB / 0.9946 GB, free: 61.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/3.489, allocations: 174.1 kB / 0.9948 GB, free: 61.17 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.128/10.62, allocations: 0 / 0.9948 GB, free: 61.17 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat