Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") [: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 1.746/1.746, allocations: 209.4 MB / 216.3 MB, free: 6.77 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.595e-06/8.748e-06, allocations: 0 / 267.3 MB, free: 5.223 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08754, allocations: 48.68 MB / 315.9 MB, free: 4.438 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.3764, allocations: 98.33 MB / 414.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.3767, allocations: 78.55 kB / 414.4 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.7924/1.169, allocations: 131 MB / 0.5326 GB, free: 84.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000564/1.17, allocations: 131.4 kB / 0.5327 GB, free: 84.5 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.02596/1.196, allocations: 6.891 MB / 0.5395 GB, free: 81.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/1.196, allocations: 9.219 kB / 0.5395 GB, free: 81.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0404/1.236, allocations: 6.989 MB / 0.5463 GB, free: 79.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03042/1.267, allocations: 9.839 MB / 0.5559 GB, free: 73.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/1.267, allocations: 211.9 kB / 0.5561 GB, free: 73.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002747/1.27, allocations: 395.8 kB / 0.5565 GB, free: 73.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02074/1.291, allocations: 10.04 MB / 0.5663 GB, free: 63.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0307/1.321, allocations: 14.58 MB / 0.5805 GB, free: 47.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004059/1.322, allocations: 103 kB / 0.5806 GB, free: 47.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002268/1.324, allocations: 44 kB / 0.5807 GB, free: 47.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002756/1.327, allocations: 1.695 MB / 0.5823 GB, free: 45.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2447/1.572, allocations: 75.79 MB / 0.6563 GB, free: 90.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008664/1.58, allocations: 5.318 MB / 0.6615 GB, free: 89.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007067/1.587, allocations: 4.275 MB / 0.6657 GB, free: 89.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02939/1.617, allocations: 14.27 MB / 0.6796 GB, free: 85.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/1.617, allocations: 65.72 kB / 0.6797 GB, free: 85.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 9.577e-06/1.617, allocations: 0 / 0.6797 GB, free: 85.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=360): time 0.1415/1.758, allocations: 39.2 MB / 0.718 GB, free: 72.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/1.759, allocations: 274.9 kB / 0.7182 GB, free: 72.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01169/1.77, allocations: 4.734 MB / 0.7229 GB, free: 70.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007859/1.771, allocations: 29.2 kB / 0.7229 GB, free: 70.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00324/1.774, allocations: 4.31 MB / 0.7271 GB, free: 67.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001861/1.776, allocations: 1.29 MB / 0.7284 GB, free: 66.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000972/1.777, allocations: 0 / 0.7284 GB, free: 66.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005673/1.778, allocations: 0.7049 MB / 0.7291 GB, free: 65.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01162/1.789, allocations: 3.676 MB / 0.7326 GB, free: 62.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01663/1.806, allocations: 8.997 MB / 0.7414 GB, free: 51.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02197/1.828, allocations: 6.005 MB / 0.7473 GB, free: 46.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002164/1.828, allocations: 52 kB / 0.7473 GB, free: 46.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=1228) (initialization): time 0.05121/1.88, allocations: 15.69 MB / 0.7627 GB, free: 34.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/1.88, allocations: 10.91 kB / 0.7627 GB, free: 34.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000238/1.88, allocations: 188 kB / 0.7629 GB, free: 33.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01765/1.898, allocations: 3.913 MB / 0.7667 GB, free: 31.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009057/1.907, allocations: 2.06 MB / 0.7687 GB, free: 29.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04425/1.951, allocations: 20.79 MB / 0.789 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/1.961, allocations: 334 kB / 0.7893 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001932/1.963, allocations: 0.5558 MB / 0.7899 GB, free: 10.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1109): * Single equations (assignments): 1104 * 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 {(2,100.0%) 43,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001767/1.965, allocations: 0.5766 MB / 0.7904 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/1.967, allocations: 0.5399 MB / 0.7909 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02997/1.997, allocations: 9.732 MB / 0.8004 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.134e-05/1.997, allocations: 32 kB / 0.8005 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.812e-05/1.997, allocations: 20 kB / 0.8005 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.229e-05/1.997, allocations: 19.94 kB / 0.8005 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1977/2.195, allocations: 18.07 MB / 0.8182 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-05/2.195, allocations: 0 / 0.8182 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00352/2.198, allocations: 481 kB / 0.8186 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01712/2.215, allocations: 3.457 MB / 0.822 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008378/2.216, allocations: 19.17 kB / 0.822 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04167/2.258, allocations: 18.41 MB / 0.84 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.371e-06/2.258, allocations: 0 / 0.84 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03851/2.296, allocations: 14.4 MB / 0.8541 GB, free: 109.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003794/2.3, allocations: 1.074 MB / 0.8551 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002042/2.302, allocations: 3.047 kB / 0.8551 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005102/2.307, allocations: 135.1 kB / 0.8552 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.309, allocations: 169.9 kB / 0.8554 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005633/2.309, allocations: 100.2 kB / 0.8555 GB, free: 109 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.007646/2.317, allocations: 3.206 MB / 0.8586 GB, free: 107.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01079/2.328, allocations: 1.566 MB / 0.8602 GB, free: 107.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * 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%) 39,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009394/2.329, allocations: 185.3 kB / 0.8603 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01843/2.347, allocations: 9.158 MB / 0.8693 GB, free: 105 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.712e-06/2.347, allocations: 3.719 kB / 0.8693 GB, free: 105 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007351/2.355, allocations: 3.553 MB / 0.8727 GB, free: 102.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004171/2.359, allocations: 0.5591 MB / 0.8733 GB, free: 102.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03412/2.393, allocations: 13.32 MB / 0.8863 GB, free: 90.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0186/2.412, allocations: 5.365 MB / 0.8915 GB, free: 86.72 MB / 426.7 MB Notification: Performance of SimCode: time 2.744e-06/2.412, allocations: 7.969 kB / 0.8915 GB, free: 86.72 MB / 426.7 MB Notification: Performance of Templates: time 0.4094/2.821, allocations: 77.02 MB / 0.9667 GB, free: 109.3 MB / 426.7 MB