Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_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.691/2.691, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1959/2.887, allocations: 57.2 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/3.201, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4812/3.682, allocations: 103.3 MB / 457.3 MB, free: 34.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/3.683, allocations: 81.12 kB / 457.4 MB, free: 34.93 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.8632/4.546, allocations: 165.9 MB / 0.6087 GB, free: 6.988 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/4.546, allocations: 8 kB / 0.6087 GB, free: 6.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4949/5.041, allocations: 9.058 MB / 0.6176 GB, free: 107.5 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03616/5.077, allocations: 8.48 MB / 0.6259 GB, free: 107.1 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005966/5.078, allocations: 270.2 kB / 0.6261 GB, free: 107.1 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005221/5.083, allocations: 493.6 kB / 0.6266 GB, free: 107.1 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04101/5.124, allocations: 13.43 MB / 0.6397 GB, free: 107.1 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06853/5.193, allocations: 19.12 MB / 0.6584 GB, free: 103.1 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007517/5.194, allocations: 82.53 kB / 0.6585 GB, free: 103.1 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005588/5.199, allocations: 40.59 kB / 0.6585 GB, free: 103.1 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005281/5.205, allocations: 2.248 MB / 0.6607 GB, free: 103.1 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.189/5.394, allocations: 82.23 MB / 0.741 GB, free: 53.65 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02211/5.416, allocations: 6.506 MB / 0.7474 GB, free: 50.67 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01841/5.434, allocations: 5.289 MB / 0.7525 GB, free: 48.48 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06308/5.497, allocations: 14.83 MB / 0.767 GB, free: 41.39 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000119/5.498, allocations: 79.92 kB / 0.7671 GB, free: 41.3 MB / 474.8 MB Notification: Performance of pre-optimization done (n=422): time 1.511e-05/5.498, allocations: 0 / 0.7671 GB, free: 41.3 MB / 474.8 MB Notification: Performance of matching and sorting (n=487): time 0.1591/5.657, allocations: 39.38 MB / 0.8055 GB, free: 6.68 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/5.657, allocations: 230.9 kB / 0.8058 GB, free: 6.41 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01797/5.675, allocations: 5.393 MB / 0.811 GB, free: 1.676 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001653/5.677, allocations: 25.7 kB / 0.811 GB, free: 1.645 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2303/5.907, allocations: 5.507 MB / 0.8164 GB, free: 101 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003159/5.91, allocations: 1.731 MB / 0.8181 GB, free: 100.2 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001851/5.912, allocations: 0 / 0.8181 GB, free: 100.2 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001412/5.913, allocations: 0.8233 MB / 0.8189 GB, free: 99.86 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0154/5.929, allocations: 5.07 MB / 0.8239 GB, free: 99.84 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02032/5.949, allocations: 11.57 MB / 0.8352 GB, free: 91.48 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02129/5.971, allocations: 7.75 MB / 0.8427 GB, free: 91.42 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003396/5.971, allocations: 64.25 kB / 0.8428 GB, free: 91.42 MB / 474.8 MB Notification: Performance of matching and sorting (n=1569) (initialization): time 0.05895/6.03, allocations: 16.63 MB / 0.859 GB, free: 90.54 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/6.03, allocations: 7.562 kB / 0.8591 GB, free: 90.54 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004381/6.03, allocations: 227.4 kB / 0.8593 GB, free: 90.54 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01009/6.041, allocations: 1.675 MB / 0.8609 GB, free: 90.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03087/6.072, allocations: 2.682 MB / 0.8635 GB, free: 90.27 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03291/6.104, allocations: 12.9 MB / 0.8761 GB, free: 84.96 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0176/6.122, allocations: 387.9 kB / 0.8765 GB, free: 84.94 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004093/6.126, allocations: 0.6714 MB / 0.8771 GB, free: 84.94 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1048 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1445): * Single equations (assignments): 1432 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006821/6.133, allocations: 0.6714 MB / 0.8778 GB, free: 84.6 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003008/6.136, allocations: 0.5937 MB / 0.8784 GB, free: 84.27 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03894/6.175, allocations: 9.488 MB / 0.8876 GB, free: 84 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002949/6.176, allocations: 74.06 kB / 0.8877 GB, free: 84 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.04e-05/6.176, allocations: 10.03 kB / 0.8877 GB, free: 84 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000118/6.176, allocations: 23.86 kB / 0.8877 GB, free: 84 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06449/6.24, allocations: 19.2 MB / 0.9065 GB, free: 78.27 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.686e-05/6.24, allocations: 7 kB / 0.9065 GB, free: 78.27 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009674/6.25, allocations: 0.6894 MB / 0.9072 GB, free: 78.21 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00904/6.259, allocations: 1.288 MB / 0.9084 GB, free: 77.91 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001394/6.261, allocations: 18.47 kB / 0.9085 GB, free: 77.91 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02743/6.288, allocations: 11.78 MB / 0.92 GB, free: 70.17 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/6.288, allocations: 7.719 kB / 0.92 GB, free: 70.17 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05749/6.346, allocations: 16.68 MB / 0.9363 GB, free: 62.33 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06759/6.413, allocations: 23.02 MB / 0.9587 GB, free: 41.29 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008734/6.422, allocations: 1.389 MB / 0.9601 GB, free: 40 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004293/6.426, allocations: 14.81 kB / 0.9601 GB, free: 39.98 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01199/6.439, allocations: 153.7 kB / 0.9602 GB, free: 39.89 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002421/6.441, allocations: 225.1 kB / 0.9605 GB, free: 39.76 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00172/6.443, allocations: 119.5 kB / 0.9606 GB, free: 39.65 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.01601/6.459, allocations: 3.603 MB / 0.9641 GB, free: 36.52 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02716/6.486, allocations: 1.785 MB / 0.9658 GB, free: 34.75 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (373): * Single equations (assignments): 360 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00226/6.488, allocations: 169 kB / 0.966 GB, free: 34.59 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.2674/6.756, allocations: 12.53 MB / 0.9782 GB, free: 92.14 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.906e-05/6.756, allocations: 3.625 kB / 0.9782 GB, free: 92.14 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01424/6.77, allocations: 4.826 MB / 0.983 GB, free: 91.72 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006387/6.777, allocations: 0.5269 MB / 0.9835 GB, free: 91.7 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06579/6.842, allocations: 17.48 MB / 1.001 GB, free: 88.77 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02524/6.868, allocations: 6.788 MB / 1.007 GB, free: 87.85 MB / 474.8 MB Notification: Performance of SimCode: time 2.134e-06/6.868, allocations: 0 / 1.007 GB, free: 87.85 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat