Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.795/2.795, allocations: 194.9 MB / 202.6 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3651/3.16, allocations: 46.84 MB / 249.4 MB, free: 5.367 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/3.291, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/3.775, allocations: 84.31 MB / 378.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004474/3.775, allocations: 87.62 kB / 378.3 MB, free: 6.551 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.4995/4.275, allocations: 57.53 MB / 435.8 MB, free: 2.082 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.076e-05/4.275, allocations: 8 kB / 435.9 MB, free: 2.074 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03183/4.307, allocations: 1.63 MB / 437.5 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03166/4.339, allocations: 3.622 MB / 441.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/4.339, allocations: 84 kB / 441.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002559/4.342, allocations: 143.9 kB / 441.3 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01594/4.358, allocations: 4.132 MB / 445.5 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02982/4.388, allocations: 6.294 MB / 451.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002859/4.388, allocations: 43.56 kB / 451.8 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00187/4.39, allocations: 24 kB / 451.8 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003467/4.393, allocations: 0.7458 MB / 452.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08721/4.481, allocations: 31.67 MB / 484.2 MB, free: 44 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005936/4.487, allocations: 2.04 MB / 486.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003863/4.491, allocations: 1.133 MB / 487.4 MB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01697/4.508, allocations: 4.165 MB / 491.6 MB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.266e-05/4.508, allocations: 50.91 kB / 491.6 MB, free: 8.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 6.342e-06/4.508, allocations: 0 / 491.6 MB, free: 8.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.2572/4.765, allocations: 8.923 MB / 0.4888 GB, free: 141.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/4.765, allocations: 140 kB / 0.4889 GB, free: 141.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007088/4.772, allocations: 2.142 MB / 0.491 GB, free: 141 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005346/4.773, allocations: 29.5 kB / 0.4911 GB, free: 140.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002941/4.776, allocations: 2.007 MB / 0.493 GB, free: 140.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/4.777, allocations: 490 kB / 0.4935 GB, free: 140 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008612/4.778, allocations: 0 / 0.4935 GB, free: 140 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000761/4.779, allocations: 0.5451 MB / 0.494 GB, free: 139.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007709/4.787, allocations: 1.567 MB / 0.4956 GB, free: 139.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009864/4.797, allocations: 4.413 MB / 0.4999 GB, free: 136 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/4.81, allocations: 2.822 MB / 0.5026 GB, free: 136 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/4.81, allocations: 30.62 kB / 0.5027 GB, free: 136 MB / 394.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.04404/4.854, allocations: 6.575 MB / 0.5091 GB, free: 135.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/4.854, allocations: 4.5 kB / 0.5091 GB, free: 135.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02302/4.877, allocations: 2.621 MB / 0.5116 GB, free: 135.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01672/4.894, allocations: 1.421 MB / 0.513 GB, free: 135.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01007/4.904, allocations: 1.021 MB / 0.514 GB, free: 135.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03347/4.938, allocations: 7.435 MB / 0.5213 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01256/4.95, allocations: 231.7 kB / 0.5215 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/4.952, allocations: 291.4 kB / 0.5218 GB, free: 132.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (552): * Single equations (assignments): 544 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002315/4.955, allocations: 360.8 kB / 0.5221 GB, free: 132.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007886/4.955, allocations: 209 kB / 0.5223 GB, free: 132.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02116/4.977, allocations: 2.877 MB / 0.5251 GB, free: 131.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01667/4.993, allocations: 2.561 MB / 0.5276 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-05/4.993, allocations: 7.688 kB / 0.5276 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.991e-05/4.993, allocations: 7.391 kB / 0.5276 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04169/5.035, allocations: 6.146 MB / 0.5336 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.582e-05/5.035, allocations: 0 / 0.5336 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003154/5.038, allocations: 152.1 kB / 0.5338 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01774/5.056, allocations: 1.35 MB / 0.5351 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004587/5.057, allocations: 19.27 kB / 0.5351 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02858/5.085, allocations: 7.741 MB / 0.5427 GB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001508/5.087, allocations: 1.356 MB / 0.544 GB, free: 123.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03033/5.117, allocations: 4.981 MB / 0.5489 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03552/5.153, allocations: 6.735 MB / 0.5555 GB, free: 115.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/5.154, allocations: 278.2 kB / 0.5557 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/5.156, allocations: 8 kB / 0.5557 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005024/5.161, allocations: 71.23 kB / 0.5558 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007453/5.162, allocations: 59.38 kB / 0.5559 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003663/5.162, allocations: 43.69 kB / 0.5559 GB, free: 114.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005845/5.168, allocations: 1.416 MB / 0.5573 GB, free: 113.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01313/5.181, allocations: 0.6837 MB / 0.5579 GB, free: 112.9 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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 69 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/5.182, allocations: 174.8 kB / 0.5581 GB, free: 112.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02038/5.203, allocations: 4.141 MB / 0.5622 GB, free: 109 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/5.203, allocations: 0 / 0.5622 GB, free: 109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01036/5.213, allocations: 1.608 MB / 0.5637 GB, free: 107.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003437/5.217, allocations: 191.2 kB / 0.5639 GB, free: 107.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/5.241, allocations: 5.495 MB / 0.5693 GB, free: 102.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007077/5.248, allocations: 2.529 MB / 0.5717 GB, free: 100.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.003e-06/5.248, allocations: 0 / 0.5717 GB, free: 100.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.SpringWithMass_res.mat does not exist to compare? outputFormat=mat