Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.794/1.794, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2344/2.029, allocations: 46.83 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/2.123, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3072/2.431, allocations: 79.92 MB / 373.8 MB, free: 7.051 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/2.431, allocations: 83.58 kB / 373.9 MB, free: 7.051 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.2317/2.663, allocations: 51.85 MB / 425.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/2.663, allocations: 8 kB / 425.8 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01518/2.678, allocations: 1.45 MB / 427.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005634/2.684, allocations: 1.381 MB / 428.6 MB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/2.684, allocations: 100 kB / 428.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/2.685, allocations: 174.7 kB / 428.9 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0128/2.698, allocations: 4.119 MB / 433 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/2.716, allocations: 6.789 MB / 439.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001999/2.717, allocations: 55.47 kB / 439.8 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006557/2.717, allocations: 36 kB / 439.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001613/2.719, allocations: 0.7929 MB / 440.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05355/2.772, allocations: 34.69 MB / 475.4 MB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004608/2.777, allocations: 1.635 MB / 477 MB, free: 5.863 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/2.779, allocations: 0.6663 MB / 477.7 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.207e-05/2.779, allocations: 23.69 kB / 477.7 MB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/2.779, allocations: 50.5 kB / 477.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 5.07e-06/2.779, allocations: 0 / 477.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=112): time 0.02135/2.8, allocations: 3.145 MB / 480.9 MB, free: 1.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/2.801, allocations: 213.6 kB / 481.1 MB, free: 1.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005966/2.807, allocations: 2.406 MB / 483.5 MB, free: 15.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002436/2.807, allocations: 26.08 kB / 483.5 MB, free: 15.22 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/2.809, allocations: 2.366 MB / 485.9 MB, free: 12.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008763/2.81, allocations: 0.4979 MB / 486.4 MB, free: 12.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003444/2.811, allocations: 0 / 486.4 MB, free: 12.31 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005949/2.811, allocations: 0.5773 MB / 487 MB, free: 11.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004049/2.815, allocations: 1.405 MB / 488.4 MB, free: 10.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007483/2.823, allocations: 5.011 MB / 493.4 MB, free: 3.449 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/2.835, allocations: 3.386 MB / 496.8 MB, free: 60 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/2.835, allocations: 36 kB / 496.8 MB, free: 24 kB / 394.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02145/2.856, allocations: 6.149 MB / 0.4912 GB, free: 9.871 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/2.857, allocations: 4 kB / 0.4912 GB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001978/2.857, allocations: 132.8 kB / 0.4913 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002864/2.857, allocations: 192 kB / 0.4915 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009378/2.866, allocations: 1.4 MB / 0.4928 GB, free: 8.148 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002748/2.867, allocations: 263 kB / 0.4931 GB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005887/2.873, allocations: 0.6095 MB / 0.4937 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/2.874, allocations: 372 kB / 0.494 GB, free: 6.91 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.0009241/2.875, allocations: 424.1 kB / 0.4944 GB, free: 6.484 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/2.875, allocations: 229 kB / 0.4947 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004176/2.88, allocations: 0.9824 MB / 0.4956 GB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.411e-05/2.88, allocations: 8 kB / 0.4956 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.153e-05/2.88, allocations: 8.188 kB / 0.4956 GB, free: 5.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/2.88, allocations: 3.984 kB / 0.4956 GB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008023/2.888, allocations: 2.534 MB / 0.4981 GB, free: 2.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/2.888, allocations: 3.984 kB / 0.4981 GB, free: 2.672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/2.891, allocations: 271.7 kB / 0.4984 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/2.891, allocations: 65.67 kB / 0.4984 GB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002611/2.892, allocations: 31.97 kB / 0.4985 GB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1365/3.028, allocations: 2.993 MB / 0.5014 GB, free: 153.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/3.028, allocations: 5.031 kB / 0.5014 GB, free: 153.7 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00898/3.037, allocations: 3.27 MB / 0.5046 GB, free: 153.1 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0103/3.048, allocations: 4.395 MB / 0.5089 GB, free: 152 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/3.048, allocations: 285.4 kB / 0.5092 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004913/3.049, allocations: 19.3 kB / 0.5092 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/3.05, allocations: 11.67 kB / 0.5092 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/3.051, allocations: 60.48 kB / 0.5092 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/3.051, allocations: 52.17 kB / 0.5093 GB, free: 151.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003406/3.054, allocations: 1.551 MB / 0.5108 GB, free: 151.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006848/3.061, allocations: 0.7289 MB / 0.5115 GB, free: 151.6 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.000615/3.062, allocations: 176.6 kB / 0.5117 GB, free: 151.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007278/3.069, allocations: 3.213 MB / 0.5148 GB, free: 151.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/3.069, allocations: 0 / 0.5148 GB, free: 151.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/3.071, allocations: 0.824 MB / 0.5156 GB, free: 151.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/3.073, allocations: 198.2 kB / 0.5158 GB, free: 151.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/3.088, allocations: 6.07 MB / 0.5217 GB, free: 149.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005079/3.094, allocations: 2.703 MB / 0.5244 GB, free: 149 MB / 410.7 MB Notification: Performance of SimCode: time 1.412e-06/3.094, allocations: 6.297 kB / 0.5244 GB, free: 149 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.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat