Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.41/2.41, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.987e-05/4.007e-05, allocations: 0 / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.396, allocations: 54.86 MB / 359.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.595, allocations: 103.2 MB / 463.1 MB, free: 9.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/0.5954, allocations: 88.72 kB / 463.2 MB, free: 9.551 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864/2.459, allocations: 284.9 MB / 0.7305 GB, free: 41.01 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.805e-06/2.459, allocations: 1.781 kB / 0.7305 GB, free: 41.01 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009626/2.46, allocations: 288 kB / 0.7308 GB, free: 41 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.0549/2.515, allocations: 13.19 MB / 0.7437 GB, free: 35.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/2.515, allocations: 6.531 kB / 0.7437 GB, free: 35.85 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01332/2.529, allocations: 2.695 MB / 0.7463 GB, free: 35.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1321/2.661, allocations: 18.54 MB / 0.7644 GB, free: 34.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05265/2.713, allocations: 14.88 MB / 0.779 GB, free: 33.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001464/2.715, allocations: 1.102 MB / 0.78 GB, free: 33.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009153/2.724, allocations: 1.461 MB / 0.7815 GB, free: 33.11 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1326/2.857, allocations: 36.05 MB / 0.8167 GB, free: 25.79 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001155/2.858, allocations: 133.4 kB / 0.8168 GB, free: 25.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008546/2.867, allocations: 0.6636 MB / 0.8174 GB, free: 25.38 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007758/2.874, allocations: 3.722 MB / 0.8211 GB, free: 22.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.117/2.991, allocations: 32.07 MB / 0.8524 GB, free: 10.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7245/3.716, allocations: 140.3 MB / 0.9895 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05664/3.773, allocations: 15.55 MB / 1.005 GB, free: 28.97 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01984/3.793, allocations: 9.568 MB / 1.014 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1019/3.895, allocations: 35.73 MB / 1.049 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/3.895, allocations: 100.5 kB / 1.049 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=747): time 1.436e-05/3.895, allocations: 4.156 kB / 1.049 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of matching and sorting (n=829): time 0.778/4.673, allocations: 70.01 MB / 1.117 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002152/4.673, allocations: 307.9 kB / 1.118 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02779/4.701, allocations: 9.274 MB / 1.127 GB, free: 103 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002227/4.703, allocations: 137.5 kB / 1.127 GB, free: 103 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.009424/4.713, allocations: 9.492 MB / 1.136 GB, free: 97.74 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005591/4.718, allocations: 2.986 MB / 1.139 GB, free: 95.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003837/4.722, allocations: 360.5 kB / 1.139 GB, free: 95.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002526/4.725, allocations: 1.101 MB / 1.14 GB, free: 95.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02241/4.747, allocations: 8.122 MB / 1.148 GB, free: 95.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02908/4.776, allocations: 17.56 MB / 1.166 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02863/4.805, allocations: 12.07 MB / 1.177 GB, free: 81.24 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004529/4.806, allocations: 93.81 kB / 1.177 GB, free: 81.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.07864/4.884, allocations: 26.23 MB / 1.203 GB, free: 73.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002837/4.885, allocations: 153.4 kB / 1.203 GB, free: 73.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005472/4.885, allocations: 329.8 kB / 1.203 GB, free: 73.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/4.897, allocations: 2.408 MB / 1.206 GB, free: 72.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02954/4.926, allocations: 4.277 MB / 1.21 GB, free: 72.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03245/4.959, allocations: 14.37 MB / 1.224 GB, free: 61.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02589/4.985, allocations: 1.091 MB / 1.225 GB, free: 60.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004863/4.99, allocations: 1.001 MB / 1.226 GB, free: 59.66 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1510 * 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 (2205): * Single equations (assignments): 2188 * 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.008283/4.998, allocations: 1.409 MB / 1.227 GB, free: 58.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004416/5.002, allocations: 1.023 MB / 1.228 GB, free: 57.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04988/5.052, allocations: 15.8 MB / 1.244 GB, free: 43.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003/5.053, allocations: 164.3 kB / 1.244 GB, free: 43.74 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.437e-05/5.053, allocations: 12.94 kB / 1.244 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002332/5.053, allocations: 32.58 kB / 1.244 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1114/5.164, allocations: 34.7 MB / 1.278 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001108/5.165, allocations: 8.875 kB / 1.278 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01394/5.179, allocations: 1.4 MB / 1.279 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.443/5.622, allocations: 1.832 MB / 1.281 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002108/5.624, allocations: 133.6 kB / 1.281 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03169/5.656, allocations: 12.9 MB / 1.294 GB, free: 92.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/5.656, allocations: 10.16 kB / 1.294 GB, free: 92.44 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06781/5.723, allocations: 26.46 MB / 1.32 GB, free: 89.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009415/5.733, allocations: 2.251 MB / 1.322 GB, free: 89.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005065/5.738, allocations: 132 kB / 1.322 GB, free: 89.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01228/5.75, allocations: 0.5366 MB / 1.323 GB, free: 89.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002987/5.753, allocations: 437.8 kB / 1.323 GB, free: 89.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002079/5.756, allocations: 190.1 kB / 1.323 GB, free: 89.51 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01868/5.774, allocations: 6.411 MB / 1.329 GB, free: 89.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.81e-07/5.774, allocations: 0 / 1.329 GB, free: 89.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0254/5.8, allocations: 3.438 MB / 1.333 GB, free: 89.18 MB / 0.5417 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 (655): * Single equations (assignments): 638 * 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.06855/5.868, allocations: 27.92 MB / 1.36 GB, free: 81.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04622/5.915, allocations: 18.99 MB / 1.379 GB, free: 75.66 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/5.915, allocations: 3.906 kB / 1.379 GB, free: 75.66 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02369/5.938, allocations: 7.565 MB / 1.386 GB, free: 72.89 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01446/5.953, allocations: 1.255 MB / 1.387 GB, free: 72.35 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1361/6.089, allocations: 35.94 MB / 1.422 GB, free: 44.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02882/6.118, allocations: 10.59 MB / 1.433 GB, free: 36.54 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02141/6.139, allocations: 7.585 MB / 1.44 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.463e-06/6.139, allocations: 0 / 1.44 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.677/14.82, allocations: 408.4 MB / 1.839 GB, free: 65.58 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat