Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance2",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.547/2.547, allocations: 235 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1598/2.707, allocations: 57.21 MB / 299.1 MB, free: 468 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/3.008, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/3.419, allocations: 97.62 MB / 451.6 MB, free: 32.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003527/3.42, allocations: 77.7 kB / 451.7 MB, free: 32.57 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.3943/3.814, allocations: 79.87 MB / 0.5191 GB, free: 3.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/3.814, allocations: 12 kB / 0.5191 GB, free: 3.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03761/3.852, allocations: 3.968 MB / 0.523 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01976/3.872, allocations: 4.416 MB / 0.5273 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/3.872, allocations: 124 kB / 0.5274 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002373/3.874, allocations: 219.8 kB / 0.5276 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01786/3.892, allocations: 5.367 MB / 0.5329 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/3.92, allocations: 8.479 MB / 0.5411 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003017/3.92, allocations: 51.47 kB / 0.5412 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002809/3.923, allocations: 32 kB / 0.5412 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002984/3.926, allocations: 0.9505 MB / 0.5421 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08815/4.014, allocations: 41.48 MB / 0.5827 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005731/4.02, allocations: 2.549 MB / 0.5851 GB, free: 13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/4.023, allocations: 1.188 MB / 0.5863 GB, free: 11.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0162/4.04, allocations: 4.441 MB / 0.5906 GB, free: 7.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.377e-05/4.04, allocations: 46.91 kB / 0.5907 GB, free: 7.105 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 9.197e-06/4.04, allocations: 0 / 0.5907 GB, free: 7.105 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.05113/4.091, allocations: 8.816 MB / 0.5993 GB, free: 14.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/4.091, allocations: 204.5 kB / 0.5995 GB, free: 13.95 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01365/4.105, allocations: 3.058 MB / 0.6025 GB, free: 10.89 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003709/4.105, allocations: 29.7 kB / 0.6025 GB, free: 10.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004856/4.11, allocations: 2.897 MB / 0.6053 GB, free: 7.914 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001315/4.112, allocations: 0.4941 MB / 0.6058 GB, free: 7.414 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/4.113, allocations: 3.938 kB / 0.6058 GB, free: 7.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00121/4.114, allocations: 0.5541 MB / 0.6064 GB, free: 6.848 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007706/4.122, allocations: 1.562 MB / 0.6079 GB, free: 5.277 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2259/4.348, allocations: 5.517 MB / 0.6133 GB, free: 150.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/4.358, allocations: 2.963 MB / 0.6162 GB, free: 150.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001806/4.358, allocations: 41.12 kB / 0.6162 GB, free: 150.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.02672/4.385, allocations: 6.209 MB / 0.6223 GB, free: 149.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/4.385, allocations: 3.781 kB / 0.6223 GB, free: 149.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003637/4.385, allocations: 150.2 kB / 0.6224 GB, free: 149.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/4.387, allocations: 378.4 kB / 0.6228 GB, free: 149.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01272/4.4, allocations: 1.373 MB / 0.6241 GB, free: 149.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006348/4.406, allocations: 2.593 MB / 0.6266 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/4.417, allocations: 178.1 kB / 0.6268 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002103/4.419, allocations: 381 kB / 0.6272 GB, free: 148.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (742): * Single equations (assignments): 738 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003027/4.422, allocations: 454.5 kB / 0.6276 GB, free: 148.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/4.423, allocations: 296 kB / 0.6279 GB, free: 148.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007432/4.431, allocations: 1.423 MB / 0.6293 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001245/4.431, allocations: 10.81 kB / 0.6293 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/4.431, allocations: 4.312 kB / 0.6293 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.377e-05/4.431, allocations: 7.141 kB / 0.6293 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02176/4.453, allocations: 4.088 MB / 0.6333 GB, free: 147.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-05/4.453, allocations: 0 / 0.6333 GB, free: 147.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00303/4.456, allocations: 171.2 kB / 0.6335 GB, free: 147.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/4.457, allocations: 150.9 kB / 0.6336 GB, free: 147.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003408/4.458, allocations: 13.77 kB / 0.6336 GB, free: 147.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004738/4.462, allocations: 2.03 MB / 0.6356 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/4.462, allocations: 0 / 0.6356 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0103/4.473, allocations: 3.242 MB / 0.6388 GB, free: 146 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0141/4.487, allocations: 4.687 MB / 0.6433 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/4.489, allocations: 482.1 kB / 0.6438 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/4.491, allocations: 0 / 0.6438 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003654/4.494, allocations: 28.36 kB / 0.6438 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005211/4.495, allocations: 57.22 kB / 0.6439 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/4.495, allocations: 39.64 kB / 0.6439 GB, free: 144.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008215/4.504, allocations: 2.036 MB / 0.6459 GB, free: 144.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01224/4.516, allocations: 0.7165 MB / 0.6466 GB, free: 144.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009713/4.517, allocations: 132.5 kB / 0.6467 GB, free: 144.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01329/4.53, allocations: 3.743 MB / 0.6504 GB, free: 144 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/4.53, allocations: 1.969 kB / 0.6504 GB, free: 144 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003026/4.533, allocations: 0.8969 MB / 0.6513 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003914/4.537, allocations: 277.4 kB / 0.6515 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02932/4.567, allocations: 6.171 MB / 0.6576 GB, free: 142.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01287/4.58, allocations: 3.284 MB / 0.6608 GB, free: 141.9 MB / 474.7 MB Notification: Performance of SimCode: time 4.127e-06/4.58, allocations: 0 / 0.6608 GB, free: 141.9 MB / 474.7 MB