Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.663/2.663, allocations: 235 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1556/2.819, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/3.117, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4703/3.587, allocations: 103.2 MB / 457.3 MB, free: 34.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/3.587, allocations: 80.97 kB / 457.4 MB, free: 34.83 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: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.8064/4.394, allocations: 151.2 MB / 0.5943 GB, free: 6.008 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/4.394, allocations: 8 kB / 0.5943 GB, free: 6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06531/4.459, allocations: 6.934 MB / 0.6011 GB, free: 15.04 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.043/4.502, allocations: 7.96 MB / 0.6088 GB, free: 7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006883/4.503, allocations: 255.9 kB / 0.6091 GB, free: 6.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004682/4.508, allocations: 463.9 kB / 0.6095 GB, free: 6.297 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.4462/4.954, allocations: 11.3 MB / 0.6206 GB, free: 109.9 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05959/5.014, allocations: 16.74 MB / 0.6369 GB, free: 105.9 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007472/5.014, allocations: 99.47 kB / 0.637 GB, free: 105.9 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00526/5.02, allocations: 44.78 kB / 0.637 GB, free: 105.9 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004979/5.025, allocations: 1.934 MB / 0.6389 GB, free: 105.9 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/5.189, allocations: 79.02 MB / 0.7161 GB, free: 62.45 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01921/5.208, allocations: 7.089 MB / 0.723 GB, free: 58.98 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0171/5.225, allocations: 4.686 MB / 0.7276 GB, free: 57.07 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06454/5.29, allocations: 13.23 MB / 0.7405 GB, free: 50.8 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/5.29, allocations: 65.72 kB / 0.7406 GB, free: 50.74 MB / 474.8 MB Notification: Performance of pre-optimization done (n=310): time 1.393e-05/5.29, allocations: 6.781 kB / 0.7406 GB, free: 50.74 MB / 474.8 MB Notification: Performance of matching and sorting (n=352): time 0.1801/5.47, allocations: 29.4 MB / 0.7693 GB, free: 39.36 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/5.47, allocations: 245.2 kB / 0.7695 GB, free: 39.11 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/5.485, allocations: 5.19 MB / 0.7746 GB, free: 34.85 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001301/5.487, allocations: 25.7 kB / 0.7746 GB, free: 34.82 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00444/5.491, allocations: 5.023 MB / 0.7795 GB, free: 30.31 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002553/5.494, allocations: 1.286 MB / 0.7808 GB, free: 29.15 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/5.495, allocations: 0 / 0.7808 GB, free: 29.15 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008059/5.496, allocations: 0.746 MB / 0.7815 GB, free: 28.53 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01163/5.508, allocations: 3.993 MB / 0.7854 GB, free: 24.95 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01838/5.526, allocations: 9.743 MB / 0.7949 GB, free: 13.18 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02408/5.55, allocations: 6.221 MB / 0.801 GB, free: 8.164 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003072/5.551, allocations: 60 kB / 0.8011 GB, free: 8.105 MB / 474.8 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.2965/5.847, allocations: 13.87 MB / 0.8146 GB, free: 94.62 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/5.847, allocations: 8.656 kB / 0.8146 GB, free: 94.62 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004195/5.848, allocations: 205.1 kB / 0.8148 GB, free: 94.62 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009125/5.857, allocations: 1.651 MB / 0.8164 GB, free: 94.61 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02143/5.878, allocations: 2.43 MB / 0.8188 GB, free: 94.61 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02719/5.905, allocations: 10.39 MB / 0.8289 GB, free: 92.09 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01631/5.922, allocations: 333.4 kB / 0.8293 GB, free: 92.09 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003446/5.925, allocations: 0.5963 MB / 0.8298 GB, free: 92.09 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1261): * Single equations (assignments): 1256 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005037/5.93, allocations: 0.6304 MB / 0.8305 GB, free: 91.98 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002454/5.933, allocations: 0.5443 MB / 0.831 GB, free: 91.98 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03606/5.969, allocations: 7.307 MB / 0.8381 GB, free: 91.84 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001428/5.969, allocations: 31.38 kB / 0.8382 GB, free: 91.84 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.255e-05/5.969, allocations: 10.84 kB / 0.8382 GB, free: 91.84 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.275e-05/5.969, allocations: 21.47 kB / 0.8382 GB, free: 91.84 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06577/6.035, allocations: 15.3 MB / 0.8531 GB, free: 91.26 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-05/6.035, allocations: 0 / 0.8531 GB, free: 91.26 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008755/6.044, allocations: 0.6204 MB / 0.8537 GB, free: 91.26 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008488/6.053, allocations: 1.317 MB / 0.855 GB, free: 91.24 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001199/6.054, allocations: 12.91 kB / 0.855 GB, free: 91.24 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03359/6.087, allocations: 9.651 MB / 0.8645 GB, free: 88.71 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/6.088, allocations: 3.141 kB / 0.8645 GB, free: 88.71 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04052/6.128, allocations: 12.29 MB / 0.8765 GB, free: 87.94 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06604/6.194, allocations: 17.16 MB / 0.8932 GB, free: 82 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005577/6.2, allocations: 1.142 MB / 0.8943 GB, free: 81.37 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003074/6.203, allocations: 3.875 kB / 0.8943 GB, free: 81.37 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00847/6.211, allocations: 120.7 kB / 0.8944 GB, free: 81.37 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00155/6.213, allocations: 157.6 kB / 0.8946 GB, free: 81.34 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007179/6.214, allocations: 90.09 kB / 0.8947 GB, free: 81.32 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.01176/6.226, allocations: 3.496 MB / 0.8981 GB, free: 80.07 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01733/6.243, allocations: 1.577 MB / 0.8996 GB, free: 80.07 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 291 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001703/6.245, allocations: 166.3 kB / 0.8998 GB, free: 79.98 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03511/6.28, allocations: 9.698 MB / 0.9093 GB, free: 77.05 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/6.28, allocations: 5 kB / 0.9093 GB, free: 77.05 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01529/6.295, allocations: 3.678 MB / 0.9129 GB, free: 75.69 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008108/6.303, allocations: 0.5385 MB / 0.9134 GB, free: 75.45 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08057/6.384, allocations: 14.81 MB / 0.9279 GB, free: 64.77 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02151/6.406, allocations: 6.089 MB / 0.9338 GB, free: 60.23 MB / 474.8 MB Notification: Performance of SimCode: time 2.705e-06/6.406, allocations: 0 / 0.9338 GB, free: 60.23 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat