Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",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.449/2.449, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1824/2.631, allocations: 57.21 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/2.911, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4863/3.397, allocations: 101.8 MB / 455.9 MB, free: 34.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003653/3.398, allocations: 84.47 kB / 455.9 MB, free: 34.31 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: 2273 * Number of variables: 2273 Notification: Performance of Generate backend data structure: time 0.8217/4.22, allocations: 151.2 MB / 0.5929 GB, free: 7.531 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/4.22, allocations: 8 kB / 0.5929 GB, free: 7.523 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1622/4.382, allocations: 14.77 MB / 0.6073 GB, free: 8.723 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2808/4.663, allocations: 13.3 MB / 0.6203 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004638/4.663, allocations: 213.8 kB / 0.6205 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004129/4.667, allocations: 414.7 kB / 0.6209 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02876/4.696, allocations: 9.379 MB / 0.63 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04258/4.739, allocations: 14.52 MB / 0.6442 GB, free: 107.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005587/4.739, allocations: 111.2 kB / 0.6443 GB, free: 107.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003049/4.742, allocations: 49 kB / 0.6444 GB, free: 107.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004023/4.747, allocations: 1.584 MB / 0.6459 GB, free: 107.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1639/4.911, allocations: 76.68 MB / 0.7208 GB, free: 61.75 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/4.924, allocations: 5.556 MB / 0.7262 GB, free: 59.08 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01051/4.935, allocations: 4.59 MB / 0.7307 GB, free: 57.12 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04364/4.978, allocations: 14.61 MB / 0.745 GB, free: 49.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.258e-05/4.978, allocations: 67.72 kB / 0.7451 GB, free: 49.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=262): time 7.915e-06/4.979, allocations: 3.688 kB / 0.7451 GB, free: 49.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=341): time 0.2326/5.211, allocations: 40.47 MB / 0.7846 GB, free: 27.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/5.211, allocations: 261.5 kB / 0.7848 GB, free: 26.88 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01774/5.229, allocations: 5.732 MB / 0.7904 GB, free: 21.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001328/5.23, allocations: 29.7 kB / 0.7904 GB, free: 21.83 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00472/5.235, allocations: 4.463 MB / 0.7948 GB, free: 17.83 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003056/5.238, allocations: 1.271 MB / 0.796 GB, free: 16.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001939/5.24, allocations: 2.875 kB / 0.796 GB, free: 16.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008722/5.241, allocations: 0.7097 MB / 0.7967 GB, free: 16.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01313/5.254, allocations: 4.381 MB / 0.801 GB, free: 12.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01793/5.272, allocations: 9.737 MB / 0.8105 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.232/5.504, allocations: 6.925 MB / 0.8173 GB, free: 99.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001872/5.505, allocations: 56.03 kB / 0.8173 GB, free: 99.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=1248) (initialization): time 0.1664/5.671, allocations: 24.59 MB / 0.8414 GB, free: 99.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/5.671, allocations: 7 kB / 0.8414 GB, free: 99.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1106/5.782, allocations: 16 MB / 0.857 GB, free: 99.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.108/5.89, allocations: 11.39 MB / 0.8681 GB, free: 99.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01713/5.907, allocations: 2.081 MB / 0.8701 GB, free: 99.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09242/5.999, allocations: 28.93 MB / 0.8984 GB, free: 94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01693/6.016, allocations: 446.9 kB / 0.8988 GB, free: 94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00315/6.02, allocations: 0.5642 MB / 0.8994 GB, free: 94 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 866 * Number of states: 0 () * Number of discrete variables: 60 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[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 (1102): * Single equations (assignments): 1089 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004634/6.024, allocations: 0.5936 MB / 0.8999 GB, free: 93.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002453/6.027, allocations: 0.626 MB / 0.9006 GB, free: 93.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04878/6.076, allocations: 9.74 MB / 0.9101 GB, free: 90.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04037/6.116, allocations: 8.551 MB / 0.9184 GB, free: 87.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.063e-05/6.116, allocations: 16 kB / 0.9184 GB, free: 87.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001298/6.116, allocations: 13.83 kB / 0.9185 GB, free: 87.21 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1112/6.227, allocations: 21.96 MB / 0.9399 GB, free: 69.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-05/6.228, allocations: 0 / 0.9399 GB, free: 69.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01098/6.239, allocations: 480 kB / 0.9403 GB, free: 69.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03763/6.276, allocations: 3.819 MB / 0.9441 GB, free: 66.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001457/6.278, allocations: 54.66 kB / 0.9441 GB, free: 66.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06001/6.338, allocations: 21.81 MB / 0.9654 GB, free: 45.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002808/6.341, allocations: 2.804 MB / 0.9682 GB, free: 42.87 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05611/6.397, allocations: 15.05 MB / 0.9829 GB, free: 27.64 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3092/6.706, allocations: 20.42 MB / 1.003 GB, free: 93.46 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006309/6.713, allocations: 1.295 MB / 1.004 GB, free: 93.37 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003379/6.716, allocations: 40.67 kB / 1.004 GB, free: 93.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009958/6.726, allocations: 204.1 kB / 1.004 GB, free: 93.37 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001596/6.728, allocations: 167.6 kB / 1.004 GB, free: 93.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006868/6.728, allocations: 92.42 kB / 1.005 GB, free: 93.36 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01583/6.744, allocations: 3.971 MB / 1.008 GB, free: 93.15 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0197/6.764, allocations: 1.858 MB / 1.01 GB, free: 93.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 222 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(3,100.0%) 33,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002018/6.766, allocations: 172.9 kB / 1.01 GB, free: 93.06 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04019/6.806, allocations: 11.19 MB / 1.021 GB, free: 92.37 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/6.806, allocations: 0 / 1.021 GB, free: 92.37 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01774/6.824, allocations: 4.788 MB / 1.026 GB, free: 91.51 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/6.835, allocations: 0.7841 MB / 1.027 GB, free: 91.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06528/6.9, allocations: 16.11 MB / 1.043 GB, free: 88.71 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01822/6.918, allocations: 5.948 MB / 1.048 GB, free: 87.82 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/6.918, allocations: 0 / 1.048 GB, free: 87.82 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat