Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",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.613/2.613, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2019/2.815, allocations: 57.2 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/3.143, allocations: 54.84 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5627/3.705, allocations: 101.7 MB / 455.8 MB, free: 34.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004838/3.706, allocations: 81.62 kB / 455.8 MB, free: 34.34 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: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.7154/4.421, allocations: 108.1 MB / 0.5507 GB, free: 2.914 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.49e-05/4.421, allocations: 12 kB / 0.5508 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09537/4.517, allocations: 6.555 MB / 0.5572 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04928/4.566, allocations: 6.945 MB / 0.5639 GB, free: 5.324 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007651/4.567, allocations: 176 kB / 0.5641 GB, free: 5.152 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004723/4.572, allocations: 323.8 kB / 0.5644 GB, free: 4.836 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03951/4.611, allocations: 7.795 MB / 0.572 GB, free: 13.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05598/4.667, allocations: 11.55 MB / 0.5833 GB, free: 340 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007376/4.668, allocations: 71.3 kB / 0.5834 GB, free: 268 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004095/4.672, allocations: 40 kB / 0.5834 GB, free: 228 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004897/4.677, allocations: 1.211 MB / 0.5846 GB, free: 15.01 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3844/5.062, allocations: 57.19 MB / 0.6404 GB, free: 102.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00795/5.07, allocations: 3.61 MB / 0.644 GB, free: 101.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005876/5.076, allocations: 2.557 MB / 0.6465 GB, free: 101.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02311/5.099, allocations: 7.991 MB / 0.6543 GB, free: 99.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/5.099, allocations: 52.81 kB / 0.6543 GB, free: 99.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 7.915e-06/5.099, allocations: 0 / 0.6543 GB, free: 99.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=218): time 0.07795/5.177, allocations: 18.06 MB / 0.672 GB, free: 96.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/5.177, allocations: 200.5 kB / 0.6721 GB, free: 96.03 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/5.188, allocations: 3.72 MB / 0.6758 GB, free: 95.65 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005442/5.189, allocations: 25.7 kB / 0.6758 GB, free: 95.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003252/5.192, allocations: 3.474 MB / 0.6792 GB, free: 93.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001553/5.194, allocations: 0.8036 MB / 0.68 GB, free: 93.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009235/5.195, allocations: 0 / 0.68 GB, free: 93.21 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007107/5.196, allocations: 0.6005 MB / 0.6806 GB, free: 92.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009002/5.205, allocations: 2.177 MB / 0.6827 GB, free: 92.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01394/5.219, allocations: 6.245 MB / 0.6888 GB, free: 87.58 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/5.233, allocations: 3.71 MB / 0.6924 GB, free: 86.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002098/5.233, allocations: 41.34 kB / 0.6925 GB, free: 86.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.03874/5.272, allocations: 8.162 MB / 0.7004 GB, free: 84.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/5.272, allocations: 3.562 kB / 0.7004 GB, free: 84.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003622/5.272, allocations: 147.6 kB / 0.7006 GB, free: 84.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00804/5.28, allocations: 0.9153 MB / 0.7015 GB, free: 84.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01709/5.297, allocations: 1.545 MB / 0.703 GB, free: 84.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01645/5.314, allocations: 6.885 MB / 0.7097 GB, free: 79.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009337/5.323, allocations: 212.2 kB / 0.7099 GB, free: 79.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001876/5.325, allocations: 416.5 kB / 0.7103 GB, free: 79.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (825): * Single equations (assignments): 820 * 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 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002574/5.328, allocations: 476.4 kB / 0.7108 GB, free: 79.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001268/5.329, allocations: 400.4 kB / 0.7111 GB, free: 79.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01439/5.344, allocations: 3.421 MB / 0.7145 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/5.344, allocations: 23.34 kB / 0.7145 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/5.344, allocations: 11.72 kB / 0.7145 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-05/5.344, allocations: 7.828 kB / 0.7145 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03447/5.378, allocations: 8.206 MB / 0.7225 GB, free: 75.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-05/5.378, allocations: 1.375 kB / 0.7225 GB, free: 75.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004946/5.383, allocations: 328 kB / 0.7228 GB, free: 75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005394/5.389, allocations: 0.6646 MB / 0.7235 GB, free: 74.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005916/5.39, allocations: 13.06 kB / 0.7235 GB, free: 74.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/5.405, allocations: 6.034 MB / 0.7294 GB, free: 70.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/5.405, allocations: 1.094 kB / 0.7294 GB, free: 70.95 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02286/5.428, allocations: 6.264 MB / 0.7355 GB, free: 67.39 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03229/5.46, allocations: 8.794 MB / 0.7441 GB, free: 59.49 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004051/5.464, allocations: 0.697 MB / 0.7448 GB, free: 58.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001975/5.466, allocations: 7.891 kB / 0.7448 GB, free: 58.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005949/5.472, allocations: 62.88 kB / 0.7449 GB, free: 58.78 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009233/5.473, allocations: 97.56 kB / 0.7449 GB, free: 58.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004429/5.474, allocations: 59.89 kB / 0.745 GB, free: 58.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01001/5.484, allocations: 2.529 MB / 0.7475 GB, free: 56.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0159/5.5, allocations: 1.016 MB / 0.7485 GB, free: 55.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00109/5.501, allocations: 151.3 kB / 0.7486 GB, free: 55.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0175/5.518, allocations: 5.426 MB / 0.7539 GB, free: 50.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/5.519, allocations: 4 kB / 0.7539 GB, free: 50.38 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006303/5.525, allocations: 1.868 MB / 0.7557 GB, free: 48.67 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/5.53, allocations: 435.2 kB / 0.7562 GB, free: 48.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03605/5.566, allocations: 9.352 MB / 0.7653 GB, free: 39.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01388/5.58, allocations: 4.407 MB / 0.7696 GB, free: 36.61 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/5.58, allocations: 0 / 0.7696 GB, free: 36.61 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat