Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.4 MB / 216.5 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.57e-05, allocations: 4 kB / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 48.7 MB / 316.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5377, allocations: 92.05 MB / 408.4 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.5381, allocations: 84.34 kB / 408.5 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8605/1.399, allocations: 138.9 MB / 0.5346 GB, free: 80.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.399, allocations: 3.938 kB / 0.5346 GB, free: 80.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005704/1.399, allocations: 159 kB / 0.5347 GB, free: 80.72 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06224/1.461, allocations: 8.668 MB / 0.5432 GB, free: 77.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/1.462, allocations: 6.969 kB / 0.5432 GB, free: 77.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05939/1.521, allocations: 7.704 MB / 0.5507 GB, free: 74.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03897/1.56, allocations: 10.9 MB / 0.5613 GB, free: 67.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005013/1.561, allocations: 244 kB / 0.5616 GB, free: 67.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003801/1.564, allocations: 455.7 kB / 0.562 GB, free: 66.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02608/1.59, allocations: 10.04 MB / 0.5718 GB, free: 56.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03962/1.63, allocations: 15.13 MB / 0.5866 GB, free: 39.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005022/1.631, allocations: 103.1 kB / 0.5867 GB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002897/1.634, allocations: 44 kB / 0.5867 GB, free: 39.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003666/1.637, allocations: 1.605 MB / 0.5883 GB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4651/2.102, allocations: 77.6 MB / 0.6641 GB, free: 45.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009825/2.112, allocations: 4.343 MB / 0.6683 GB, free: 45.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006745/2.119, allocations: 3.047 MB / 0.6713 GB, free: 45.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003596/2.12, allocations: 48.75 kB / 0.6713 GB, free: 45.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/2.12, allocations: 69.47 kB / 0.6714 GB, free: 45.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=265): time 6.673e-06/2.12, allocations: 0 / 0.6714 GB, free: 45.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=293): time 0.08768/2.207, allocations: 21.6 MB / 0.6925 GB, free: 40.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.125e-05/2.207, allocations: 231.8 kB / 0.6927 GB, free: 40.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01417/2.222, allocations: 5.138 MB / 0.6977 GB, free: 38.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009249/2.223, allocations: 32.14 kB / 0.6978 GB, free: 38.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005067/2.228, allocations: 5.3 MB / 0.7029 GB, free: 34.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002385/2.23, allocations: 1.169 MB / 0.7041 GB, free: 33.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001506/2.232, allocations: 1.656 kB / 0.7041 GB, free: 33.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009834/2.233, allocations: 0.7351 MB / 0.7048 GB, free: 33.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009208/2.242, allocations: 3.666 MB / 0.7084 GB, free: 31.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01343/2.255, allocations: 9.544 MB / 0.7177 GB, free: 22.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/2.269, allocations: 5.78 MB / 0.7234 GB, free: 20.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002592/2.269, allocations: 59.59 kB / 0.7234 GB, free: 20.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.04296/2.312, allocations: 14.02 MB / 0.7371 GB, free: 15.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/2.312, allocations: 96 kB / 0.7372 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02078/2.333, allocations: 6.553 MB / 0.7436 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01469/2.348, allocations: 2.789 MB / 0.7463 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01538/2.363, allocations: 2.403 MB / 0.7487 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/2.378, allocations: 10.89 MB / 0.7593 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01467/2.393, allocations: 0.6749 MB / 0.76 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002888/2.396, allocations: 0.6036 MB / 0.7605 GB, free: 10.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * Number of states: 0 () * Number of discrete variables: 75 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1234): * Single equations (assignments): 1209 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * 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: 3 {1,1,1} * 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: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.004531/2.401, allocations: 0.643 MB / 0.7612 GB, free: 9.375 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02919/2.43, allocations: 7.448 MB / 0.7685 GB, free: 3.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002415/2.432, allocations: 0.5592 MB / 0.769 GB, free: 2.773 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03798/2.47, allocations: 7.805 MB / 0.7766 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02664/2.497, allocations: 6.543 MB / 0.783 GB, free: 8.402 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.746e-05/2.497, allocations: 8 kB / 0.783 GB, free: 8.395 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000133/2.497, allocations: 11.95 kB / 0.783 GB, free: 8.383 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0411/2.538, allocations: 11.01 MB / 0.7938 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.102e-05/2.539, allocations: 0 / 0.7938 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00681/2.545, allocations: 0.6046 MB / 0.7944 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01812/2.564, allocations: 3.066 MB / 0.7974 GB, free: 9.637 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/2.565, allocations: 59.91 kB / 0.7974 GB, free: 9.578 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02567/2.59, allocations: 13.76 MB / 0.8109 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005568/2.596, allocations: 5.784 MB / 0.8165 GB, free: 4.895 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3697/2.966, allocations: 11.5 MB / 0.8277 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005303/2.971, allocations: 1.098 MB / 0.8288 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003054/2.974, allocations: 37.48 kB / 0.8289 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008681/2.983, allocations: 333.3 kB / 0.8292 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002634/2.986, allocations: 223.4 kB / 0.8294 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001418/2.987, allocations: 90.3 kB / 0.8295 GB, free: 134.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01618/3.003, allocations: 3.446 MB / 0.8328 GB, free: 134.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.934e-06/3.003, allocations: 0 / 0.8328 GB, free: 134.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02235/3.026, allocations: 1.857 MB / 0.8346 GB, free: 134.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET139834436071819.x[3],$STATESET139834436071819.x[2],$STATESET139834436071819.x[1],$STATESET139834436071818.x[3],$STATESET139834436071818.x[2],$STATESET139834436071818.x[1],$STATESET139834436071817.x[3],$STATESET139834436071817.x[2],$STATESET139834436071817.x[1],$STATESET139834436071816.x[3],$STATESET139834436071816.x[2],$STATESET139834436071816.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 (239): * Single equations (assignments): 222 * 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.05049/3.076, allocations: 12.33 MB / 0.8467 GB, free: 132.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02741/3.104, allocations: 10.27 MB / 0.8567 GB, free: 130.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/3.104, allocations: 4.062 kB / 0.8567 GB, free: 130.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01636/3.12, allocations: 5.221 MB / 0.8618 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008047/3.128, allocations: 0.7119 MB / 0.8625 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0654/3.194, allocations: 18.66 MB / 0.8807 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.208, allocations: 5.402 MB / 0.886 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01514/3.223, allocations: 2.998 MB / 0.8889 GB, free: 119.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008973/3.232, allocations: 3.583 MB / 0.8924 GB, free: 116.1 MB / 490.7 MB Notification: Performance of SimCode: time 2.094e-06/3.232, allocations: 0 / 0.8924 GB, free: 116.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6831/3.915, allocations: 135.7 MB / 1.025 GB, free: 122.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/3.915, allocations: 139.6 kB / 1.025 GB, free: 122.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/12.14, allocations: 4.656 kB / 1.025 GB, free: 122.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat