Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotion",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.623/2.623, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2343/2.858, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/3.221, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4816/3.702, allocations: 95.19 MB / 449.3 MB, free: 31.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/3.703, allocations: 80.16 kB / 449.4 MB, free: 31.49 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.498/4.201, allocations: 87.7 MB / 0.5245 GB, free: 13.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/4.201, allocations: 8 kB / 0.5245 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03318/4.234, allocations: 2.954 MB / 0.5274 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02322/4.257, allocations: 4.978 MB / 0.5322 GB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/4.258, allocations: 124 kB / 0.5323 GB, free: 5.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003032/4.261, allocations: 220 kB / 0.5325 GB, free: 5.227 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02446/4.285, allocations: 7.458 MB / 0.5398 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03644/4.322, allocations: 9.741 MB / 0.5493 GB, free: 3.523 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002673/4.322, allocations: 31.66 kB / 0.5494 GB, free: 3.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002738/4.325, allocations: 16 kB / 0.5494 GB, free: 3.477 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003388/4.328, allocations: 1.273 MB / 0.5506 GB, free: 2.203 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1009/4.429, allocations: 34.46 MB / 0.5843 GB, free: 15.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008865/4.438, allocations: 2.726 MB / 0.5869 GB, free: 12.37 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006826/4.445, allocations: 2.244 MB / 0.5891 GB, free: 10.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03921/4.484, allocations: 9.576 MB / 0.5985 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.469e-05/4.484, allocations: 51.81 kB / 0.5985 GB, free: 15.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=214): time 6.021e-06/4.484, allocations: 0 / 0.5985 GB, free: 15.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=239): time 0.08077/4.565, allocations: 15.47 MB / 0.6136 GB, free: 344 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/4.565, allocations: 73.41 kB / 0.6137 GB, free: 256 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.198/4.763, allocations: 2.599 MB / 0.6163 GB, free: 158.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006156/4.764, allocations: 25.7 kB / 0.6163 GB, free: 158.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002247/4.766, allocations: 2.796 MB / 0.619 GB, free: 157.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001466/4.768, allocations: 0.877 MB / 0.6199 GB, free: 156.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006754/4.768, allocations: 0 / 0.6199 GB, free: 156.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004653/4.769, allocations: 0.5627 MB / 0.6204 GB, free: 156.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006788/4.776, allocations: 2.548 MB / 0.6229 GB, free: 156.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009315/4.785, allocations: 5.802 MB / 0.6286 GB, free: 152.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/4.795, allocations: 3.913 MB / 0.6324 GB, free: 152.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/4.795, allocations: 30.72 kB / 0.6324 GB, free: 152.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.04299/4.838, allocations: 9 MB / 0.6412 GB, free: 151.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/4.838, allocations: 6.625 kB / 0.6412 GB, free: 151.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02865/4.867, allocations: 4.429 MB / 0.6455 GB, free: 151.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02898/4.896, allocations: 1.608 MB / 0.6471 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01087/4.907, allocations: 1.354 MB / 0.6484 GB, free: 151.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/4.92, allocations: 4.563 MB / 0.6529 GB, free: 149 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009044/4.929, allocations: 222.7 kB / 0.6531 GB, free: 149 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00167/4.931, allocations: 355.2 kB / 0.6534 GB, free: 149 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * 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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (744): * Single equations (assignments): 732 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.002147/4.933, allocations: 402.6 kB / 0.6538 GB, free: 148.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008328/4.934, allocations: 283.9 kB / 0.6541 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02146/4.955, allocations: 5.018 MB / 0.659 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02001/4.975, allocations: 4.506 MB / 0.6634 GB, free: 148.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.468e-05/4.975, allocations: 0 / 0.6634 GB, free: 148.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.434e-05/4.975, allocations: 14.97 kB / 0.6634 GB, free: 148.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05142/5.027, allocations: 11.85 MB / 0.675 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.384e-05/5.027, allocations: 7.25 kB / 0.675 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004921/5.032, allocations: 349 kB / 0.6753 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/5.043, allocations: 1.021 MB / 0.6763 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001076/5.044, allocations: 24.97 kB / 0.6763 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/5.057, allocations: 4.224 MB / 0.6805 GB, free: 141.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00128/5.059, allocations: 1.376 MB / 0.6818 GB, free: 139.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0375/5.096, allocations: 7.939 MB / 0.6896 GB, free: 136.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04773/5.144, allocations: 11.15 MB / 0.7004 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/5.145, allocations: 336.9 kB / 0.7008 GB, free: 127.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001778/5.147, allocations: 23.42 kB / 0.7008 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006051/5.153, allocations: 96.12 kB / 0.7009 GB, free: 127.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/5.155, allocations: 97.42 kB / 0.701 GB, free: 127.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001576/5.156, allocations: 66.56 kB / 0.701 GB, free: 127.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008698/5.165, allocations: 1.722 MB / 0.7027 GB, free: 125.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01689/5.182, allocations: 0.9921 MB / 0.7037 GB, free: 124.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 172 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.001291/5.183, allocations: 162.2 kB / 0.7038 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02146/5.205, allocations: 6.499 MB / 0.7102 GB, free: 118.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/5.205, allocations: 4 kB / 0.7102 GB, free: 118.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01005/5.215, allocations: 2.743 MB / 0.7129 GB, free: 116.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/5.218, allocations: 229.9 kB / 0.7131 GB, free: 116.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03712/5.255, allocations: 8.911 MB / 0.7218 GB, free: 108.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01174/5.267, allocations: 3.683 MB / 0.7254 GB, free: 105.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.633e-06/5.267, allocations: 0 / 0.7254 GB, free: 105.4 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat