Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_InitializationConversion_Bodies",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.568/2.568, allocations: 235.1 MB / 242 MB, free: 9.738 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2035/2.772, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/3.128, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/3.548, allocations: 94.54 MB / 448.6 MB, free: 31.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/3.548, allocations: 83.05 kB / 448.7 MB, free: 31.03 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: 1495 * Number of variables: 1495 Notification: Performance of Generate backend data structure: time 0.6833/4.232, allocations: 105.1 MB / 0.5408 GB, free: 12.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/4.232, allocations: 8 kB / 0.5408 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09375/4.326, allocations: 6.798 MB / 0.5475 GB, free: 5.949 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1111/4.437, allocations: 18.29 MB / 0.5653 GB, free: 3.555 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/4.437, allocations: 132 kB / 0.5655 GB, free: 3.426 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003008/4.44, allocations: 267.7 kB / 0.5657 GB, free: 3.164 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02385/4.464, allocations: 6.544 MB / 0.5721 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03612/4.5, allocations: 9.859 MB / 0.5817 GB, free: 1.668 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005315/4.501, allocations: 83.2 kB / 0.5818 GB, free: 1.586 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002521/4.503, allocations: 32 kB / 0.5818 GB, free: 1.555 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00486/4.508, allocations: 1.147 MB / 0.583 GB, free: 412 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3864/4.895, allocations: 51.31 MB / 0.6331 GB, free: 112.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00984/4.905, allocations: 3.603 MB / 0.6366 GB, free: 112.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006571/4.911, allocations: 2.516 MB / 0.639 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02963/4.941, allocations: 9.289 MB / 0.6481 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/4.941, allocations: 61.64 kB / 0.6482 GB, free: 109.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=182): time 7.795e-06/4.941, allocations: 0 / 0.6482 GB, free: 109.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=210): time 0.109/5.05, allocations: 18.92 MB / 0.6667 GB, free: 103.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001788/5.05, allocations: 329.1 kB / 0.667 GB, free: 103 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01703/5.067, allocations: 4.026 MB / 0.6709 GB, free: 102.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007965/5.068, allocations: 36.39 kB / 0.6709 GB, free: 102.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003218/5.071, allocations: 3.129 MB / 0.674 GB, free: 100.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002208/5.074, allocations: 0.8625 MB / 0.6748 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/5.075, allocations: 0 / 0.6748 GB, free: 100.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007461/5.076, allocations: 0.6177 MB / 0.6754 GB, free: 100.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/5.087, allocations: 3.003 MB / 0.6784 GB, free: 100.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/5.1, allocations: 7.381 MB / 0.6856 GB, free: 94.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/5.113, allocations: 4.809 MB / 0.6903 GB, free: 93.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001829/5.114, allocations: 47.81 kB / 0.6903 GB, free: 93.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=964) (initialization): time 0.1049/5.218, allocations: 13.73 MB / 0.7037 GB, free: 89.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/5.219, allocations: 3.969 kB / 0.7037 GB, free: 89.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09268/5.311, allocations: 7.677 MB / 0.7112 GB, free: 88.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09221/5.404, allocations: 5.181 MB / 0.7163 GB, free: 87.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01308/5.417, allocations: 1.702 MB / 0.7179 GB, free: 87.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04944/5.466, allocations: 14.22 MB / 0.7318 GB, free: 74.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01524/5.481, allocations: 486.4 kB / 0.7323 GB, free: 74.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002355/5.484, allocations: 468.5 kB / 0.7327 GB, free: 74.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * Number of states: 0 () * Number of discrete variables: 36 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (888): * Single equations (assignments): 863 * 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%),(4,100.0%),(3,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.003009/5.487, allocations: 0.4947 MB / 0.7332 GB, free: 73.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/5.489, allocations: 430.2 kB / 0.7336 GB, free: 73.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/5.491, allocations: 0.5696 MB / 0.7342 GB, free: 72.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03489/5.526, allocations: 5.611 MB / 0.7397 GB, free: 68.32 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.48e-05/5.526, allocations: 8 kB / 0.7397 GB, free: 68.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.609e-05/5.527, allocations: 14.8 kB / 0.7397 GB, free: 68.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03752/5.564, allocations: 9.128 MB / 0.7486 GB, free: 61.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.476e-05/5.564, allocations: 4 kB / 0.7486 GB, free: 61.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005586/5.57, allocations: 393.4 kB / 0.749 GB, free: 60.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03786/5.608, allocations: 3.257 MB / 0.7522 GB, free: 58.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001232/5.609, allocations: 75.78 kB / 0.7522 GB, free: 58.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04236/5.651, allocations: 14.43 MB / 0.7663 GB, free: 45.19 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006937/5.658, allocations: 5.471 MB / 0.7717 GB, free: 39.41 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06324/5.722, allocations: 10.34 MB / 0.7818 GB, free: 29.15 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07414/5.796, allocations: 13.54 MB / 0.795 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003066/5.799, allocations: 0.5032 MB / 0.7955 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003387/5.803, allocations: 43.97 kB / 0.7955 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/5.814, allocations: 191.7 kB / 0.7957 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/5.816, allocations: 115.5 kB / 0.7958 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007581/5.817, allocations: 75.92 kB / 0.7959 GB, free: 14.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01264/5.829, allocations: 2.757 MB / 0.7986 GB, free: 11.76 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02363/5.853, allocations: 1.551 MB / 0.8001 GB, free: 10.22 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.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],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,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: 3 {(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001927/5.855, allocations: 204.1 kB / 0.8003 GB, free: 10.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04712/5.902, allocations: 8.907 MB / 0.809 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/5.902, allocations: 0 / 0.809 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2608/6.163, allocations: 4.437 MB / 0.8133 GB, free: 134.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007529/6.171, allocations: 0.5363 MB / 0.8138 GB, free: 134.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04263/6.213, allocations: 12.25 MB / 0.8258 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01391/6.227, allocations: 4.248 MB / 0.8299 GB, free: 130.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.833e-06/6.227, allocations: 0 / 0.8299 GB, free: 130.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat