Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7622/0.7622, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001827/0.001827, allocations: 156 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.751e-06/5.771e-06, allocations: 0 / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03788/0.0379, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1369/0.1748, allocations: 54.14 MB / 252.8 MB, free: 472 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.1751, allocations: 74.97 kB / 252.8 MB, free: 460 kB / 170.7 MB Notification: Performance of FrontEnd: time 0.8948/1.07, allocations: 262.6 MB / 0.5034 GB, free: 7.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0006128/1.071, allocations: 172 kB / 0.5035 GB, free: 7.652 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3095 * Number of variables: 3095 Notification: Performance of Generate backend data structure: time 0.2038/1.274, allocations: 11.08 MB / 0.5143 GB, free: 36.86 MB / 250.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.275, allocations: 10.19 kB / 0.5144 GB, free: 36.86 MB / 250.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.184/1.459, allocations: 33.04 MB / 0.5466 GB, free: 35.18 MB / 250.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03497/1.494, allocations: 12.36 MB / 0.5587 GB, free: 34.59 MB / 250.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000673/1.494, allocations: 295 kB / 0.559 GB, free: 34.59 MB / 250.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00695/1.501, allocations: 0.5005 MB / 0.5595 GB, free: 34.58 MB / 250.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04666/1.548, allocations: 23.83 MB / 0.5827 GB, free: 27.83 MB / 250.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0603/1.608, allocations: 26.52 MB / 0.6086 GB, free: 5.516 MB / 250.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006745/1.609, allocations: 73.27 kB / 0.6087 GB, free: 5.469 MB / 250.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007631/1.617, allocations: 27.91 kB / 0.6087 GB, free: 5.441 MB / 250.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1645/1.781, allocations: 11.7 MB / 0.6202 GB, free: 36.83 MB / 250.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8153/2.597, allocations: 169.2 MB / 0.7854 GB, free: 25.45 MB / 266.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01/2.607, allocations: 7.94 MB / 0.7931 GB, free: 22.67 MB / 266.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008239/2.615, allocations: 6.62 MB / 0.7996 GB, free: 19.31 MB / 266.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2708/2.886, allocations: 39.45 MB / 0.8381 GB, free: 49.05 MB / 266.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.7e-05/2.886, allocations: 78.03 kB / 0.8382 GB, free: 49.01 MB / 266.8 MB Notification: Performance of pre-optimization done (n=408): time 1.157e-05/2.886, allocations: 0 / 0.8382 GB, free: 49.01 MB / 266.8 MB Notification: Performance of matching and sorting (n=505): time 0.1247/3.011, allocations: 47.18 MB / 0.8843 GB, free: 40.5 MB / 266.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/3.011, allocations: 283.7 kB / 0.8845 GB, free: 40.21 MB / 266.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/3.024, allocations: 6.033 MB / 0.8904 GB, free: 37.97 MB / 266.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001517/3.026, allocations: 25.7 kB / 0.8905 GB, free: 37.94 MB / 266.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003632/3.029, allocations: 5.645 MB / 0.896 GB, free: 33.63 MB / 266.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00346/3.033, allocations: 1.789 MB / 0.8977 GB, free: 32.29 MB / 266.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002432/3.035, allocations: 0 / 0.8977 GB, free: 32.29 MB / 266.8 MB Notification: Performance of setup shared object (initialization): time 0.001392/3.037, allocations: 0.8346 MB / 0.8985 GB, free: 31.75 MB / 266.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01109/3.048, allocations: 5.936 MB / 0.9043 GB, free: 27.3 MB / 266.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1545/3.202, allocations: 13.16 MB / 0.9172 GB, free: 39.87 MB / 266.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/3.216, allocations: 8.017 MB / 0.925 GB, free: 39.81 MB / 266.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003155/3.216, allocations: 69.59 kB / 0.9251 GB, free: 39.81 MB / 266.8 MB Notification: Performance of matching and sorting (n=1648) (initialization): time 0.04933/3.266, allocations: 19.98 MB / 0.9446 GB, free: 38.87 MB / 266.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/3.266, allocations: 3.5 kB / 0.9446 GB, free: 38.87 MB / 266.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004723/3.266, allocations: 250.2 kB / 0.9448 GB, free: 38.87 MB / 266.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01369/3.28, allocations: 3.821 MB / 0.9486 GB, free: 38.84 MB / 266.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01223/3.292, allocations: 2.909 MB / 0.9514 GB, free: 38.59 MB / 266.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02292/3.315, allocations: 14.53 MB / 0.9656 GB, free: 35.83 MB / 266.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02215/3.337, allocations: 1.787 MB / 0.9673 GB, free: 35.83 MB / 266.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004122/3.341, allocations: 1.004 MB / 0.9683 GB, free: 35.72 MB / 266.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1122 * 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.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[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 (1503): * Single equations (assignments): 1485 * Array equations: 16 * 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: 1 {(5,64.0%) 47} * Non-linear torn systems: 1 {2 43} Notification: Performance of prepare postOptimizeDAE: time 0.00587/3.347, allocations: 0.7175 MB / 0.969 GB, free: 35.15 MB / 266.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003139/3.351, allocations: 0.6523 MB / 0.9696 GB, free: 35.15 MB / 266.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02437/3.375, allocations: 10.71 MB / 0.9801 GB, free: 31.84 MB / 266.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01697/3.392, allocations: 2.57 MB / 0.9826 GB, free: 31.82 MB / 266.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.613e-05/3.392, allocations: 10.44 kB / 0.9826 GB, free: 31.82 MB / 266.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001983/3.392, allocations: 24.92 kB / 0.9826 GB, free: 31.82 MB / 266.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2326/3.625, allocations: 30.29 MB / 1.012 GB, free: 40.48 MB / 266.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.266e-05/3.625, allocations: 12.62 kB / 1.012 GB, free: 40.48 MB / 266.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004406/3.629, allocations: 0.6532 MB / 1.013 GB, free: 40.48 MB / 266.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01209/3.642, allocations: 3.293 MB / 1.016 GB, free: 40.46 MB / 266.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001414/3.643, allocations: 120.7 kB / 1.016 GB, free: 40.46 MB / 266.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01904/3.662, allocations: 12.92 MB / 1.029 GB, free: 38.74 MB / 266.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/3.662, allocations: 3.062 kB / 1.029 GB, free: 38.74 MB / 266.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03734/3.699, allocations: 19.75 MB / 1.048 GB, free: 35.4 MB / 266.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006047/3.706, allocations: 1.725 MB / 1.05 GB, free: 34.93 MB / 266.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002436/3.708, allocations: 3.906 kB / 1.05 GB, free: 34.93 MB / 266.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01299/3.721, allocations: 1.424 MB / 1.051 GB, free: 34.93 MB / 266.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007417/3.722, allocations: 226.3 kB / 1.051 GB, free: 34.89 MB / 266.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008672/3.723, allocations: 364.6 kB / 1.052 GB, free: 34.85 MB / 266.8 MB Notification: Performance of sort global known variables: time 0.008475/3.731, allocations: 4.048 MB / 1.056 GB, free: 33.43 MB / 266.8 MB Notification: Performance of remove unused functions: time 0.01566/3.747, allocations: 2.043 MB / 1.058 GB, free: 33.42 MB / 266.8 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 (378): * Single equations (assignments): 360 * Array equations: 16 * 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: 1 {(2,100.0%) 43} * Non-linear torn systems: 1 {1 40} Notification: Performance of Backend phase and start with SimCode phase: time 0.001887/3.749, allocations: 215.2 kB / 1.058 GB, free: 33.32 MB / 266.8 MB Notification: Performance of simCode: created initialization part: time 0.03999/3.789, allocations: 16.31 MB / 1.074 GB, free: 24.8 MB / 266.8 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/3.789, allocations: 0 / 1.074 GB, free: 24.8 MB / 266.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02571/3.815, allocations: 7.691 MB / 1.081 GB, free: 18.69 MB / 266.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006889/3.821, allocations: 0.6279 MB / 1.082 GB, free: 18.16 MB / 266.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1899/4.011, allocations: 18.05 MB / 1.1 GB, free: 36.52 MB / 266.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01995/4.031, allocations: 7.6 MB / 1.107 GB, free: 35.6 MB / 266.8 MB Notification: Performance of SimCode: time 1.083e-06/4.031, allocations: 0 / 1.107 GB, free: 35.6 MB / 266.8 MB Notification: Performance of Templates: time 0.3789/4.41, allocations: 133.6 MB / 1.237 GB, free: 30.15 MB / 266.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)