Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.589/2.589, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1933/2.782, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/3.1, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4693/3.569, allocations: 100.8 MB / 454.9 MB, free: 34.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003984/3.57, allocations: 83.08 kB / 455 MB, free: 34.09 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.8578/4.427, allocations: 133.5 MB / 0.5746 GB, free: 10.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/4.428, allocations: 8 kB / 0.5746 GB, free: 10.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1179/4.545, allocations: 9.014 MB / 0.5834 GB, free: 1.348 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05825/4.604, allocations: 9.081 MB / 0.5923 GB, free: 8.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005476/4.604, allocations: 211.9 kB / 0.5925 GB, free: 7.973 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004667/4.609, allocations: 391.8 kB / 0.5929 GB, free: 7.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04635/4.655, allocations: 10.39 MB / 0.603 GB, free: 13.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2854/4.941, allocations: 14.58 MB / 0.6173 GB, free: 111.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006144/4.942, allocations: 83.91 kB / 0.6173 GB, free: 111.4 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003812/4.945, allocations: 37.66 kB / 0.6174 GB, free: 111.4 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004509/4.95, allocations: 1.626 MB / 0.619 GB, free: 111.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1466/5.097, allocations: 69.8 MB / 0.6871 GB, free: 76.56 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/5.119, allocations: 6.961 MB / 0.6939 GB, free: 75.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01343/5.132, allocations: 5.668 MB / 0.6995 GB, free: 74.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0567/5.189, allocations: 19.48 MB / 0.7185 GB, free: 64.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.503e-05/5.189, allocations: 66.2 kB / 0.7185 GB, free: 64.78 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 7.885e-06/5.189, allocations: 0 / 0.7185 GB, free: 64.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.2793/5.468, allocations: 42.37 MB / 0.7599 GB, free: 50.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002352/5.469, allocations: 323.6 kB / 0.7602 GB, free: 50.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02151/5.49, allocations: 4.384 MB / 0.7645 GB, free: 48.48 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001922/5.492, allocations: 25.7 kB / 0.7645 GB, free: 48.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005565/5.498, allocations: 3.952 MB / 0.7684 GB, free: 44.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00421/5.502, allocations: 1.347 MB / 0.7697 GB, free: 43.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002602/5.505, allocations: 0 / 0.7697 GB, free: 43.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001305/5.506, allocations: 0.6716 MB / 0.7704 GB, free: 43.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01589/5.522, allocations: 4.55 MB / 0.7748 GB, free: 39.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0179/5.54, allocations: 9.058 MB / 0.7837 GB, free: 28.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01788/5.558, allocations: 6.374 MB / 0.7899 GB, free: 23.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001778/5.558, allocations: 48 kB / 0.7899 GB, free: 23.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=1114) (initialization): time 0.07043/5.629, allocations: 16.55 MB / 0.8061 GB, free: 9.473 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/5.629, allocations: 4 kB / 0.8061 GB, free: 9.469 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002671/5.629, allocations: 156 kB / 0.8062 GB, free: 9.316 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03575/5.665, allocations: 4.418 MB / 0.8106 GB, free: 6.172 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01725/5.682, allocations: 1.981 MB / 0.8125 GB, free: 4.488 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3156/5.998, allocations: 23.1 MB / 0.8351 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01498/6.013, allocations: 348.7 kB / 0.8354 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003153/6.016, allocations: 0.5013 MB / 0.8359 GB, free: 104.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 54 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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 (1011): * Single equations (assignments): 1005 * 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 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005517/6.022, allocations: 0.5076 MB / 0.8364 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00476/6.026, allocations: 0.5169 MB / 0.8369 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06019/6.087, allocations: 11.95 MB / 0.8486 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001845/6.087, allocations: 36.22 kB / 0.8486 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-05/6.087, allocations: 13.78 kB / 0.8486 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001169/6.087, allocations: 25.22 kB / 0.8486 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08683/6.174, allocations: 20.7 MB / 0.8688 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.618e-05/6.174, allocations: 3.875 kB / 0.8688 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00938/6.183, allocations: 0.6117 MB / 0.8694 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03364/6.217, allocations: 4.193 MB / 0.8735 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001809/6.219, allocations: 10.56 kB / 0.8735 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07168/6.291, allocations: 22.42 MB / 0.8954 GB, free: 92.81 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/6.291, allocations: 0 / 0.8954 GB, free: 92.81 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07658/6.367, allocations: 18.33 MB / 0.9133 GB, free: 86.36 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09294/6.46, allocations: 24.94 MB / 0.9377 GB, free: 73.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01021/6.471, allocations: 1.314 MB / 0.939 GB, free: 72.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004276/6.475, allocations: 4 kB / 0.939 GB, free: 72.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009421/6.485, allocations: 190 kB / 0.9392 GB, free: 72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002079/6.487, allocations: 181.9 kB / 0.9393 GB, free: 71.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008789/6.488, allocations: 98.64 kB / 0.9394 GB, free: 71.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01099/6.499, allocations: 3.017 MB / 0.9424 GB, free: 69.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02018/6.519, allocations: 1.605 MB / 0.9439 GB, free: 67.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (295): * Single equations (assignments): 289 * 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 {(3,100.0%) 12,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001952/6.521, allocations: 159.4 kB / 0.9441 GB, free: 67.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04012/6.561, allocations: 11.53 MB / 0.9553 GB, free: 57.49 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/6.561, allocations: 6.938 kB / 0.9554 GB, free: 57.49 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02369/6.585, allocations: 5.455 MB / 0.9607 GB, free: 52.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007432/6.592, allocations: 0.5444 MB / 0.9612 GB, free: 52.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05886/6.651, allocations: 14.78 MB / 0.9756 GB, free: 39.35 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2446/6.896, allocations: 5.444 MB / 0.981 GB, free: 105.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/6.896, allocations: 0 / 0.981 GB, free: 105.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat