Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",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(Modelica): time 1.843/1.843, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2202/2.063, allocations: 46.84 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/2.153, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2976/2.451, allocations: 92.02 MB / 385.9 MB, free: 4.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/2.451, allocations: 84.73 kB / 386 MB, free: 4.488 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.4854/2.937, allocations: 107.9 MB / 493.9 MB, free: 9.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/2.937, allocations: 12 kB / 493.9 MB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05199/2.989, allocations: 6.563 MB / 0.4887 GB, free: 2.914 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1621/3.151, allocations: 6.886 MB / 0.4954 GB, free: 105.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/3.151, allocations: 173.6 kB / 0.4956 GB, free: 105.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/3.154, allocations: 325.8 kB / 0.4959 GB, free: 105.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02091/3.175, allocations: 7.794 MB / 0.5035 GB, free: 105.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0311/3.206, allocations: 11.55 MB / 0.5148 GB, free: 102.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004254/3.207, allocations: 74.44 kB / 0.5149 GB, free: 102.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002699/3.209, allocations: 32.12 kB / 0.5149 GB, free: 102.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002331/3.212, allocations: 1.208 MB / 0.5161 GB, free: 102.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08867/3.301, allocations: 57.18 MB / 0.5719 GB, free: 65.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/3.308, allocations: 3.605 MB / 0.5755 GB, free: 64.01 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005196/3.313, allocations: 2.578 MB / 0.578 GB, free: 62.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02021/3.333, allocations: 7.985 MB / 0.5858 GB, free: 58.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/3.334, allocations: 58.69 kB / 0.5858 GB, free: 58.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=192): time 6.532e-06/3.334, allocations: 0 / 0.5858 GB, free: 58.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.06995/3.404, allocations: 18.06 MB / 0.6035 GB, free: 50.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/3.404, allocations: 206.8 kB / 0.6037 GB, free: 50.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01149/3.415, allocations: 3.715 MB / 0.6073 GB, free: 48.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005262/3.416, allocations: 25.7 kB / 0.6073 GB, free: 48.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/3.419, allocations: 3.464 MB / 0.6107 GB, free: 45.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/3.42, allocations: 0.8064 MB / 0.6115 GB, free: 45.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009866/3.421, allocations: 0 / 0.6115 GB, free: 45.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006954/3.422, allocations: 0.5926 MB / 0.6121 GB, free: 44.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0059/3.428, allocations: 2.181 MB / 0.6142 GB, free: 42.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00849/3.436, allocations: 6.25 MB / 0.6203 GB, free: 34.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00862/3.445, allocations: 3.694 MB / 0.6239 GB, free: 31.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000134/3.445, allocations: 48 kB / 0.6239 GB, free: 31.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.02458/3.47, allocations: 8.162 MB / 0.6319 GB, free: 24.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/3.47, allocations: 4 kB / 0.6319 GB, free: 24.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002436/3.47, allocations: 148.8 kB / 0.6321 GB, free: 24.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00483/3.475, allocations: 0.9122 MB / 0.6329 GB, free: 23.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01022/3.485, allocations: 1.542 MB / 0.6345 GB, free: 22.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/3.499, allocations: 6.904 MB / 0.6412 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008166/3.507, allocations: 206.8 kB / 0.6414 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001732/3.509, allocations: 419.6 kB / 0.6418 GB, free: 15.15 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (825): * Single equations (assignments): 820 * Array equations: 3 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002492/3.512, allocations: 474.4 kB / 0.6422 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/3.513, allocations: 394.8 kB / 0.6426 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/3.525, allocations: 3.427 MB / 0.646 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001317/3.525, allocations: 23.61 kB / 0.646 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.353e-05/3.525, allocations: 4 kB / 0.646 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.344e-05/3.525, allocations: 14.94 kB / 0.646 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02836/3.554, allocations: 8.201 MB / 0.654 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/3.554, allocations: 0 / 0.654 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003678/3.557, allocations: 331 kB / 0.6543 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004365/3.562, allocations: 0.6701 MB / 0.655 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005189/3.562, allocations: 8 kB / 0.655 GB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1561/3.718, allocations: 6.038 MB / 0.6609 GB, free: 92.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/3.719, allocations: 7.375 kB / 0.6609 GB, free: 92.44 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01669/3.735, allocations: 6.254 MB / 0.667 GB, free: 91.84 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02116/3.756, allocations: 8.787 MB / 0.6756 GB, free: 90.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002784/3.759, allocations: 0.7045 MB / 0.6763 GB, free: 90.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/3.761, allocations: 6.406 kB / 0.6763 GB, free: 90.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003933/3.765, allocations: 52.25 kB / 0.6763 GB, free: 90.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007327/3.766, allocations: 103.2 kB / 0.6764 GB, free: 90.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/3.766, allocations: 58.58 kB / 0.6765 GB, free: 90.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.007237/3.773, allocations: 2.533 MB / 0.679 GB, free: 90.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009883/3.783, allocations: 1.016 MB / 0.68 GB, free: 90.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * Array equations: 3 * 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%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009256/3.784, allocations: 146 kB / 0.6801 GB, free: 90.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01374/3.798, allocations: 5.426 MB / 0.6854 GB, free: 90.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/3.798, allocations: 2.312 kB / 0.6854 GB, free: 90.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005305/3.803, allocations: 1.868 MB / 0.6872 GB, free: 90.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004511/3.808, allocations: 433.9 kB / 0.6876 GB, free: 90.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03186/3.84, allocations: 9.34 MB / 0.6968 GB, free: 88.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0128/3.853, allocations: 4.406 MB / 0.7011 GB, free: 87.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.935e-06/3.853, allocations: 0 / 0.7011 GB, free: 87.46 MB / 394.7 MB