Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.48/2.48, allocations: 235 MB / 242 MB, free: 9.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1952/2.676, allocations: 57.2 MB / 299.2 MB, free: 460 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/3.009, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/3.439, allocations: 97.16 MB / 451.2 MB, free: 32.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003702/3.44, allocations: 81.86 kB / 451.3 MB, free: 32.23 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.5976/4.038, allocations: 92.5 MB / 0.5311 GB, free: 6.824 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.423e-05/4.038, allocations: 12 kB / 0.5311 GB, free: 6.812 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0368/4.074, allocations: 2.864 MB / 0.5339 GB, free: 3.938 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0256/4.1, allocations: 4.733 MB / 0.5385 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/4.101, allocations: 144 kB / 0.5386 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003429/4.104, allocations: 256 kB / 0.5389 GB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02828/4.132, allocations: 8.12 MB / 0.5468 GB, free: 6.625 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/4.175, allocations: 10.55 MB / 0.5571 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002695/4.175, allocations: 23.81 kB / 0.5571 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002981/4.178, allocations: 20 kB / 0.5571 GB, free: 11.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003445/4.181, allocations: 1.321 MB / 0.5584 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/4.291, allocations: 35.84 MB / 0.5934 GB, free: 5.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009265/4.3, allocations: 2.753 MB / 0.5961 GB, free: 3.016 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007039/4.307, allocations: 2.299 MB / 0.5984 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04046/4.347, allocations: 9.728 MB / 0.6079 GB, free: 6.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.229e-05/4.348, allocations: 51.88 kB / 0.6079 GB, free: 6.367 MB / 474.7 MB Notification: Performance of pre-optimization done (n=213): time 7.474e-06/4.348, allocations: 0 / 0.6079 GB, free: 6.367 MB / 474.7 MB Notification: Performance of matching and sorting (n=234): time 0.2554/4.603, allocations: 11.17 MB / 0.6188 GB, free: 152.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/4.603, allocations: 68.69 kB / 0.6189 GB, free: 152.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007185/4.61, allocations: 2.651 MB / 0.6215 GB, free: 151.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005968/4.611, allocations: 29.64 kB / 0.6215 GB, free: 151.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002943/4.614, allocations: 3.022 MB / 0.6245 GB, free: 150 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/4.615, allocations: 0.8594 MB / 0.6253 GB, free: 149.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008496/4.616, allocations: 0 / 0.6253 GB, free: 149.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005629/4.617, allocations: 0.5717 MB / 0.6259 GB, free: 149.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009249/4.626, allocations: 2.36 MB / 0.6282 GB, free: 149.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/4.64, allocations: 5.741 MB / 0.6338 GB, free: 144.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/4.652, allocations: 3.765 MB / 0.6374 GB, free: 144.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000141/4.653, allocations: 35.31 kB / 0.6375 GB, free: 144.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.03683/4.689, allocations: 8.124 MB / 0.6454 GB, free: 144.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/4.69, allocations: 2.938 kB / 0.6454 GB, free: 144.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003696/4.69, allocations: 121.6 kB / 0.6455 GB, free: 144.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01262/4.703, allocations: 0.9019 MB / 0.6464 GB, free: 144.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0147/4.717, allocations: 1.399 MB / 0.6478 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00473/4.722, allocations: 2.365 MB / 0.6501 GB, free: 143 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009023/4.731, allocations: 169.5 kB / 0.6503 GB, free: 143 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002356/4.734, allocations: 369.5 kB / 0.6506 GB, free: 143 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * Number of states: 0 () * Number of discrete variables: 21 (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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (766): * Single equations (assignments): 757 * 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 {(3,100.0%),(2,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.003415/4.737, allocations: 405.6 kB / 0.651 GB, free: 142.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009688/4.738, allocations: 284.7 kB / 0.6513 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/4.763, allocations: 4.565 MB / 0.6557 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002314/4.763, allocations: 37.34 kB / 0.6558 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.139e-05/4.763, allocations: 3.5 kB / 0.6558 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.387e-05/4.763, allocations: 10.12 kB / 0.6558 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04463/4.808, allocations: 8.834 MB / 0.6644 GB, free: 141.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.688e-05/4.808, allocations: 3.781 kB / 0.6644 GB, free: 141.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004601/4.813, allocations: 350.6 kB / 0.6647 GB, free: 141.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007993/4.821, allocations: 0.5339 MB / 0.6653 GB, free: 141.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007117/4.822, allocations: 28.97 kB / 0.6653 GB, free: 141.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003856/4.825, allocations: 1.935 MB / 0.6672 GB, free: 140.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/4.825, allocations: 0 / 0.6672 GB, free: 140.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02226/4.848, allocations: 6.795 MB / 0.6738 GB, free: 138.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02827/4.876, allocations: 9.616 MB / 0.6832 GB, free: 134.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/4.877, allocations: 333.4 kB / 0.6835 GB, free: 134 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001564/4.879, allocations: 13.97 kB / 0.6835 GB, free: 134 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006077/4.885, allocations: 57.14 kB / 0.6836 GB, free: 134 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00117/4.886, allocations: 108.1 kB / 0.6837 GB, free: 133.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007111/4.887, allocations: 63.97 kB / 0.6837 GB, free: 133.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008334/4.895, allocations: 1.738 MB / 0.6854 GB, free: 133.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009868/4.905, allocations: 0.8907 MB / 0.6863 GB, free: 133.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 178 * 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.001067/4.906, allocations: 153.1 kB / 0.6865 GB, free: 133.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02008/4.926, allocations: 5.907 MB / 0.6922 GB, free: 131.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/4.927, allocations: 0 / 0.6922 GB, free: 131.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008337/4.935, allocations: 2.273 MB / 0.6944 GB, free: 129.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003821/4.939, allocations: 274.8 kB / 0.6947 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/4.973, allocations: 9 MB / 0.7035 GB, free: 121.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01279/4.986, allocations: 3.927 MB / 0.7073 GB, free: 118.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.843e-06/4.986, allocations: 0 / 0.7073 GB, free: 118.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat