Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_Torque2",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.928/1.928, allocations: 209.3 MB / 216.3 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2537/2.181, allocations: 51.04 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/2.296, allocations: 48.69 MB / 316 MB, free: 4.359 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/2.696, allocations: 97.99 MB / 414 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/2.697, allocations: 81.69 kB / 414.1 MB, free: 11.04 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: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 1.328/4.025, allocations: 244.4 MB / 0.643 GB, free: 1.898 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/4.025, allocations: 8 kB / 0.643 GB, free: 1.891 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4941/4.519, allocations: 12.38 MB / 0.6551 GB, free: 70.9 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05238/4.572, allocations: 13.41 MB / 0.6682 GB, free: 70.3 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008811/4.572, allocations: 417.5 kB / 0.6686 GB, free: 70.3 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007085/4.58, allocations: 0.7427 MB / 0.6693 GB, free: 70.29 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05625/4.636, allocations: 18.08 MB / 0.687 GB, free: 70.23 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0867/4.723, allocations: 26.54 MB / 0.7129 GB, free: 64.22 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001295/4.724, allocations: 145.9 kB / 0.713 GB, free: 64.21 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007593/4.732, allocations: 65.53 kB / 0.7131 GB, free: 64.21 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006423/4.738, allocations: 3.048 MB / 0.7161 GB, free: 64.17 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4969/5.235, allocations: 123.9 MB / 0.8371 GB, free: 34.75 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02616/5.261, allocations: 11.47 MB / 0.8483 GB, free: 33.45 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0167/5.278, allocations: 8.183 MB / 0.8563 GB, free: 33.37 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06791/5.346, allocations: 22.24 MB / 0.878 GB, free: 29.75 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.575e-05/5.346, allocations: 95.66 kB / 0.8781 GB, free: 29.71 MB / 458.8 MB Notification: Performance of pre-optimization done (n=510): time 1.031e-05/5.346, allocations: 0 / 0.8781 GB, free: 29.71 MB / 458.8 MB Notification: Performance of matching and sorting (n=596): time 0.2427/5.589, allocations: 56.81 MB / 0.9336 GB, free: 10.75 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/5.589, allocations: 372.1 kB / 0.934 GB, free: 10.37 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02899/5.618, allocations: 8.305 MB / 0.9421 GB, free: 5.973 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002019/5.62, allocations: 27.39 kB / 0.9421 GB, free: 5.941 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.009858/5.63, allocations: 7.872 MB / 0.9498 GB, free: 14.89 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00807/5.638, allocations: 2.144 MB / 0.9519 GB, free: 12.96 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004267/5.643, allocations: 3.219 kB / 0.9519 GB, free: 12.96 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.003557/5.646, allocations: 0.9849 MB / 0.9528 GB, free: 12.16 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02167/5.668, allocations: 6.6 MB / 0.9593 GB, free: 6.242 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0326/5.701, allocations: 15.25 MB / 0.9742 GB, free: 4.027 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2901/5.991, allocations: 9.962 MB / 0.9839 GB, free: 112.7 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004751/5.991, allocations: 86.25 kB / 0.984 GB, free: 112.7 MB / 490.8 MB Notification: Performance of matching and sorting (n=2067) (initialization): time 0.0872/6.078, allocations: 22.76 MB / 1.006 GB, free: 112.1 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/6.079, allocations: 8.266 kB / 1.006 GB, free: 112.1 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007984/6.079, allocations: 310 kB / 1.007 GB, free: 112.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01862/6.098, allocations: 3.144 MB / 1.01 GB, free: 112.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02872/6.127, allocations: 3.739 MB / 1.013 GB, free: 111.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06215/6.189, allocations: 20.51 MB / 1.033 GB, free: 106.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03067/6.22, allocations: 0.526 MB / 1.034 GB, free: 106.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005528/6.225, allocations: 0.9086 MB / 1.035 GB, free: 106.5 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1947): * Single equations (assignments): 1940 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008088/6.233, allocations: 0.8927 MB / 1.036 GB, free: 106.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005878/6.239, allocations: 0.8965 MB / 1.036 GB, free: 106.1 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05779/6.297, allocations: 13.46 MB / 1.05 GB, free: 105.8 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002608/6.298, allocations: 60.62 kB / 1.05 GB, free: 105.8 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001366/6.298, allocations: 16.5 kB / 1.05 GB, free: 105.8 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002184/6.298, allocations: 31.31 kB / 1.05 GB, free: 105.8 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1229/6.421, allocations: 27.36 MB / 1.076 GB, free: 99.38 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001/6.421, allocations: 3.75 kB / 1.076 GB, free: 99.38 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01554/6.437, allocations: 1.043 MB / 1.077 GB, free: 99.3 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01914/6.456, allocations: 2.621 MB / 1.08 GB, free: 98.74 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001983/6.458, allocations: 15.06 kB / 1.08 GB, free: 98.73 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05478/6.513, allocations: 19.26 MB / 1.099 GB, free: 85.19 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/6.513, allocations: 7.125 kB / 1.099 GB, free: 85.18 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07849/6.591, allocations: 21.68 MB / 1.12 GB, free: 66.27 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3558/6.947, allocations: 32.05 MB / 1.151 GB, free: 109 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01054/6.958, allocations: 1.892 MB / 1.153 GB, free: 108.9 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005375/6.963, allocations: 5.375 kB / 1.153 GB, free: 108.9 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01175/6.975, allocations: 215.5 kB / 1.153 GB, free: 108.9 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002656/6.978, allocations: 274 kB / 1.154 GB, free: 108.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002079/6.98, allocations: 148.4 kB / 1.154 GB, free: 108.9 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.02362/7.003, allocations: 5.636 MB / 1.159 GB, free: 108.7 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02828/7.032, allocations: 2.636 MB / 1.162 GB, free: 108.7 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 500 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.002436/7.034, allocations: 181.7 kB / 1.162 GB, free: 108.6 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.04706/7.081, allocations: 16.23 MB / 1.178 GB, free: 108.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/7.081, allocations: 2.938 kB / 1.178 GB, free: 108.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02256/7.104, allocations: 6.586 MB / 1.184 GB, free: 107.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01512/7.119, allocations: 0.942 MB / 1.185 GB, free: 107.6 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.118/7.237, allocations: 25.08 MB / 1.21 GB, free: 103.4 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03953/7.277, allocations: 9.613 MB / 1.219 GB, free: 102.4 MB / 490.8 MB Notification: Performance of SimCode: time 2.174e-06/7.277, allocations: 0 / 1.219 GB, free: 102.4 MB / 490.8 MB