Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_WorldForces",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.564/2.564, allocations: 235 MB / 242 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1587/2.722, allocations: 57.2 MB / 299.2 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/3.022, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/3.454, allocations: 101.8 MB / 455.9 MB, free: 34.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/3.455, allocations: 80.66 kB / 456 MB, free: 34.39 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.859/4.314, allocations: 154.4 MB / 0.5961 GB, free: 4.148 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.353e-05/4.314, allocations: 8 kB / 0.5961 GB, free: 4.141 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08765/4.402, allocations: 9.219 MB / 0.6051 GB, free: 10.89 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04886/4.451, allocations: 9.23 MB / 0.6141 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007861/4.451, allocations: 248 kB / 0.6143 GB, free: 1.332 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004803/4.456, allocations: 463.8 kB / 0.6148 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2612/4.717, allocations: 10.79 MB / 0.6253 GB, free: 110.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05181/4.769, allocations: 16.46 MB / 0.6414 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008184/4.77, allocations: 102.1 kB / 0.6415 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005042/4.775, allocations: 52.83 kB / 0.6415 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/4.78, allocations: 1.825 MB / 0.6433 GB, free: 106.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1578/4.938, allocations: 79.31 MB / 0.7208 GB, free: 59.63 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0193/4.957, allocations: 6.291 MB / 0.7269 GB, free: 56.75 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0192/4.976, allocations: 4.42 MB / 0.7312 GB, free: 54.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05002/5.027, allocations: 11.97 MB / 0.7429 GB, free: 49.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.592e-05/5.027, allocations: 71.5 kB / 0.743 GB, free: 49.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=301): time 1.235e-05/5.027, allocations: 0 / 0.743 GB, free: 49.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.1484/5.175, allocations: 30.23 MB / 0.7725 GB, free: 34.71 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/5.175, allocations: 306.1 kB / 0.7728 GB, free: 34.37 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01596/5.191, allocations: 5.181 MB / 0.7778 GB, free: 29.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001238/5.193, allocations: 25.7 kB / 0.7779 GB, free: 29.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004435/5.197, allocations: 4.933 MB / 0.7827 GB, free: 25.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002578/5.2, allocations: 1.239 MB / 0.7839 GB, free: 24.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001903/5.202, allocations: 0 / 0.7839 GB, free: 24.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009009/5.203, allocations: 0.7252 MB / 0.7846 GB, free: 23.77 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01042/5.213, allocations: 3.592 MB / 0.7881 GB, free: 20.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01527/5.228, allocations: 9.376 MB / 0.7973 GB, free: 9.074 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01541/5.244, allocations: 5.771 MB / 0.8029 GB, free: 4.445 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002241/5.244, allocations: 56 kB / 0.803 GB, free: 4.391 MB / 474.7 MB Notification: Performance of matching and sorting (n=1286) (initialization): time 0.2713/5.516, allocations: 12.74 MB / 0.8154 GB, free: 94.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/5.516, allocations: 7.438 kB / 0.8154 GB, free: 94.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000668/5.516, allocations: 206 kB / 0.8156 GB, free: 94.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008397/5.525, allocations: 1.337 MB / 0.8169 GB, free: 94.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01797/5.543, allocations: 2.283 MB / 0.8191 GB, free: 94.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02965/5.572, allocations: 10.5 MB / 0.8294 GB, free: 91.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02509/5.598, allocations: 307.2 kB / 0.8297 GB, free: 91.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005241/5.603, allocations: 0.5873 MB / 0.8303 GB, free: 91.03 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 941 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1211): * Single equations (assignments): 1205 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 21,(1,100.0%) 14,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005158/5.608, allocations: 0.6216 MB / 0.8309 GB, free: 90.92 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001904/5.61, allocations: 0.5533 MB / 0.8314 GB, free: 90.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02805/5.638, allocations: 6.411 MB / 0.8377 GB, free: 90.78 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001685/5.638, allocations: 33.28 kB / 0.8377 GB, free: 90.78 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.93e-05/5.638, allocations: 10.62 kB / 0.8377 GB, free: 90.78 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/5.639, allocations: 18.17 kB / 0.8377 GB, free: 90.78 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06456/5.703, allocations: 13.76 MB / 0.8512 GB, free: 90.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.805e-05/5.703, allocations: 10.5 kB / 0.8512 GB, free: 90.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008319/5.712, allocations: 0.5366 MB / 0.8517 GB, free: 90.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006756/5.718, allocations: 0.9977 MB / 0.8527 GB, free: 90.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008992/5.719, allocations: 17.48 kB / 0.8527 GB, free: 90.13 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0234/5.743, allocations: 9.494 MB / 0.862 GB, free: 86.37 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/5.743, allocations: 3.125 kB / 0.862 GB, free: 86.37 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03084/5.774, allocations: 11.03 MB / 0.8727 GB, free: 85.46 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.041/5.815, allocations: 15.38 MB / 0.8877 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004824/5.82, allocations: 1.07 MB / 0.8888 GB, free: 80.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002809/5.822, allocations: 3.688 kB / 0.8888 GB, free: 80.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007022/5.83, allocations: 99.31 kB / 0.8889 GB, free: 80.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/5.831, allocations: 161 kB / 0.889 GB, free: 80.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004593/5.831, allocations: 86.53 kB / 0.8891 GB, free: 80.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01041/5.842, allocations: 3.516 MB / 0.8926 GB, free: 79.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01603/5.858, allocations: 1.525 MB / 0.894 GB, free: 79.46 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (283): * Single equations (assignments): 277 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(1,100.0%) 11,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001853/5.86, allocations: 161.1 kB / 0.8942 GB, free: 79.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03238/5.892, allocations: 8.933 MB / 0.9029 GB, free: 76.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/5.892, allocations: 0 / 0.9029 GB, free: 76.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01341/5.906, allocations: 3.342 MB / 0.9062 GB, free: 75.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006989/5.913, allocations: 0.6075 MB / 0.9068 GB, free: 74.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07035/5.983, allocations: 14.31 MB / 0.9208 GB, free: 67.27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03116/6.014, allocations: 6.079 MB / 0.9267 GB, free: 62.75 MB / 474.7 MB Notification: Performance of SimCode: time 2.866e-06/6.014, allocations: 0 / 0.9267 GB, free: 62.75 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat