Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.992/1.992, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.043e-05, allocations: 0 / 267.6 MB, free: 4.934 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 48.7 MB / 316.3 MB, free: 4.133 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5648, allocations: 95.52 MB / 411.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.5651, allocations: 85.81 kB / 411.9 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.717/2.282, allocations: 277.4 MB / 0.6731 GB, free: 34.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.765e-06/2.282, allocations: 0 / 0.6731 GB, free: 34.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000851/2.283, allocations: 283.9 kB / 0.6734 GB, free: 34.2 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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.05448/2.337, allocations: 13.17 MB / 0.6863 GB, free: 29.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/2.337, allocations: 6.531 kB / 0.6863 GB, free: 29.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1497/2.487, allocations: 18.45 MB / 0.7043 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07204/2.559, allocations: 14.84 MB / 0.7188 GB, free: 26.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001678/2.561, allocations: 477.6 kB / 0.7193 GB, free: 26.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01138/2.572, allocations: 0.8501 MB / 0.7201 GB, free: 26.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06117/2.634, allocations: 23.57 MB / 0.7431 GB, free: 26.37 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09632/2.73, allocations: 32.63 MB / 0.775 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001326/2.731, allocations: 135 kB / 0.7751 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009077/2.741, allocations: 63.94 kB / 0.7752 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01609/2.757, allocations: 4.139 MB / 0.7792 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6931/3.45, allocations: 134.4 MB / 0.9104 GB, free: 22.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02506/3.475, allocations: 14.32 MB / 0.9244 GB, free: 19.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01888/3.494, allocations: 9.182 MB / 0.9334 GB, free: 18.15 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002454/3.496, allocations: 1.302 MB / 0.9346 GB, free: 16.97 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001166/3.497, allocations: 110.2 kB / 0.9347 GB, free: 16.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=808): time 1.451e-05/3.497, allocations: 0 / 0.9347 GB, free: 16.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=882): time 0.7604/4.257, allocations: 79.42 MB / 1.012 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002634/4.257, allocations: 313.6 kB / 1.013 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03686/4.294, allocations: 8.313 MB / 1.021 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002609/4.297, allocations: 28.92 kB / 1.021 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01419/4.311, allocations: 9.887 MB / 1.03 GB, free: 97.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.007737/4.319, allocations: 3.076 MB / 1.033 GB, free: 95.64 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004467/4.324, allocations: 0 / 1.033 GB, free: 95.64 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.003516/4.327, allocations: 1.153 MB / 1.035 GB, free: 95.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02731/4.355, allocations: 7.891 MB / 1.042 GB, free: 95.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02892/4.384, allocations: 18.07 MB / 1.06 GB, free: 82.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02882/4.412, allocations: 12.04 MB / 1.072 GB, free: 82.12 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005953/4.413, allocations: 105.9 kB / 1.072 GB, free: 82.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2533) (initialization): time 0.07858/4.492, allocations: 25.87 MB / 1.097 GB, free: 77.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003399/4.492, allocations: 160.4 kB / 1.097 GB, free: 77.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006669/4.493, allocations: 358 kB / 1.098 GB, free: 77.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0118/4.505, allocations: 2.401 MB / 1.1 GB, free: 76.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03078/4.535, allocations: 4.523 MB / 1.104 GB, free: 76.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02871/4.564, allocations: 13.71 MB / 1.118 GB, free: 69.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02217/4.586, allocations: 0.7604 MB / 1.118 GB, free: 69.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005381/4.592, allocations: 1.067 MB / 1.119 GB, free: 69.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1634 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2337): * Single equations (assignments): 2320 * Array equations: 15 * 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,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008866/4.601, allocations: 1.004 MB / 1.12 GB, free: 68.32 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04376/4.645, allocations: 14.81 MB / 1.135 GB, free: 60.81 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004259/4.649, allocations: 0.9945 MB / 1.136 GB, free: 59.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05082/4.7, allocations: 16.7 MB / 1.152 GB, free: 45.92 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000386/4.7, allocations: 164.5 kB / 1.152 GB, free: 45.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.238e-05/4.7, allocations: 16 kB / 1.152 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002319/4.701, allocations: 36.75 kB / 1.152 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5041/5.205, allocations: 36.55 MB / 1.188 GB, free: 84.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001264/5.205, allocations: 13.5 kB / 1.188 GB, free: 84.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01499/5.22, allocations: 1.493 MB / 1.19 GB, free: 84.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/5.231, allocations: 1.758 MB / 1.191 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002122/5.233, allocations: 36.06 kB / 1.191 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02864/5.261, allocations: 12.14 MB / 1.203 GB, free: 81.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.096e-05/5.261, allocations: 21.61 kB / 1.203 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06564/5.327, allocations: 28.79 MB / 1.231 GB, free: 76.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009241/5.336, allocations: 2.251 MB / 1.233 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004972/5.341, allocations: 26.31 kB / 1.233 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/5.353, allocations: 439.2 kB / 1.234 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003183/5.356, allocations: 491.9 kB / 1.234 GB, free: 76.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002118/5.359, allocations: 214.5 kB / 1.235 GB, free: 76.17 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01577/5.374, allocations: 5.547 MB / 1.24 GB, free: 75.89 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.12e-07/5.374, allocations: 0 / 1.24 GB, free: 75.89 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02521/5.4, allocations: 2.981 MB / 1.243 GB, free: 75.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (704): * Single equations (assignments): 687 * Array equations: 15 * 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 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07106/5.471, allocations: 31.03 MB / 1.273 GB, free: 65.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04416/5.515, allocations: 19.11 MB / 1.292 GB, free: 59.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.568e-05/5.515, allocations: 6.438 kB / 1.292 GB, free: 59.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02117/5.536, allocations: 7.903 MB / 1.3 GB, free: 56.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/5.547, allocations: 0.9458 MB / 1.301 GB, free: 55.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1168/5.664, allocations: 34.28 MB / 1.334 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02972/5.694, allocations: 10.57 MB / 1.344 GB, free: 18.75 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.03537/5.73, allocations: 7.196 MB / 1.351 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02037/5.75, allocations: 7.458 MB / 1.359 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.333e-06/5.75, allocations: 3.5 kB / 1.359 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.316/7.066, allocations: 223.1 MB / 1.577 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/7.066, allocations: 155.5 kB / 1.577 GB, free: 46.18 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/20.49, allocations: 7.938 kB / 1.577 GB, free: 46.17 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat