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 2.306/2.306, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.503e-05/4.512e-05, allocations: 5.547 kB / 273.2 MB, free: 136 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 48.7 MB / 321.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4634/0.5666, allocations: 95.96 MB / 417.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.567, allocations: 83.95 kB / 417.9 MB, free: 9.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.81/2.377, allocations: 284.2 MB / 0.6856 GB, free: 29.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.465e-06/2.377, allocations: 0 / 0.6856 GB, free: 29.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009962/2.378, allocations: 278.9 kB / 0.6859 GB, free: 29.77 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.05898/2.437, allocations: 13.18 MB / 0.6988 GB, free: 24.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/2.437, allocations: 9.969 kB / 0.6988 GB, free: 24.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01495/2.452, allocations: 2.693 MB / 0.7014 GB, free: 24.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1355/2.587, allocations: 18.45 MB / 0.7194 GB, free: 23.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05307/2.64, allocations: 14.86 MB / 0.734 GB, free: 21.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001582/2.642, allocations: 1.097 MB / 0.735 GB, free: 21.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009612/2.652, allocations: 1.463 MB / 0.7365 GB, free: 21.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1205/2.772, allocations: 35.31 MB / 0.7709 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001205/2.773, allocations: 133.9 kB / 0.7711 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009269/2.783, allocations: 0.6676 MB / 0.7717 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007842/2.791, allocations: 3.716 MB / 0.7753 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1464/2.937, allocations: 33.65 MB / 0.8082 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6691/3.606, allocations: 139.1 MB / 0.9441 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05517/3.661, allocations: 15.03 MB / 0.9588 GB, free: 23.22 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01991/3.681, allocations: 9.321 MB / 0.9679 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09952/3.781, allocations: 34.74 MB / 1.002 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/3.781, allocations: 96.92 kB / 1.002 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=745): time 1.276e-05/3.781, allocations: 0 / 1.002 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827): time 0.7285/4.51, allocations: 67.42 MB / 1.068 GB, free: 98.15 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/4.51, allocations: 307.3 kB / 1.068 GB, free: 97.86 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03716/4.547, allocations: 9.274 MB / 1.077 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002674/4.55, allocations: 136.5 kB / 1.077 GB, free: 97.04 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01305/4.563, allocations: 9.823 MB / 1.087 GB, free: 91.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.006298/4.569, allocations: 2.985 MB / 1.09 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004238/4.574, allocations: 357.2 kB / 1.09 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.003253/4.577, allocations: 1.1 MB / 1.091 GB, free: 89.56 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02076/4.598, allocations: 8.005 MB / 1.099 GB, free: 88.31 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0286/4.626, allocations: 17.47 MB / 1.116 GB, free: 73.01 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02825/4.655, allocations: 11.96 MB / 1.128 GB, free: 66.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004348/4.655, allocations: 94.03 kB / 1.128 GB, free: 66.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.07738/4.733, allocations: 26.34 MB / 1.153 GB, free: 43.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002693/4.733, allocations: 151.8 kB / 1.154 GB, free: 43.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005745/4.734, allocations: 332 kB / 1.154 GB, free: 43.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0116/4.745, allocations: 2.407 MB / 1.156 GB, free: 41.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02901/4.774, allocations: 4.26 MB / 1.16 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03001/4.804, allocations: 14.38 MB / 1.175 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02226/4.827, allocations: 1.084 MB / 1.176 GB, free: 24.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004709/4.831, allocations: 0.9961 MB / 1.177 GB, free: 23.13 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * 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 (2203): * Single equations (assignments): 2186 * 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.007691/4.839, allocations: 1.417 MB / 1.178 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003937/4.843, allocations: 1.006 MB / 1.179 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4404/5.284, allocations: 16 MB / 1.195 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003644/5.284, allocations: 171.7 kB / 1.195 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-05/5.284, allocations: 14.97 kB / 1.195 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002078/5.284, allocations: 36.12 kB / 1.195 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1103/5.395, allocations: 34.51 MB / 1.228 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001177/5.395, allocations: 7.656 kB / 1.228 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01389/5.409, allocations: 1.393 MB / 1.23 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01015/5.419, allocations: 1.769 MB / 1.232 GB, free: 85.42 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002021/5.421, allocations: 134.7 kB / 1.232 GB, free: 85.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02693/5.448, allocations: 12.91 MB / 1.244 GB, free: 82.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/5.448, allocations: 16.55 kB / 1.244 GB, free: 82.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06217/5.51, allocations: 26.31 MB / 1.27 GB, free: 73.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009247/5.52, allocations: 2.24 MB / 1.272 GB, free: 72.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004727/5.524, allocations: 132.2 kB / 1.272 GB, free: 72.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01514/5.539, allocations: 0.5308 MB / 1.273 GB, free: 72.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003961/5.544, allocations: 443.6 kB / 1.273 GB, free: 72.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002247/5.546, allocations: 191.5 kB / 1.273 GB, free: 72.46 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01858/5.564, allocations: 6.412 MB / 1.28 GB, free: 70.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.062e-06/5.565, allocations: 0 / 1.28 GB, free: 70.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02438/5.589, allocations: 3.423 MB / 1.283 GB, free: 69.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (653): * Single equations (assignments): 636 * 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.06221/5.651, allocations: 27.77 MB / 1.31 GB, free: 48.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0451/5.696, allocations: 18.81 MB / 1.329 GB, free: 31.97 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/5.696, allocations: 4 kB / 1.329 GB, free: 31.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01953/5.716, allocations: 7.525 MB / 1.336 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01187/5.728, allocations: 1.257 MB / 1.337 GB, free: 24.08 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5479/6.276, allocations: 34.57 MB / 1.371 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03408/6.31, allocations: 10.57 MB / 1.381 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.03436/6.344, allocations: 6.657 MB / 1.388 GB, free: 92.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01873/6.363, allocations: 7.444 MB / 1.395 GB, free: 92.01 MB / 0.5105 GB Notification: Performance of SimCode: time 1.743e-06/6.363, allocations: 0 / 1.395 GB, free: 92.01 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.047/7.41, allocations: 233.7 MB / 1.623 GB, free: 70.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/7.41, allocations: 190 kB / 1.623 GB, free: 70.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/20.6, allocations: 0 / 1.623 GB, free: 70.61 MB / 0.5105 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