Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.114e-05/4.12e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1609, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5336/0.6946, allocations: 108.6 MB / 0.5068 GB, free: 11.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.6949, allocations: 76.83 kB / 0.5069 GB, free: 11.33 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.033/1.728, allocations: 148.1 MB / 0.6515 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.415e-06/1.728, allocations: 3.938 kB / 0.6515 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005737/1.729, allocations: 166.7 kB / 0.6517 GB, free: 106.1 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.06483/1.794, allocations: 8.851 MB / 0.6603 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/1.794, allocations: 7.594 kB / 0.6603 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006773/1.801, allocations: 1.351 MB / 0.6616 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0593/1.86, allocations: 7.777 MB / 0.6692 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03967/1.9, allocations: 10.44 MB / 0.6794 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008145/1.901, allocations: 0.5853 MB / 0.68 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004487/1.905, allocations: 0.7946 MB / 0.6808 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0591/1.964, allocations: 18.07 MB / 0.6984 GB, free: 92.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005036/1.965, allocations: 104.8 kB / 0.6985 GB, free: 92.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/1.968, allocations: 376.5 kB / 0.6989 GB, free: 92.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003812/1.971, allocations: 1.684 MB / 0.7005 GB, free: 92.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04906/2.021, allocations: 14.37 MB / 0.7145 GB, free: 82.13 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1339/2.155, allocations: 81.13 MB / 0.7938 GB, free: 0.7656 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04065/2.195, allocations: 7.509 MB / 0.8011 GB, free: 9.145 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008542/2.204, allocations: 3.372 MB / 0.8044 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.459/2.663, allocations: 17.02 MB / 0.821 GB, free: 111.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/2.663, allocations: 65.95 kB / 0.8211 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=301): time 1.326e-05/2.663, allocations: 3.656 kB / 0.8211 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=329): time 0.1778/2.841, allocations: 23.95 MB / 0.8445 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007679/2.849, allocations: 6.256 MB / 0.8506 GB, free: 101 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02084/2.87, allocations: 5.734 MB / 0.8562 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001224/2.871, allocations: 76.08 kB / 0.8563 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007337/2.878, allocations: 5.345 MB / 0.8615 GB, free: 97.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003061/2.881, allocations: 1.32 MB / 0.8628 GB, free: 96.33 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002086/2.883, allocations: 198.8 kB / 0.863 GB, free: 96.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001262/2.885, allocations: 0.7333 MB / 0.8637 GB, free: 95.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01527/2.9, allocations: 3.894 MB / 0.8675 GB, free: 94.38 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02057/2.921, allocations: 9.676 MB / 0.8769 GB, free: 85.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02045/2.941, allocations: 6.038 MB / 0.8828 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003162/2.942, allocations: 57.69 kB / 0.8829 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.08825/3.03, allocations: 15.81 MB / 0.8983 GB, free: 78.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002518/3.03, allocations: 96.72 kB / 0.8984 GB, free: 78.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05203/3.082, allocations: 7.867 MB / 0.9061 GB, free: 76.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0442/3.127, allocations: 3.9 MB / 0.9099 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02165/3.148, allocations: 2.369 MB / 0.9122 GB, free: 75.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03326/3.182, allocations: 13.54 MB / 0.9254 GB, free: 62.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01953/3.201, allocations: 0.874 MB / 0.9263 GB, free: 61.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002715/3.204, allocations: 0.6007 MB / 0.9269 GB, free: 61.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 936 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (1240): * Single equations (assignments): 1215 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00395/3.208, allocations: 0.8816 MB / 0.9277 GB, free: 60.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001858/3.21, allocations: 0.5939 MB / 0.9283 GB, free: 59.71 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02812/3.238, allocations: 7.768 MB / 0.9359 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02467/3.263, allocations: 6.908 MB / 0.9427 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.293e-05/3.263, allocations: 8 kB / 0.9427 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.31e-05/3.263, allocations: 16.97 kB / 0.9427 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06074/3.324, allocations: 19.39 MB / 0.9616 GB, free: 32.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.337e-05/3.324, allocations: 4 kB / 0.9616 GB, free: 32.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006871/3.331, allocations: 0.6579 MB / 0.9623 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01723/3.348, allocations: 3.134 MB / 0.9653 GB, free: 30.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/3.349, allocations: 108.3 kB / 0.9654 GB, free: 29.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/3.37, allocations: 14 MB / 0.9791 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004495/3.375, allocations: 6.019 MB / 0.985 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03583/3.411, allocations: 12.71 MB / 0.9974 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002791/3.414, allocations: 0.6489 MB / 0.998 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00274/3.416, allocations: 91.95 kB / 0.9981 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007991/3.424, allocations: 382.2 kB / 0.9985 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/3.426, allocations: 249.2 kB / 0.9987 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007257/3.427, allocations: 99.94 kB / 0.9988 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01248/3.439, allocations: 3.987 MB / 1.003 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.753e-06/3.439, allocations: 0 / 1.003 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01525/3.455, allocations: 2.097 MB / 1.005 GB, free: 4.078 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4479/3.902, allocations: 14.18 MB / 1.019 GB, free: 127 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03347/3.936, allocations: 11.03 MB / 1.029 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/3.936, allocations: 1.469 kB / 1.029 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01782/3.954, allocations: 5.375 MB / 1.035 GB, free: 124 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008269/3.962, allocations: 0.857 MB / 1.035 GB, free: 124 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06692/4.029, allocations: 19.53 MB / 1.055 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01465/4.044, allocations: 5.528 MB / 1.06 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01537/4.059, allocations: 3.031 MB / 1.063 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009119/4.069, allocations: 3.678 MB / 1.066 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.803e-06/4.069, allocations: 3 kB / 1.066 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4366/4.505, allocations: 149.7 MB / 1.213 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003468/4.506, allocations: 180.1 kB / 1.213 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.977/13.48, allocations: 0 / 1.213 GB, free: 4.18 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat