Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_Torque",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 1.91/1.91, allocations: 209.3 MB / 216.3 MB, free: 6.793 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2466/2.156, allocations: 51.03 MB / 267.3 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/2.267, allocations: 48.69 MB / 316 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/2.642, allocations: 94.08 MB / 410.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/2.642, allocations: 79.2 kB / 410.1 MB, free: 14.94 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.7932/3.435, allocations: 134.1 MB / 0.5315 GB, free: 78.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/3.435, allocations: 9.688 kB / 0.5315 GB, free: 78.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05157/3.487, allocations: 6.765 MB / 0.5381 GB, free: 77.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02958/3.517, allocations: 7.502 MB / 0.5455 GB, free: 74.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005415/3.517, allocations: 221.8 kB / 0.5457 GB, free: 74.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003969/3.521, allocations: 395.2 kB / 0.5461 GB, free: 74.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03689/3.558, allocations: 9.534 MB / 0.5554 GB, free: 71.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04141/3.6, allocations: 14.6 MB / 0.5696 GB, free: 56.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004843/3.6, allocations: 87.12 kB / 0.5697 GB, free: 56.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003289/3.604, allocations: 44 kB / 0.5697 GB, free: 56.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003141/3.607, allocations: 1.654 MB / 0.5714 GB, free: 55.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3217/3.929, allocations: 70.98 MB / 0.6407 GB, free: 127.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/3.94, allocations: 5.536 MB / 0.6461 GB, free: 127 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007671/3.947, allocations: 3.82 MB / 0.6498 GB, free: 126.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03155/3.979, allocations: 10.11 MB / 0.6597 GB, free: 125.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.783e-05/3.979, allocations: 66.3 kB / 0.6598 GB, free: 125.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.963e-06/3.979, allocations: 0 / 0.6598 GB, free: 125.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=298): time 0.09875/4.078, allocations: 25.62 MB / 0.6848 GB, free: 117 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/4.078, allocations: 242.2 kB / 0.685 GB, free: 116.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01618/4.094, allocations: 4.887 MB / 0.6898 GB, free: 114.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/4.095, allocations: 27.92 kB / 0.6898 GB, free: 114.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00406/4.099, allocations: 4.514 MB / 0.6942 GB, free: 111.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/4.102, allocations: 1.11 MB / 0.6953 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001641/4.103, allocations: 0 / 0.6953 GB, free: 110.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008861/4.104, allocations: 0.6998 MB / 0.696 GB, free: 110.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00952/4.114, allocations: 3.492 MB / 0.6994 GB, free: 108.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01885/4.133, allocations: 8.936 MB / 0.7081 GB, free: 100.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0149/4.148, allocations: 5.56 MB / 0.7135 GB, free: 98.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002822/4.148, allocations: 55.59 kB / 0.7136 GB, free: 98.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=1214) (initialization): time 0.04099/4.189, allocations: 12.54 MB / 0.7258 GB, free: 90.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/4.189, allocations: 8 kB / 0.7258 GB, free: 90.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003601/4.19, allocations: 195.8 kB / 0.726 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007814/4.197, allocations: 1.63 MB / 0.7276 GB, free: 88.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01512/4.213, allocations: 2.144 MB / 0.7297 GB, free: 86.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02796/4.241, allocations: 10.26 MB / 0.7397 GB, free: 77.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01233/4.253, allocations: 318.2 kB / 0.74 GB, free: 77.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/4.256, allocations: 0.5557 MB / 0.7406 GB, free: 76.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1142): * Single equations (assignments): 1137 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003885/4.26, allocations: 0.5887 MB / 0.7412 GB, free: 76.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00165/4.261, allocations: 0.509 MB / 0.7417 GB, free: 75.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/4.285, allocations: 6.357 MB / 0.7479 GB, free: 70.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001272/4.285, allocations: 28 kB / 0.7479 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/4.285, allocations: 12 kB / 0.7479 GB, free: 70.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.548e-05/4.285, allocations: 14.53 kB / 0.7479 GB, free: 70.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05079/4.336, allocations: 13.24 MB / 0.7608 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-05/4.336, allocations: 4 kB / 0.7608 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009117/4.345, allocations: 472.7 kB / 0.7613 GB, free: 59.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007346/4.352, allocations: 1.318 MB / 0.7626 GB, free: 58.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008664/4.353, allocations: 8 kB / 0.7626 GB, free: 58.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02733/4.381, allocations: 9.619 MB / 0.772 GB, free: 49.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/4.381, allocations: 3.906 kB / 0.772 GB, free: 49.86 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02958/4.41, allocations: 10.69 MB / 0.7824 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2168/4.627, allocations: 14.9 MB / 0.797 GB, free: 117.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004351/4.631, allocations: 1.017 MB / 0.798 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002334/4.634, allocations: 2.75 kB / 0.798 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006117/4.64, allocations: 103.8 kB / 0.7981 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001229/4.641, allocations: 133.6 kB / 0.7982 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005903/4.642, allocations: 75.02 kB / 0.7983 GB, free: 117.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.01009/4.652, allocations: 3.3 MB / 0.8015 GB, free: 117.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01353/4.666, allocations: 1.412 MB / 0.8029 GB, free: 117.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 236 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/4.667, allocations: 150.3 kB / 0.803 GB, free: 117.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02301/4.69, allocations: 8.541 MB / 0.8114 GB, free: 116.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/4.69, allocations: 2.844 kB / 0.8114 GB, free: 116.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01035/4.7, allocations: 3.203 MB / 0.8145 GB, free: 116.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005942/4.706, allocations: 0.5185 MB / 0.815 GB, free: 116.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04791/4.754, allocations: 13.04 MB / 0.8277 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01783/4.772, allocations: 5.442 MB / 0.833 GB, free: 113.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.864e-06/4.772, allocations: 0 / 0.833 GB, free: 113.6 MB / 426.7 MB