Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.483/2.483, allocations: 235.1 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2005/2.684, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/3.028, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4857/3.514, allocations: 102.5 MB / 456.6 MB, free: 34.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004447/3.514, allocations: 83.72 kB / 456.7 MB, free: 34.67 MB / 378.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 1.819/5.333, allocations: 289 MB / 0.7282 GB, free: 47.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.802e-05/5.333, allocations: 10.19 kB / 0.7282 GB, free: 47.13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1759/5.509, allocations: 16.86 MB / 0.7447 GB, free: 38.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07016/5.579, allocations: 15.01 MB / 0.7593 GB, free: 24.24 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001106/5.58, allocations: 486.8 kB / 0.7598 GB, free: 23.77 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01015/5.591, allocations: 0.8591 MB / 0.7606 GB, free: 22.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07837/5.669, allocations: 24.85 MB / 0.7849 GB, free: 14.06 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5962/6.265, allocations: 33.59 MB / 0.8177 GB, free: 84.32 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001378/6.267, allocations: 133.7 kB / 0.8178 GB, free: 84.32 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01217/6.279, allocations: 62.69 kB / 0.8179 GB, free: 84.32 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01103/6.29, allocations: 3.956 MB / 0.8218 GB, free: 84.29 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3613/6.651, allocations: 137.9 MB / 0.9564 GB, free: 42.11 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02893/6.68, allocations: 11.38 MB / 0.9676 GB, free: 37.14 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02831/6.709, allocations: 9.971 MB / 0.9773 GB, free: 33.08 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1324/6.841, allocations: 35.76 MB / 1.012 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/6.841, allocations: 110.6 kB / 1.012 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=747): time 1.498e-05/6.841, allocations: 0 / 1.012 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=819): time 0.5597/7.401, allocations: 69.34 MB / 1.08 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/7.401, allocations: 309.2 kB / 1.08 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02706/7.428, allocations: 8.809 MB / 1.089 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002013/7.43, allocations: 28.58 kB / 1.089 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008951/7.439, allocations: 9.266 MB / 1.098 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.006232/7.446, allocations: 2.883 MB / 1.101 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004108/7.45, allocations: 0 / 1.101 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002872/7.453, allocations: 1.143 MB / 1.102 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02394/7.477, allocations: 8.121 MB / 1.11 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04146/7.518, allocations: 18.33 MB / 1.128 GB, free: 94.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04156/7.56, allocations: 12.41 MB / 1.14 GB, free: 91.13 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006321/7.561, allocations: 102.7 kB / 1.14 GB, free: 91.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2527) (initialization): time 0.1028/7.663, allocations: 26.27 MB / 1.166 GB, free: 79.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/7.663, allocations: 11.28 kB / 1.166 GB, free: 79.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008378/7.664, allocations: 356.9 kB / 1.166 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01438/7.679, allocations: 2.334 MB / 1.168 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03782/7.717, allocations: 4.382 MB / 1.173 GB, free: 73.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03454/7.751, allocations: 12.88 MB / 1.185 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02736/7.779, allocations: 0.6073 MB / 1.186 GB, free: 61.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005724/7.784, allocations: 1.063 MB / 1.187 GB, free: 60.24 MB / 0.5105 GB 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 (2331): * Single equations (assignments): 2314 * 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.008592/7.793, allocations: 1.015 MB / 1.188 GB, free: 59.22 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004016/7.797, allocations: 0.9871 MB / 1.189 GB, free: 58.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3755/8.173, allocations: 15.39 MB / 1.204 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004329/8.173, allocations: 147.4 kB / 1.204 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-05/8.173, allocations: 9.969 kB / 1.204 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001793/8.173, allocations: 37.42 kB / 1.204 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1454/8.319, allocations: 31.41 MB / 1.235 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001309/8.319, allocations: 3.719 kB / 1.235 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02862/8.348, allocations: 1.246 MB / 1.236 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01973/8.367, allocations: 1.717 MB / 1.238 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002719/8.37, allocations: 13.98 kB / 1.238 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03724/8.407, allocations: 11.69 MB / 1.249 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/8.407, allocations: 3.312 kB / 1.249 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07529/8.483, allocations: 25.17 MB / 1.274 GB, free: 98.29 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09569/8.579, allocations: 35.39 MB / 1.308 GB, free: 85.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01018/8.589, allocations: 2.213 MB / 1.31 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005306/8.594, allocations: 7.656 kB / 1.31 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01361/8.608, allocations: 279.4 kB / 1.311 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002995/8.611, allocations: 346.3 kB / 1.311 GB, free: 84.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002223/8.613, allocations: 180.7 kB / 1.311 GB, free: 84.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.02131/8.634, allocations: 5.908 MB / 1.317 GB, free: 82.53 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03929/8.674, allocations: 2.964 MB / 1.32 GB, free: 79.57 MB / 0.5105 GB 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 (645): * Single equations (assignments): 628 * 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.002714/8.677, allocations: 189.1 kB / 1.32 GB, free: 79.45 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05872/8.735, allocations: 19.27 MB / 1.339 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/8.735, allocations: 0 / 1.339 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02928/8.765, allocations: 7.389 MB / 1.346 GB, free: 56.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01219/8.777, allocations: 0.8941 MB / 1.347 GB, free: 55.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4139/9.191, allocations: 30.43 MB / 1.376 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04556/9.237, allocations: 11.39 MB / 1.388 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.804e-06/9.237, allocations: 0 / 1.388 GB, free: 102.2 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat