Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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 2.864/2.864, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2861/3.151, allocations: 46.84 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/3.302, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5487/3.851, allocations: 86.2 MB / 380.1 MB, free: 6.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004526/3.851, allocations: 85.08 kB / 380.2 MB, free: 6.008 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.6105/4.462, allocations: 72.8 MB / 453 MB, free: 1.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.493e-05/4.462, allocations: 12 kB / 453 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03106/4.493, allocations: 1.758 MB / 454.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03214/4.525, allocations: 4.473 MB / 459.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000332/4.525, allocations: 119.9 kB / 459.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002444/4.528, allocations: 212 kB / 459.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01992/4.548, allocations: 5.339 MB / 464.9 MB, free: 5.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03334/4.581, allocations: 8.248 MB / 473.1 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004553/4.582, allocations: 55.55 kB / 473.2 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002426/4.584, allocations: 28 kB / 473.2 MB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003241/4.588, allocations: 0.9339 MB / 474.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2704/4.858, allocations: 42.84 MB / 0.5049 GB, free: 103.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005545/4.864, allocations: 2.331 MB / 0.5072 GB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003733/4.867, allocations: 1.45 MB / 0.5086 GB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01551/4.883, allocations: 4.385 MB / 0.5129 GB, free: 102 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.787e-05/4.883, allocations: 49.12 kB / 0.5129 GB, free: 101.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=118): time 6.192e-06/4.883, allocations: 0 / 0.5129 GB, free: 101.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.03892/4.922, allocations: 8.387 MB / 0.5211 GB, free: 99.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/4.922, allocations: 144.6 kB / 0.5212 GB, free: 99.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008847/4.931, allocations: 2.803 MB / 0.524 GB, free: 99.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004113/4.932, allocations: 27.78 kB / 0.524 GB, free: 99.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002728/4.934, allocations: 2.648 MB / 0.5266 GB, free: 97.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/4.936, allocations: 0.512 MB / 0.5271 GB, free: 97.26 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000786/4.936, allocations: 3.375 kB / 0.5271 GB, free: 97.26 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004792/4.937, allocations: 0.5386 MB / 0.5276 GB, free: 96.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00559/4.942, allocations: 1.816 MB / 0.5294 GB, free: 96.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009208/4.952, allocations: 5.336 MB / 0.5346 GB, free: 92.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/4.962, allocations: 3.1 MB / 0.5376 GB, free: 92.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001589/4.962, allocations: 45.34 kB / 0.5377 GB, free: 92.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.04925/5.011, allocations: 7.432 MB / 0.5449 GB, free: 90.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/5.011, allocations: 7.562 kB / 0.5449 GB, free: 90.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03104/5.043, allocations: 2.796 MB / 0.5477 GB, free: 90.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02449/5.067, allocations: 1.578 MB / 0.5492 GB, free: 89.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009375/5.076, allocations: 1.247 MB / 0.5504 GB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/5.093, allocations: 5.316 MB / 0.5556 GB, free: 86.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008482/5.101, allocations: 226.1 kB / 0.5558 GB, free: 86.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/5.103, allocations: 345.8 kB / 0.5562 GB, free: 86.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (681): * Single equations (assignments): 672 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001321/5.104, allocations: 427.2 kB / 0.5566 GB, free: 85.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000879/5.105, allocations: 281.8 kB / 0.5568 GB, free: 85.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/5.118, allocations: 2.553 MB / 0.5593 GB, free: 84.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01076/5.129, allocations: 2.171 MB / 0.5615 GB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.623e-05/5.129, allocations: 7.25 kB / 0.5615 GB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.524e-05/5.129, allocations: 5.078 kB / 0.5615 GB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009245/5.138, allocations: 2.734 MB / 0.5641 GB, free: 83.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.623e-05/5.138, allocations: 8.938 kB / 0.5641 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/5.141, allocations: 185.6 kB / 0.5643 GB, free: 83.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007635/5.149, allocations: 0.9684 MB / 0.5653 GB, free: 83.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003789/5.149, allocations: 16.27 kB / 0.5653 GB, free: 83.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/5.16, allocations: 4.817 MB / 0.57 GB, free: 79.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001464/5.162, allocations: 1.375 MB / 0.5713 GB, free: 77.75 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01715/5.179, allocations: 4.803 MB / 0.576 GB, free: 73.54 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01971/5.199, allocations: 6.701 MB / 0.5826 GB, free: 67.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/5.2, allocations: 340.1 kB / 0.5829 GB, free: 67.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008637/5.201, allocations: 8 kB / 0.5829 GB, free: 67.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003199/5.204, allocations: 69.41 kB / 0.583 GB, free: 67.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/5.205, allocations: 60.59 kB / 0.583 GB, free: 67.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/5.205, allocations: 34.19 kB / 0.583 GB, free: 67.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005284/5.21, allocations: 1.866 MB / 0.5849 GB, free: 65.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009085/5.219, allocations: 0.8538 MB / 0.5857 GB, free: 64.64 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007285/5.22, allocations: 151.2 kB / 0.5858 GB, free: 64.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01721/5.237, allocations: 4.889 MB / 0.5906 GB, free: 60.08 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/5.237, allocations: 0 / 0.5906 GB, free: 60.08 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008858/5.246, allocations: 1.868 MB / 0.5924 GB, free: 58.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/5.25, allocations: 302.7 kB / 0.5927 GB, free: 58.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02714/5.277, allocations: 6.873 MB / 0.5994 GB, free: 52.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008707/5.286, allocations: 3.209 MB / 0.6026 GB, free: 49.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.705e-06/5.286, allocations: 0 / 0.6026 GB, free: 49.5 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat