Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_1_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.595/1.595, allocations: 171.2 MB / 178.1 MB, free: 8.324 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2061/1.801, allocations: 41.12 MB / 219.3 MB, free: 11.17 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/1.895, allocations: 38.76 MB / 258 MB, free: 4.348 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2935/2.189, allocations: 74.8 MB / 332.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004353/2.189, allocations: 83.95 kB / 332.9 MB, free: 13.26 MB / 282.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.2593/2.449, allocations: 51.86 MB / 384.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/2.449, allocations: 16 kB / 384.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01939/2.468, allocations: 1.455 MB / 386.2 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005131/2.473, allocations: 1.376 MB / 387.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/2.474, allocations: 99.91 kB / 387.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/2.475, allocations: 179.9 kB / 387.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01253/2.488, allocations: 4.114 MB / 392 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/2.511, allocations: 6.795 MB / 398.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004607/2.511, allocations: 55.47 kB / 398.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002054/2.513, allocations: 28 kB / 398.9 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002913/2.516, allocations: 0.7895 MB / 399.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1818/2.698, allocations: 34.69 MB / 434.3 MB, free: 105.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003626/2.702, allocations: 1.638 MB / 436 MB, free: 104.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/2.703, allocations: 0.6656 MB / 436.6 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-05/2.704, allocations: 21.86 kB / 436.7 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/2.704, allocations: 54.06 kB / 436.7 MB, free: 104.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 4.499e-06/2.704, allocations: 3.781 kB / 436.7 MB, free: 104.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01797/2.722, allocations: 3.131 MB / 439.9 MB, free: 104.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/2.722, allocations: 219.6 kB / 440.1 MB, free: 104 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005765/2.727, allocations: 2.401 MB / 442.5 MB, free: 103.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002537/2.728, allocations: 29.58 kB / 442.5 MB, free: 103.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/2.73, allocations: 2.367 MB / 444.9 MB, free: 102.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008145/2.731, allocations: 0.495 MB / 445.4 MB, free: 102.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005921/2.731, allocations: 0 / 445.4 MB, free: 102.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005182/2.732, allocations: 0.5788 MB / 445.9 MB, free: 101.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003928/2.736, allocations: 1.393 MB / 447.3 MB, free: 101.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/2.742, allocations: 5.018 MB / 452.4 MB, free: 97.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.753, allocations: 3.384 MB / 455.7 MB, free: 97.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001326/2.753, allocations: 43.31 kB / 455.8 MB, free: 97.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02334/2.777, allocations: 6.162 MB / 461.9 MB, free: 95.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/2.777, allocations: 5.812 kB / 461.9 MB, free: 95.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004249/2.777, allocations: 131.4 kB / 462.1 MB, free: 95.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/2.777, allocations: 193.4 kB / 462.3 MB, free: 95.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009689/2.787, allocations: 1.398 MB / 463.7 MB, free: 95.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003555/2.788, allocations: 251.5 kB / 463.9 MB, free: 95.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005936/2.794, allocations: 0.6183 MB / 464.5 MB, free: 95.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001414/2.795, allocations: 369.5 kB / 464.9 MB, free: 94.98 MB / 346.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.001978/2.797, allocations: 419.6 kB / 465.3 MB, free: 94.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000704/2.798, allocations: 232.9 kB / 465.5 MB, free: 94.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/2.802, allocations: 0.9789 MB / 466.5 MB, free: 94.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.423e-05/2.802, allocations: 10.06 kB / 466.5 MB, free: 94.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.437e-05/2.802, allocations: 11.06 kB / 466.5 MB, free: 94.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/2.802, allocations: 8.453 kB / 466.5 MB, free: 94.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008125/2.81, allocations: 2.526 MB / 469.1 MB, free: 93.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/2.81, allocations: 4.75 kB / 469.1 MB, free: 93.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/2.814, allocations: 265.5 kB / 469.3 MB, free: 93.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004397/2.814, allocations: 73.09 kB / 469.4 MB, free: 93.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002102/2.814, allocations: 33.5 kB / 469.4 MB, free: 93.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005804/2.82, allocations: 2.99 MB / 472.4 MB, free: 90.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.376e-05/2.82, allocations: 4 kB / 472.4 MB, free: 90.54 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008492/2.829, allocations: 3.277 MB / 475.7 MB, free: 87.64 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009715/2.839, allocations: 4.396 MB / 480.1 MB, free: 83.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007967/2.839, allocations: 291.7 kB / 480.4 MB, free: 83.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005351/2.84, allocations: 19.89 kB / 480.4 MB, free: 83.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/2.842, allocations: 11.94 kB / 480.4 MB, free: 83.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/2.842, allocations: 56.02 kB / 480.5 MB, free: 83.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/2.842, allocations: 52.16 kB / 480.5 MB, free: 83.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003591/2.846, allocations: 1.552 MB / 482.1 MB, free: 81.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006922/2.852, allocations: 0.725 MB / 482.8 MB, free: 81.23 MB / 346.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.0006213/2.853, allocations: 173.4 kB / 483 MB, free: 81.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007531/2.861, allocations: 3.208 MB / 486.2 MB, free: 78.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/2.861, allocations: 0 / 486.2 MB, free: 78.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/2.863, allocations: 0.8193 MB / 487 MB, free: 77.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/2.864, allocations: 185.7 kB / 487.2 MB, free: 77.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/2.882, allocations: 6.078 MB / 493.2 MB, free: 71.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006377/2.889, allocations: 2.707 MB / 496 MB, free: 69.72 MB / 346.7 MB Notification: Performance of SimCode: time 1.723e-06/2.889, allocations: 0 / 496 MB, free: 69.72 MB / 346.7 MB