Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_1_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.504/1.504, allocations: 171.2 MB / 178.1 MB, free: 8.25 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2035/1.707, allocations: 41.1 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/1.804, allocations: 38.77 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/2.147, allocations: 86.13 MB / 344.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/2.147, allocations: 85.7 kB / 344.2 MB, free: 2.145 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.69/2.837, allocations: 107.6 MB / 451.9 MB, free: 69.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/2.837, allocations: 14.44 kB / 451.9 MB, free: 69.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06221/2.899, allocations: 6.526 MB / 458.4 MB, free: 69.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0301/2.929, allocations: 6.864 MB / 465.3 MB, free: 68.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003253/2.93, allocations: 173 kB / 465.4 MB, free: 68.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002805/2.933, allocations: 318.2 kB / 465.7 MB, free: 68.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0274/2.96, allocations: 7.455 MB / 473.2 MB, free: 66.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04585/3.006, allocations: 11.39 MB / 484.6 MB, free: 59.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003798/3.006, allocations: 63.41 kB / 484.6 MB, free: 59.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002037/3.009, allocations: 36 kB / 484.7 MB, free: 58.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002557/3.011, allocations: 1.206 MB / 485.9 MB, free: 57.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1076/3.119, allocations: 56.58 MB / 0.5298 GB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1587/3.277, allocations: 3.5 MB / 0.5332 GB, free: 103 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00536/3.283, allocations: 2.458 MB / 0.5356 GB, free: 103 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02065/3.304, allocations: 7.715 MB / 0.5431 GB, free: 101.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.202e-05/3.304, allocations: 59.03 kB / 0.5432 GB, free: 101.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 5.881e-06/3.304, allocations: 0 / 0.5432 GB, free: 101.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=217): time 0.07464/3.378, allocations: 17.72 MB / 0.5605 GB, free: 98.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/3.379, allocations: 200.1 kB / 0.5607 GB, free: 97.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/3.389, allocations: 3.724 MB / 0.5643 GB, free: 96.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005228/3.39, allocations: 25.7 kB / 0.5643 GB, free: 96.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003156/3.393, allocations: 3.465 MB / 0.5677 GB, free: 93.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00147/3.394, allocations: 0.8045 MB / 0.5685 GB, free: 93.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008444/3.395, allocations: 0 / 0.5685 GB, free: 93.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005307/3.396, allocations: 0.5928 MB / 0.5691 GB, free: 92.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00588/3.402, allocations: 2.155 MB / 0.5712 GB, free: 92.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008759/3.41, allocations: 6.233 MB / 0.5773 GB, free: 85.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00913/3.42, allocations: 3.681 MB / 0.5809 GB, free: 84.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/3.42, allocations: 42.41 kB / 0.5809 GB, free: 84.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.03844/3.458, allocations: 8.119 MB / 0.5888 GB, free: 82.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/3.458, allocations: 4.531 kB / 0.5888 GB, free: 82.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000599/3.459, allocations: 145.4 kB / 0.589 GB, free: 82.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00721/3.466, allocations: 0.9225 MB / 0.5899 GB, free: 82.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01183/3.478, allocations: 1.537 MB / 0.5914 GB, free: 81.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/3.497, allocations: 6.899 MB / 0.5981 GB, free: 75.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008283/3.506, allocations: 210.2 kB / 0.5983 GB, free: 75.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00179/3.507, allocations: 416.1 kB / 0.5987 GB, free: 75.28 MB / 346.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 (824): * Single equations (assignments): 819 * 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.002262/3.51, allocations: 468.6 kB / 0.5992 GB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/3.511, allocations: 401.9 kB / 0.5995 GB, free: 74.42 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/3.523, allocations: 3.384 MB / 0.6028 GB, free: 71.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/3.523, allocations: 23.47 kB / 0.6029 GB, free: 71.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.14e-05/3.523, allocations: 4 kB / 0.6029 GB, free: 71.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.355e-05/3.523, allocations: 11.27 kB / 0.6029 GB, free: 71.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03338/3.556, allocations: 8.138 MB / 0.6108 GB, free: 64.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.251e-05/3.556, allocations: 0 / 0.6108 GB, free: 64.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00388/3.56, allocations: 326.5 kB / 0.6111 GB, free: 64.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004263/3.565, allocations: 0.6676 MB / 0.6118 GB, free: 64.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004643/3.565, allocations: 14.53 kB / 0.6118 GB, free: 64.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/3.577, allocations: 6.049 MB / 0.6177 GB, free: 58.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/3.577, allocations: 0 / 0.6177 GB, free: 58.5 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01597/3.593, allocations: 6.179 MB / 0.6237 GB, free: 52.97 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02113/3.615, allocations: 8.674 MB / 0.6322 GB, free: 45.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00268/3.617, allocations: 0.6988 MB / 0.6329 GB, free: 44.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001325/3.619, allocations: 8 kB / 0.6329 GB, free: 44.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00354/3.622, allocations: 50.33 kB / 0.633 GB, free: 44.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008067/3.623, allocations: 104.2 kB / 0.6331 GB, free: 44.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002933/3.623, allocations: 59.89 kB / 0.6331 GB, free: 44.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.008556/3.632, allocations: 2.539 MB / 0.6356 GB, free: 42.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01701/3.649, allocations: 1.011 MB / 0.6366 GB, free: 41.12 MB / 346.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 (168): * Single equations (assignments): 163 * 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.001414/3.651, allocations: 151.4 kB / 0.6367 GB, free: 40.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01766/3.668, allocations: 5.382 MB / 0.642 GB, free: 36.08 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/3.668, allocations: 4 kB / 0.642 GB, free: 36.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005146/3.673, allocations: 1.841 MB / 0.6438 GB, free: 34.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006574/3.68, allocations: 435.8 kB / 0.6442 GB, free: 34.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04335/3.723, allocations: 9.32 MB / 0.6533 GB, free: 25.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01388/3.737, allocations: 4.413 MB / 0.6576 GB, free: 22.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.973e-06/3.738, allocations: 0 / 0.6576 GB, free: 22.29 MB / 346.7 MB