Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_FreeBodies2",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(ModelicaTest): time 2.511/2.511, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1725/2.684, allocations: 57.21 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/2.963, allocations: 54.83 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4376/3.401, allocations: 98.56 MB / 452.6 MB, free: 33.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/3.401, allocations: 73.22 kB / 452.7 MB, free: 33.09 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.8986/4.3, allocations: 145.7 MB / 0.5844 GB, free: 148 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/4.3, allocations: 8 kB / 0.5844 GB, free: 140 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06728/4.367, allocations: 7.189 MB / 0.5914 GB, free: 8.926 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05367/4.421, allocations: 11 MB / 0.6022 GB, free: 13.84 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007121/4.421, allocations: 244 kB / 0.6024 GB, free: 13.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00488/4.426, allocations: 451.8 kB / 0.6028 GB, free: 13.16 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03765/4.464, allocations: 10.46 MB / 0.613 GB, free: 2.699 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2627/4.727, allocations: 15.53 MB / 0.6282 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006142/4.727, allocations: 102.9 kB / 0.6283 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003879/4.731, allocations: 52 kB / 0.6284 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004938/4.736, allocations: 1.712 MB / 0.63 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.156/4.892, allocations: 79.81 MB / 0.708 GB, free: 60.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/4.905, allocations: 4.63 MB / 0.7125 GB, free: 59.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009409/4.914, allocations: 3.67 MB / 0.7161 GB, free: 57.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03815/4.952, allocations: 10.9 MB / 0.7267 GB, free: 52.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.014e-05/4.953, allocations: 59.06 kB / 0.7268 GB, free: 52.65 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 7.284e-06/4.953, allocations: 6.938 kB / 0.7268 GB, free: 52.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1244/5.077, allocations: 22.12 MB / 0.7484 GB, free: 44.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.803e-05/5.077, allocations: 234 kB / 0.7486 GB, free: 44.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02001/5.097, allocations: 5.213 MB / 0.7537 GB, free: 42.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001334/5.099, allocations: 25.7 kB / 0.7537 GB, free: 42.22 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006567/5.105, allocations: 4.757 MB / 0.7584 GB, free: 38.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00294/5.108, allocations: 1.152 MB / 0.7595 GB, free: 37.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002377/5.111, allocations: 0 / 0.7595 GB, free: 37.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001461/5.112, allocations: 0.7281 MB / 0.7602 GB, free: 37.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01233/5.125, allocations: 3.809 MB / 0.7639 GB, free: 35.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01872/5.143, allocations: 9.682 MB / 0.7734 GB, free: 26.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02742/5.171, allocations: 6.158 MB / 0.7794 GB, free: 24.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004967/5.171, allocations: 60 kB / 0.7794 GB, free: 24.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=1295) (initialization): time 0.1027/5.274, allocations: 14.98 MB / 0.7941 GB, free: 14.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/5.274, allocations: 4 kB / 0.7941 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05325/5.328, allocations: 7.51 MB / 0.8014 GB, free: 8.875 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.049/5.377, allocations: 3.444 MB / 0.8048 GB, free: 6.418 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01981/5.396, allocations: 2.307 MB / 0.807 GB, free: 4.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2746/5.671, allocations: 12.67 MB / 0.8194 GB, free: 92.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02308/5.694, allocations: 0.5189 MB / 0.8199 GB, free: 92.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003124/5.697, allocations: 0.6084 MB / 0.8205 GB, free: 92.47 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.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 (1219): * Single equations (assignments): 1194 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,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.005364/5.703, allocations: 0.6375 MB / 0.8211 GB, free: 92.36 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002288/5.705, allocations: 0.5483 MB / 0.8217 GB, free: 92.36 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04182/5.747, allocations: 7.509 MB / 0.829 GB, free: 92.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03608/5.783, allocations: 6.708 MB / 0.8355 GB, free: 91.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.129e-05/5.783, allocations: 6.781 kB / 0.8356 GB, free: 91.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001122/5.783, allocations: 13.88 kB / 0.8356 GB, free: 91.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/5.807, allocations: 6.17 MB / 0.8416 GB, free: 91.67 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.212e-05/5.807, allocations: 3.344 kB / 0.8416 GB, free: 91.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01045/5.817, allocations: 0.567 MB / 0.8421 GB, free: 91.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02839/5.846, allocations: 2.954 MB / 0.845 GB, free: 91.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001126/5.847, allocations: 68.14 kB / 0.8451 GB, free: 91.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02787/5.875, allocations: 13.4 MB / 0.8582 GB, free: 84.24 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005194/5.88, allocations: 5.642 MB / 0.8637 GB, free: 79.08 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04402/5.924, allocations: 11.76 MB / 0.8752 GB, free: 78.33 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05743/5.982, allocations: 15.91 MB / 0.8907 GB, free: 77.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003363/5.985, allocations: 0.6013 MB / 0.8913 GB, free: 76.76 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003774/5.989, allocations: 32.41 kB / 0.8913 GB, free: 76.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008627/5.998, allocations: 218.9 kB / 0.8915 GB, free: 76.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/5.999, allocations: 143.6 kB / 0.8917 GB, free: 76.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005227/6, allocations: 97.31 kB / 0.8918 GB, free: 76.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01083/6.01, allocations: 3.513 MB / 0.8952 GB, free: 76.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02245/6.033, allocations: 1.883 MB / 0.897 GB, free: 76.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.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],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,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.002333/6.035, allocations: 213.7 kB / 0.8972 GB, free: 76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0413/6.077, allocations: 10.93 MB / 0.9079 GB, free: 72.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/6.077, allocations: 0 / 0.9079 GB, free: 72.03 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02744/6.104, allocations: 5.053 MB / 0.9129 GB, free: 69.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009637/6.114, allocations: 0.6759 MB / 0.9135 GB, free: 69.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07119/6.185, allocations: 16.5 MB / 0.9296 GB, free: 63.18 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02136/6.207, allocations: 6.012 MB / 0.9355 GB, free: 59.59 MB / 474.7 MB Notification: Performance of SimCode: time 2.014e-06/6.207, allocations: 0 / 0.9355 GB, free: 59.59 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat