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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.061/2.061, allocations: 209.3 MB / 216.3 MB, free: 6.801 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2404/2.301, allocations: 51.04 MB / 267.3 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/2.43, allocations: 48.69 MB / 316 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/2.847, allocations: 95.46 MB / 411.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004495/2.848, allocations: 84.61 kB / 411.5 MB, free: 13.45 MB / 346.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 1.786/4.634, allocations: 288.3 MB / 0.6834 GB, free: 28.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/4.634, allocations: 10.94 kB / 0.6834 GB, free: 28.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.156/4.79, allocations: 16.78 MB / 0.6998 GB, free: 27.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07079/4.861, allocations: 14.99 MB / 0.7144 GB, free: 25.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001348/4.862, allocations: 477.4 kB / 0.7149 GB, free: 25.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01021/4.873, allocations: 0.8506 MB / 0.7157 GB, free: 25.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07468/4.947, allocations: 24.18 MB / 0.7393 GB, free: 25.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1332/5.081, allocations: 33.22 MB / 0.7718 GB, free: 2.543 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001339/5.082, allocations: 132.3 kB / 0.7719 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009689/5.092, allocations: 63.91 kB / 0.772 GB, free: 2.414 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01743/5.109, allocations: 4.196 MB / 0.7761 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7597/5.869, allocations: 136.7 MB / 0.9096 GB, free: 52.49 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02957/5.899, allocations: 11.16 MB / 0.9205 GB, free: 51.82 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02248/5.921, allocations: 9.755 MB / 0.93 GB, free: 51.59 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1095/6.031, allocations: 34.94 MB / 0.9641 GB, free: 35.86 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/6.031, allocations: 102.6 kB / 0.9642 GB, free: 35.77 MB / 490.8 MB Notification: Performance of pre-optimization done (n=745): time 1.286e-05/6.031, allocations: 0 / 0.9642 GB, free: 35.77 MB / 490.8 MB Notification: Performance of matching and sorting (n=816): time 0.5284/6.559, allocations: 67.29 MB / 1.03 GB, free: 118.2 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002423/6.56, allocations: 304.2 kB / 1.03 GB, free: 117.9 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02965/6.589, allocations: 8.817 MB / 1.039 GB, free: 117.4 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00197/6.591, allocations: 29.67 kB / 1.039 GB, free: 117.4 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0086/6.6, allocations: 9.26 MB / 1.048 GB, free: 112.3 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005672/6.606, allocations: 2.878 MB / 1.051 GB, free: 110.5 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00367/6.609, allocations: 0 / 1.051 GB, free: 110.5 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.002788/6.612, allocations: 1.141 MB / 1.052 GB, free: 110.2 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02586/6.638, allocations: 8.071 MB / 1.06 GB, free: 110.2 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03467/6.673, allocations: 18.28 MB / 1.078 GB, free: 97.1 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03753/6.711, allocations: 12.36 MB / 1.09 GB, free: 96.98 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005528/6.711, allocations: 104.9 kB / 1.09 GB, free: 96.98 MB / 490.8 MB Notification: Performance of matching and sorting (n=2524) (initialization): time 0.0859/6.797, allocations: 26.18 MB / 1.115 GB, free: 93.05 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/6.797, allocations: 10.16 kB / 1.115 GB, free: 93.05 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008715/6.798, allocations: 356.8 kB / 1.116 GB, free: 93.05 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01312/6.811, allocations: 2.334 MB / 1.118 GB, free: 92.66 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03306/6.844, allocations: 4.377 MB / 1.122 GB, free: 92.15 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0327/6.877, allocations: 12.87 MB / 1.135 GB, free: 85.68 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02624/6.903, allocations: 0.6072 MB / 1.135 GB, free: 85.66 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005812/6.909, allocations: 1.058 MB / 1.136 GB, free: 85.51 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * 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 (2328): * Single equations (assignments): 2311 * 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.008797/6.918, allocations: 1.012 MB / 1.137 GB, free: 84.69 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004441/6.923, allocations: 0.9843 MB / 1.138 GB, free: 84.14 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05784/6.981, allocations: 15.26 MB / 1.153 GB, free: 74.82 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004207/6.981, allocations: 145.7 kB / 1.153 GB, free: 74.7 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.333e-05/6.981, allocations: 12 kB / 1.153 GB, free: 74.68 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002065/6.981, allocations: 33.98 kB / 1.153 GB, free: 74.68 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3671/7.348, allocations: 31.51 MB / 1.184 GB, free: 99.71 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001577/7.349, allocations: 6.375 kB / 1.184 GB, free: 99.71 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01841/7.367, allocations: 1.241 MB / 1.185 GB, free: 99.71 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01154/7.379, allocations: 1.715 MB / 1.187 GB, free: 99.69 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002304/7.381, allocations: 13.78 kB / 1.187 GB, free: 99.69 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03722/7.418, allocations: 11.69 MB / 1.199 GB, free: 97.14 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/7.418, allocations: 6.438 kB / 1.199 GB, free: 97.14 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07959/7.498, allocations: 24.98 MB / 1.223 GB, free: 96.27 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1164/7.614, allocations: 35.14 MB / 1.257 GB, free: 91.57 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01465/7.629, allocations: 2.21 MB / 1.259 GB, free: 90.87 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007554/7.637, allocations: 2.75 kB / 1.259 GB, free: 90.87 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01222/7.649, allocations: 277.6 kB / 1.26 GB, free: 90.87 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002771/7.652, allocations: 344.4 kB / 1.26 GB, free: 90.81 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001877/7.654, allocations: 179.1 kB / 1.26 GB, free: 90.77 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.0198/7.674, allocations: 5.906 MB / 1.266 GB, free: 88.76 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02573/7.699, allocations: 2.956 MB / 1.269 GB, free: 88.75 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (642): * Single equations (assignments): 625 * 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.002355/7.702, allocations: 189.5 kB / 1.269 GB, free: 88.67 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.05047/7.752, allocations: 19.16 MB / 1.288 GB, free: 82.95 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/7.752, allocations: 0 / 1.288 GB, free: 82.95 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02202/7.774, allocations: 7.328 MB / 1.295 GB, free: 78.88 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01063/7.785, allocations: 0.8924 MB / 1.296 GB, free: 78.11 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1101/7.895, allocations: 29.43 MB / 1.324 GB, free: 51.81 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04522/7.941, allocations: 11.38 MB / 1.336 GB, free: 43.41 MB / 490.8 MB Notification: Performance of SimCode: time 2.164e-06/7.941, allocations: 0 / 1.336 GB, free: 43.41 MB / 490.8 MB