Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.563/1.563, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2463/1.81, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/1.896, allocations: 44.49 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2771/2.173, allocations: 79.91 MB / 373.8 MB, free: 7.066 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/2.173, allocations: 86.31 kB / 373.8 MB, free: 7.066 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.2018/2.375, allocations: 51.85 MB / 425.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/2.375, allocations: 12 kB / 425.7 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01311/2.388, allocations: 1.45 MB / 427.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/2.393, allocations: 1.378 MB / 428.5 MB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/2.393, allocations: 96 kB / 428.6 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/2.395, allocations: 175 kB / 428.8 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01138/2.406, allocations: 4.131 MB / 432.9 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/2.423, allocations: 6.785 MB / 439.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001854/2.423, allocations: 59.45 kB / 439.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005869/2.424, allocations: 28 kB / 439.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001409/2.425, allocations: 0.7927 MB / 440.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04772/2.473, allocations: 34.7 MB / 475.3 MB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003962/2.477, allocations: 1.635 MB / 476.9 MB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/2.479, allocations: 0.6602 MB / 477.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-05/2.479, allocations: 19.38 kB / 477.6 MB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/2.479, allocations: 50.5 kB / 477.7 MB, free: 5.176 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.218e-06/2.479, allocations: 0 / 477.7 MB, free: 5.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=112): time 0.01856/2.497, allocations: 3.138 MB / 480.8 MB, free: 2.016 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/2.498, allocations: 221.5 kB / 481 MB, free: 1.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005594/2.503, allocations: 2.403 MB / 483.4 MB, free: 15.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002457/2.503, allocations: 25.7 kB / 483.4 MB, free: 15.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/2.506, allocations: 2.374 MB / 485.8 MB, free: 12.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008586/2.507, allocations: 0.4901 MB / 486.3 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/2.507, allocations: 384 / 486.3 MB, free: 12.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005445/2.508, allocations: 0.5773 MB / 486.9 MB, free: 11.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/2.511, allocations: 1.393 MB / 488.3 MB, free: 10.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00721/2.519, allocations: 5.015 MB / 493.3 MB, free: 3.535 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/2.53, allocations: 3.394 MB / 496.7 MB, free: 144 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/2.53, allocations: 36 kB / 496.7 MB, free: 108 kB / 394.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.0206/2.55, allocations: 6.16 MB / 0.4911 GB, free: 9.941 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/2.55, allocations: 8.062 kB / 0.4911 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/2.551, allocations: 132 kB / 0.4912 GB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/2.551, allocations: 192 kB / 0.4914 GB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008753/2.56, allocations: 1.392 MB / 0.4928 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002617/2.56, allocations: 262.9 kB / 0.493 GB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005727/2.566, allocations: 0.6134 MB / 0.4936 GB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/2.567, allocations: 372 kB / 0.494 GB, free: 6.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 695 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009338/2.568, allocations: 420.1 kB / 0.4944 GB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006301/2.569, allocations: 233 kB / 0.4946 GB, free: 6.328 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/2.573, allocations: 0.9747 MB / 0.4956 GB, free: 5.344 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.347e-05/2.573, allocations: 8 kB / 0.4956 GB, free: 5.336 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/2.573, allocations: 7.906 kB / 0.4956 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/2.573, allocations: 11.86 kB / 0.4956 GB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007739/2.581, allocations: 2.535 MB / 0.4981 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/2.581, allocations: 288 / 0.4981 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002846/2.583, allocations: 267.7 kB / 0.4983 GB, free: 2.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004223/2.584, allocations: 77.62 kB / 0.4984 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/2.584, allocations: 39.91 kB / 0.4984 GB, free: 2.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1312/2.715, allocations: 2.974 MB / 0.5013 GB, free: 154 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/2.715, allocations: 11.27 kB / 0.5013 GB, free: 154 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007893/2.723, allocations: 3.266 MB / 0.5045 GB, free: 153.3 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009295/2.733, allocations: 4.39 MB / 0.5088 GB, free: 152.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006654/2.733, allocations: 296.9 kB / 0.5091 GB, free: 152 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000443/2.734, allocations: 15.14 kB / 0.5091 GB, free: 152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/2.735, allocations: 15.08 kB / 0.5091 GB, free: 152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/2.735, allocations: 51.83 kB / 0.5092 GB, free: 152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/2.736, allocations: 52.38 kB / 0.5092 GB, free: 152 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003333/2.739, allocations: 1.554 MB / 0.5107 GB, free: 151.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006334/2.745, allocations: 0.725 MB / 0.5115 GB, free: 151.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006298/2.746, allocations: 179.4 kB / 0.5116 GB, free: 151.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006886/2.753, allocations: 3.212 MB / 0.5148 GB, free: 151.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/2.753, allocations: 0 / 0.5148 GB, free: 151.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/2.755, allocations: 0.8263 MB / 0.5156 GB, free: 151.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/2.756, allocations: 187 kB / 0.5157 GB, free: 151.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/2.771, allocations: 6.072 MB / 0.5217 GB, free: 150 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004809/2.776, allocations: 2.709 MB / 0.5243 GB, free: 149.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/2.776, allocations: 2.953 kB / 0.5243 GB, free: 149.2 MB / 410.7 MB