Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_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(ModelicaTest): time 2.082/2.082, allocations: 209.3 MB / 216.3 MB, free: 4.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.169/2.252, allocations: 51.03 MB / 267.3 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/2.569, allocations: 48.71 MB / 316 MB, free: 13.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2058/2.775, allocations: 96.01 MB / 412 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/2.776, allocations: 75.95 kB / 412.1 MB, free: 0.918 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: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.9227/3.698, allocations: 165.9 MB / 0.5645 GB, free: 6.645 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/3.699, allocations: 11.94 kB / 0.5645 GB, free: 6.633 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08447/3.783, allocations: 9.063 MB / 0.5733 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03744/3.821, allocations: 8.477 MB / 0.5816 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006845/3.821, allocations: 268 kB / 0.5819 GB, free: 4.711 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005164/3.826, allocations: 495.8 kB / 0.5823 GB, free: 4.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3737/4.2, allocations: 13.43 MB / 0.5955 GB, free: 94.52 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06992/4.27, allocations: 19.11 MB / 0.6141 GB, free: 90.59 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001024/4.271, allocations: 89.88 kB / 0.6142 GB, free: 90.59 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006593/4.278, allocations: 40.97 kB / 0.6143 GB, free: 90.59 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005685/4.284, allocations: 2.243 MB / 0.6164 GB, free: 90.57 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1727/4.456, allocations: 82.15 MB / 0.6967 GB, free: 40.91 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/4.47, allocations: 6.509 MB / 0.703 GB, free: 37.93 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01244/4.483, allocations: 5.285 MB / 0.7082 GB, free: 35.73 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05264/4.536, allocations: 14.83 MB / 0.7227 GB, free: 24.28 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.109e-05/4.536, allocations: 73.08 kB / 0.7227 GB, free: 24.2 MB / 410.8 MB Notification: Performance of pre-optimization done (n=422): time 1.133e-05/4.536, allocations: 0 / 0.7227 GB, free: 24.2 MB / 410.8 MB Notification: Performance of matching and sorting (n=487): time 0.3426/4.878, allocations: 39.62 MB / 0.7614 GB, free: 84.03 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.533e-05/4.879, allocations: 226.4 kB / 0.7616 GB, free: 83.81 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01873/4.897, allocations: 5.391 MB / 0.7669 GB, free: 83.3 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001527/4.899, allocations: 29.42 kB / 0.7669 GB, free: 83.27 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005711/4.905, allocations: 5.509 MB / 0.7723 GB, free: 80.09 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003261/4.908, allocations: 1.725 MB / 0.774 GB, free: 79.05 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002449/4.911, allocations: 2.406 kB / 0.774 GB, free: 79.05 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.001571/4.912, allocations: 0.8246 MB / 0.7748 GB, free: 78.71 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01435/4.927, allocations: 5.076 MB / 0.7798 GB, free: 78.69 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02637/4.953, allocations: 11.56 MB / 0.7911 GB, free: 70.34 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02362/4.977, allocations: 7.747 MB / 0.7986 GB, free: 70.28 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003687/4.977, allocations: 69.48 kB / 0.7987 GB, free: 70.28 MB / 410.8 MB Notification: Performance of matching and sorting (n=1568) (initialization): time 0.05782/5.035, allocations: 16.62 MB / 0.8149 GB, free: 69.23 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/5.035, allocations: 3.562 kB / 0.8149 GB, free: 69.23 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004765/5.036, allocations: 231.7 kB / 0.8151 GB, free: 69.23 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008563/5.044, allocations: 1.655 MB / 0.8168 GB, free: 69.19 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02068/5.065, allocations: 2.683 MB / 0.8194 GB, free: 68.96 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03307/5.098, allocations: 12.92 MB / 0.832 GB, free: 60.85 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02091/5.119, allocations: 380.6 kB / 0.8324 GB, free: 60.83 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004194/5.123, allocations: 0.6777 MB / 0.833 GB, free: 60.73 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1047 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1444): * Single equations (assignments): 1431 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005429/5.129, allocations: 0.672 MB / 0.8337 GB, free: 60.18 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002388/5.131, allocations: 0.5927 MB / 0.8343 GB, free: 59.85 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03276/5.164, allocations: 9.473 MB / 0.8435 GB, free: 56.55 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003074/5.164, allocations: 75.69 kB / 0.8436 GB, free: 56.55 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.917e-05/5.164, allocations: 9.719 kB / 0.8436 GB, free: 56.55 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001109/5.165, allocations: 25.27 kB / 0.8436 GB, free: 56.54 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06971/5.234, allocations: 19.2 MB / 0.8624 GB, free: 45.44 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.533e-05/5.234, allocations: 8 kB / 0.8624 GB, free: 45.43 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01083/5.245, allocations: 0.7007 MB / 0.8631 GB, free: 44.85 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007829/5.253, allocations: 1.281 MB / 0.8643 GB, free: 43.9 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001524/5.255, allocations: 20.19 kB / 0.8643 GB, free: 43.89 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02198/5.277, allocations: 11.77 MB / 0.8758 GB, free: 32.75 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/5.277, allocations: 15.38 kB / 0.8758 GB, free: 32.74 MB / 410.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2718/5.549, allocations: 18.49 MB / 0.8939 GB, free: 76.6 MB / 410.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06656/5.615, allocations: 23.03 MB / 0.9164 GB, free: 74.22 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00622/5.621, allocations: 1.392 MB / 0.9177 GB, free: 74.13 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004764/5.626, allocations: 9.125 kB / 0.9177 GB, free: 74.13 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0108/5.637, allocations: 156.3 kB / 0.9179 GB, free: 74.13 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001705/5.639, allocations: 214.6 kB / 0.9181 GB, free: 74.12 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008884/5.64, allocations: 121.7 kB / 0.9182 GB, free: 74.12 MB / 410.8 MB Notification: Performance of sort global known variables: time 0.01097/5.651, allocations: 3.61 MB / 0.9217 GB, free: 73.91 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.017/5.668, allocations: 1.778 MB / 0.9235 GB, free: 73.91 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (373): * Single equations (assignments): 360 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002021/5.67, allocations: 172.9 kB / 0.9236 GB, free: 73.82 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.03053/5.701, allocations: 12.18 MB / 0.9355 GB, free: 73.36 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/5.701, allocations: 3.125 kB / 0.9355 GB, free: 73.36 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01271/5.713, allocations: 4.823 MB / 0.9402 GB, free: 72.94 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006118/5.719, allocations: 0.5319 MB / 0.9408 GB, free: 72.91 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07078/5.79, allocations: 17.48 MB / 0.9578 GB, free: 67.93 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0339/5.824, allocations: 6.797 MB / 0.9645 GB, free: 65.95 MB / 410.8 MB Notification: Performance of SimCode: time 1.934e-06/5.824, allocations: 0 / 0.9645 GB, free: 65.95 MB / 410.8 MB