Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",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.54/2.54, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1983/2.738, allocations: 57.21 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/3.067, allocations: 54.84 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.533/3.6, allocations: 101.9 MB / 456 MB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/3.6, allocations: 85.97 kB / 456.1 MB, free: 34.59 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: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.5372/4.138, allocations: 99.66 MB / 0.5427 GB, free: 11.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/4.138, allocations: 8 kB / 0.5427 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02807/4.166, allocations: 1.927 MB / 0.5446 GB, free: 9.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03334/4.199, allocations: 5.019 MB / 0.5495 GB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006272/4.2, allocations: 175.9 kB / 0.5497 GB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004182/4.204, allocations: 303.9 kB / 0.55 GB, free: 3.629 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04075/4.245, allocations: 8.041 MB / 0.5578 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04584/4.291, allocations: 11.68 MB / 0.5692 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004415/4.291, allocations: 67.39 kB / 0.5693 GB, free: 14.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003183/4.294, allocations: 32 kB / 0.5693 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003972/4.298, allocations: 1.282 MB / 0.5706 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3343/4.633, allocations: 54.28 MB / 0.6236 GB, free: 107.4 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01345/4.646, allocations: 4.549 MB / 0.628 GB, free: 106.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01073/4.657, allocations: 3.428 MB / 0.6314 GB, free: 106.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03912/4.696, allocations: 10.61 MB / 0.6417 GB, free: 104.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.842e-05/4.696, allocations: 59.25 kB / 0.6418 GB, free: 104.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=218): time 1.386e-05/4.696, allocations: 0 / 0.6418 GB, free: 104.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=249): time 0.1054/4.802, allocations: 22.79 MB / 0.664 GB, free: 101.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/4.802, allocations: 152 kB / 0.6642 GB, free: 101.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009819/4.812, allocations: 3.326 MB / 0.6674 GB, free: 100.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008701/4.813, allocations: 25.7 kB / 0.6675 GB, free: 100.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003032/4.816, allocations: 3.381 MB / 0.6708 GB, free: 98.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00192/4.818, allocations: 0.9046 MB / 0.6716 GB, free: 98.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/4.819, allocations: 2 kB / 0.6716 GB, free: 98.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007/4.82, allocations: 0.6071 MB / 0.6722 GB, free: 98.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008968/4.829, allocations: 2.957 MB / 0.6751 GB, free: 97.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0118/4.841, allocations: 7.004 MB / 0.682 GB, free: 90.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/4.854, allocations: 4.519 MB / 0.6864 GB, free: 89.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001662/4.854, allocations: 37.75 kB / 0.6864 GB, free: 89.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=915) (initialization): time 0.03562/4.889, allocations: 9.991 MB / 0.6962 GB, free: 86.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/4.89, allocations: 7.156 kB / 0.6962 GB, free: 86.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002618/4.89, allocations: 144.7 kB / 0.6963 GB, free: 86.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006435/4.896, allocations: 1.065 MB / 0.6974 GB, free: 86.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01484/4.911, allocations: 1.711 MB / 0.699 GB, free: 86.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0167/4.928, allocations: 5.528 MB / 0.7044 GB, free: 83.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/4.939, allocations: 241.4 kB / 0.7047 GB, free: 83.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002524/4.942, allocations: 438.7 kB / 0.7051 GB, free: 83.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (876): * Single equations (assignments): 872 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00343/4.945, allocations: 468.2 kB / 0.7055 GB, free: 83.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/4.947, allocations: 366.5 kB / 0.7059 GB, free: 83.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02366/4.971, allocations: 5.43 MB / 0.7112 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/4.971, allocations: 23.5 kB / 0.7112 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.383e-05/4.971, allocations: 7.516 kB / 0.7112 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-05/4.971, allocations: 12.3 kB / 0.7112 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04113/5.012, allocations: 10.9 MB / 0.7219 GB, free: 75.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.794e-05/5.013, allocations: 0 / 0.7219 GB, free: 75.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00664/5.019, allocations: 473.3 kB / 0.7223 GB, free: 74.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005636/5.025, allocations: 0.8658 MB / 0.7232 GB, free: 74.36 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008245/5.026, allocations: 15.09 kB / 0.7232 GB, free: 74.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/5.039, allocations: 5.24 MB / 0.7283 GB, free: 69.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/5.039, allocations: 7.938 kB / 0.7283 GB, free: 69.69 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02772/5.066, allocations: 9.697 MB / 0.7378 GB, free: 61.07 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03944/5.106, allocations: 13.55 MB / 0.751 GB, free: 48.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00371/5.11, allocations: 0.8463 MB / 0.7518 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001626/5.111, allocations: 4 kB / 0.7518 GB, free: 48.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008398/5.12, allocations: 101.2 kB / 0.7519 GB, free: 48.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001771/5.122, allocations: 134.9 kB / 0.7521 GB, free: 48.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001122/5.123, allocations: 67.75 kB / 0.7521 GB, free: 47.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008262/5.131, allocations: 2.223 MB / 0.7543 GB, free: 46.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01345/5.145, allocations: 1.089 MB / 0.7554 GB, free: 44.97 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 218 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001346/5.146, allocations: 143.3 kB / 0.7555 GB, free: 44.83 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02068/5.167, allocations: 7.006 MB / 0.7623 GB, free: 38.56 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/5.167, allocations: 0 / 0.7623 GB, free: 38.56 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01056/5.177, allocations: 2.687 MB / 0.765 GB, free: 36.15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005626/5.183, allocations: 333.2 kB / 0.7653 GB, free: 35.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05434/5.237, allocations: 10.07 MB / 0.7751 GB, free: 27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01988/5.257, allocations: 4.25 MB / 0.7793 GB, free: 23.75 MB / 474.7 MB Notification: Performance of SimCode: time 2.324e-06/5.257, allocations: 3.938 kB / 0.7793 GB, free: 23.75 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_3_res.mat does not exist to compare? outputFormat=mat