Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.878/1.878, allocations: 194.9 MB / 202.6 MB, free: 6.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2631/2.141, allocations: 46.83 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/2.234, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/2.549, allocations: 80.58 MB / 374.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/2.549, allocations: 86.5 kB / 374.6 MB, free: 7.02 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.3218/2.871, allocations: 60.54 MB / 435.1 MB, free: 2.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/2.871, allocations: 8 kB / 435.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.021/2.892, allocations: 1.822 MB / 436.9 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02311/2.915, allocations: 4.796 MB / 441.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/2.915, allocations: 72 kB / 441.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00157/2.917, allocations: 143.9 kB / 442 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01309/2.93, allocations: 4.185 MB / 446.1 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/2.948, allocations: 6.437 MB / 452.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001665/2.948, allocations: 47.56 kB / 452.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000662/2.949, allocations: 24 kB / 452.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002214/2.951, allocations: 0.7764 MB / 453.4 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06085/3.012, allocations: 33.39 MB / 486.8 MB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006107/3.018, allocations: 2.276 MB / 489.1 MB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003844/3.022, allocations: 1.352 MB / 490.4 MB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002189/3.024, allocations: 0.6346 MB / 491.1 MB, free: 8.031 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/3.024, allocations: 43.62 kB / 491.1 MB, free: 7.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.989e-06/3.024, allocations: 0 / 491.1 MB, free: 7.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=136): time 0.1341/3.158, allocations: 22.85 MB / 0.5019 GB, free: 0.957 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/3.158, allocations: 166.8 kB / 0.5021 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1645/3.323, allocations: 2.327 MB / 0.5043 GB, free: 157.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006092/3.324, allocations: 25.7 kB / 0.5044 GB, free: 157.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002525/3.326, allocations: 1.998 MB / 0.5063 GB, free: 156.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001536/3.328, allocations: 0.5496 MB / 0.5069 GB, free: 156.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009256/3.329, allocations: 0 / 0.5069 GB, free: 156.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006053/3.329, allocations: 0.5085 MB / 0.5074 GB, free: 156.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008539/3.338, allocations: 2.083 MB / 0.5094 GB, free: 156.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01142/3.349, allocations: 5.062 MB / 0.5143 GB, free: 152.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05052/3.4, allocations: 6.979 MB / 0.5211 GB, free: 152.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001246/3.4, allocations: 31.62 kB / 0.5212 GB, free: 152.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.06654/3.467, allocations: 11.89 MB / 0.5328 GB, free: 151.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/3.467, allocations: 3.719 kB / 0.5328 GB, free: 151.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05059/3.517, allocations: 7.758 MB / 0.5404 GB, free: 150.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02057/3.538, allocations: 2.036 MB / 0.5424 GB, free: 150.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008554/3.547, allocations: 1.143 MB / 0.5435 GB, free: 150.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/3.56, allocations: 7.654 MB / 0.5509 GB, free: 144.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009716/3.57, allocations: 356.2 kB / 0.5513 GB, free: 144.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001517/3.571, allocations: 316.2 kB / 0.5516 GB, free: 144.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 487 * Number of states: 0 () * Number of discrete variables: 15 (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 (596): * Single equations (assignments): 581 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001294/3.573, allocations: 359.7 kB / 0.5519 GB, free: 144.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008412/3.573, allocations: 236.2 kB / 0.5522 GB, free: 144.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/3.575, allocations: 346 kB / 0.5525 GB, free: 144 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05135/3.626, allocations: 7.605 MB / 0.5599 GB, free: 139.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/3.626, allocations: 8 kB / 0.5599 GB, free: 139.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.892e-05/3.626, allocations: 7.547 kB / 0.5599 GB, free: 139.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/3.641, allocations: 4.644 MB / 0.5645 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/3.641, allocations: 4 kB / 0.5645 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003102/3.644, allocations: 213.2 kB / 0.5647 GB, free: 136 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02006/3.664, allocations: 2.061 MB / 0.5667 GB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005896/3.665, allocations: 35.58 kB / 0.5667 GB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0167/3.681, allocations: 8.416 MB / 0.5749 GB, free: 126.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002985/3.684, allocations: 2.716 MB / 0.5776 GB, free: 123.9 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07065/3.755, allocations: 10.86 MB / 0.5882 GB, free: 115 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07135/3.827, allocations: 13.36 MB / 0.6012 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/3.828, allocations: 309.9 kB / 0.6015 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/3.83, allocations: 19.98 kB / 0.6016 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004626/3.835, allocations: 135.8 kB / 0.6017 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000491/3.835, allocations: 63.88 kB / 0.6017 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/3.835, allocations: 51.97 kB / 0.6018 GB, free: 101.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003726/3.839, allocations: 1.553 MB / 0.6033 GB, free: 100.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00803/3.847, allocations: 0.841 MB / 0.6041 GB, free: 99.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET140462088232553.x[3],$STATESET140462088232553.x[2],$STATESET140462088232553.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET140462088232552.x[3],$STATESET140462088232552.x[2],$STATESET140462088232552.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * 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): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008024/3.848, allocations: 184.4 kB / 0.6043 GB, free: 99.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0202/3.868, allocations: 6.094 MB / 0.6103 GB, free: 92.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/3.868, allocations: 0 / 0.6103 GB, free: 92.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01144/3.88, allocations: 2.966 MB / 0.6132 GB, free: 89.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002805/3.883, allocations: 228.2 kB / 0.6134 GB, free: 89.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/3.906, allocations: 6.841 MB / 0.6201 GB, free: 82.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005753/3.912, allocations: 2.62 MB / 0.6226 GB, free: 80.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/3.912, allocations: 2.344 kB / 0.6226 GB, free: 80.15 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat