Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",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.758/2.758, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1752/2.933, allocations: 57.2 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/3.256, allocations: 54.86 MB / 354.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4306/3.687, allocations: 97.33 MB / 451.4 MB, free: 32.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/3.687, allocations: 72.77 kB / 451.5 MB, free: 32.5 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: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.4637/4.151, allocations: 96.23 MB / 0.5349 GB, free: 2.906 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/4.151, allocations: 11.94 kB / 0.5349 GB, free: 2.895 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03357/4.184, allocations: 2.887 MB / 0.5377 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02556/4.21, allocations: 4.839 MB / 0.5424 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004158/4.211, allocations: 152 kB / 0.5426 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00385/4.214, allocations: 271.9 kB / 0.5428 GB, free: 10.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02902/4.243, allocations: 8.235 MB / 0.5509 GB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.041/4.285, allocations: 10.75 MB / 0.5614 GB, free: 7.219 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003424/4.285, allocations: 35.66 kB / 0.5614 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003569/4.289, allocations: 12 kB / 0.5614 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005536/4.294, allocations: 1.318 MB / 0.5627 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/4.418, allocations: 36.21 MB / 0.5981 GB, free: 1.004 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008263/4.426, allocations: 2.454 MB / 0.6005 GB, free: 14.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00701/4.433, allocations: 2.205 MB / 0.6026 GB, free: 12.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03352/4.467, allocations: 9.518 MB / 0.6119 GB, free: 2.254 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.313e-05/4.467, allocations: 47.88 kB / 0.612 GB, free: 2.199 MB / 474.7 MB Notification: Performance of pre-optimization done (n=213): time 7.003e-06/4.467, allocations: 4 kB / 0.612 GB, free: 2.195 MB / 474.7 MB Notification: Performance of matching and sorting (n=233): time 0.2568/4.724, allocations: 10.79 MB / 0.6225 GB, free: 148.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/4.724, allocations: 72.75 kB / 0.6226 GB, free: 148.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008108/4.732, allocations: 2.762 MB / 0.6253 GB, free: 148.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006128/4.733, allocations: 25.7 kB / 0.6253 GB, free: 148.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002784/4.735, allocations: 3.157 MB / 0.6284 GB, free: 146.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/4.737, allocations: 0.8614 MB / 0.6292 GB, free: 146 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008881/4.738, allocations: 1.438 kB / 0.6292 GB, free: 146 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006517/4.739, allocations: 0.5817 MB / 0.6298 GB, free: 145.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007265/4.746, allocations: 2.371 MB / 0.6321 GB, free: 145.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009889/4.756, allocations: 5.875 MB / 0.6378 GB, free: 141.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/4.767, allocations: 3.811 MB / 0.6416 GB, free: 141.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001609/4.767, allocations: 35.94 kB / 0.6416 GB, free: 141.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=839) (initialization): time 0.03241/4.799, allocations: 8.247 MB / 0.6496 GB, free: 140.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/4.799, allocations: 3.156 kB / 0.6496 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002327/4.8, allocations: 126.5 kB / 0.6498 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009098/4.809, allocations: 0.9432 MB / 0.6507 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01146/4.82, allocations: 1.426 MB / 0.6521 GB, free: 140.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004582/4.825, allocations: 2.367 MB / 0.6544 GB, free: 139.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009589/4.834, allocations: 175.5 kB / 0.6546 GB, free: 139.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002796/4.837, allocations: 373.2 kB / 0.6549 GB, free: 139.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 566 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 777 * Array equations: 6 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.003838/4.841, allocations: 416.8 kB / 0.6553 GB, free: 139 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/4.843, allocations: 299.4 kB / 0.6556 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02178/4.864, allocations: 4.52 MB / 0.66 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001866/4.865, allocations: 40.89 kB / 0.6601 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/4.865, allocations: 7.094 kB / 0.6601 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.572e-05/4.865, allocations: 7.688 kB / 0.6601 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0356/4.9, allocations: 8.989 MB / 0.6688 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.668e-05/4.901, allocations: 2.875 kB / 0.6688 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00448/4.905, allocations: 341.4 kB / 0.6692 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008205/4.913, allocations: 0.7641 MB / 0.6699 GB, free: 137.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007445/4.914, allocations: 26.75 kB / 0.6699 GB, free: 137.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004212/4.918, allocations: 2.134 MB / 0.672 GB, free: 136.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/4.918, allocations: 3.656 kB / 0.672 GB, free: 136.4 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02285/4.941, allocations: 6.871 MB / 0.6787 GB, free: 134 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03617/4.977, allocations: 9.737 MB / 0.6883 GB, free: 130.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/4.979, allocations: 342.1 kB / 0.6886 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001775/4.981, allocations: 8.25 kB / 0.6886 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003855/4.985, allocations: 60.97 kB / 0.6886 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008195/4.985, allocations: 100 kB / 0.6887 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/4.986, allocations: 62.83 kB / 0.6888 GB, free: 130.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005949/4.992, allocations: 1.819 MB / 0.6906 GB, free: 129.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009675/5.001, allocations: 0.918 MB / 0.6915 GB, free: 129.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 177 * Array equations: 6 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.00104/5.003, allocations: 153.9 kB / 0.6916 GB, free: 129.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01962/5.022, allocations: 6.004 MB / 0.6975 GB, free: 125.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/5.022, allocations: 0 / 0.6975 GB, free: 125.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00879/5.031, allocations: 2.366 MB / 0.6998 GB, free: 123.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/5.035, allocations: 329.7 kB / 0.7001 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03576/5.071, allocations: 9.234 MB / 0.7091 GB, free: 115.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01181/5.083, allocations: 4.05 MB / 0.7131 GB, free: 112.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.943e-06/5.083, allocations: 0 / 0.7131 GB, free: 112.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat