Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001705/0.001705, allocations: 189.4 kB / 8.136 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.16/1.16, allocations: 194.2 MB / 202.8 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001781/0.001781, allocations: 125.3 kB / 247.8 MB, free: 6.379 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.554e-06/7.604e-06, allocations: 4 kB / 297.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07871/0.07873, allocations: 44.49 MB / 342.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.308, allocations: 96.03 MB / 438.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.3082, allocations: 85.52 kB / 438.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.493/0.8013, allocations: 131.1 MB / 0.5559 GB, free: 49.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003781/0.8017, allocations: 134.8 kB / 0.556 GB, free: 49.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.02104/0.8227, allocations: 6.892 MB / 0.5628 GB, free: 47.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.8228, allocations: 9.281 kB / 0.5628 GB, free: 47.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02977/0.8526, allocations: 6.995 MB / 0.5696 GB, free: 46.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02479/0.8774, allocations: 9.733 MB / 0.5791 GB, free: 45.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003875/0.8778, allocations: 209.1 kB / 0.5793 GB, free: 45.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002895/0.8807, allocations: 398.5 kB / 0.5797 GB, free: 45.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01959/0.9003, allocations: 10.08 MB / 0.5895 GB, free: 44.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02244/0.9228, allocations: 14.61 MB / 0.6038 GB, free: 36.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003023/0.9231, allocations: 97.47 kB / 0.6039 GB, free: 36.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001194/0.9243, allocations: 45.12 kB / 0.6039 GB, free: 36.35 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002125/0.9265, allocations: 1.701 MB / 0.6056 GB, free: 35.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2218/1.148, allocations: 75.91 MB / 0.6797 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006469/1.155, allocations: 5.344 MB / 0.6849 GB, free: 92.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005061/1.16, allocations: 4.343 MB / 0.6892 GB, free: 92.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02426/1.184, allocations: 14.32 MB / 0.7032 GB, free: 88.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/1.184, allocations: 66.11 kB / 0.7032 GB, free: 88.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.454e-06/1.184, allocations: 0 / 0.7032 GB, free: 88.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.1158/1.3, allocations: 41.24 MB / 0.7435 GB, free: 79.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/1.3, allocations: 273.1 kB / 0.7438 GB, free: 79.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00886/1.309, allocations: 4.728 MB / 0.7484 GB, free: 77.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008922/1.31, allocations: 25.7 kB / 0.7484 GB, free: 77.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/1.313, allocations: 4.318 MB / 0.7526 GB, free: 74.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001783/1.314, allocations: 1.303 MB / 0.7539 GB, free: 73.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/1.316, allocations: 0 / 0.7539 GB, free: 73.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006932/1.316, allocations: 0.709 MB / 0.7546 GB, free: 72.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005519/1.322, allocations: 3.711 MB / 0.7582 GB, free: 71.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007824/1.33, allocations: 9.027 MB / 0.767 GB, free: 62.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/1.34, allocations: 6.046 MB / 0.7729 GB, free: 60.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002773/1.34, allocations: 52 kB / 0.773 GB, free: 60.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.03877/1.379, allocations: 15.71 MB / 0.7883 GB, free: 48.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/1.379, allocations: 4 kB / 0.7883 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003477/1.379, allocations: 188 kB / 0.7885 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01494/1.394, allocations: 3.86 MB / 0.7923 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007888/1.402, allocations: 2.08 MB / 0.7943 GB, free: 43.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03311/1.435, allocations: 20.75 MB / 0.8146 GB, free: 25.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008026/1.444, allocations: 342 kB / 0.8149 GB, free: 25.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00173/1.445, allocations: 0.5609 MB / 0.8154 GB, free: 24.85 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 (1116): * Single equations (assignments): 1111 * 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.002353/1.448, allocations: 0.5807 MB / 0.816 GB, free: 24.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.449, allocations: 0.5361 MB / 0.8165 GB, free: 23.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02285/1.472, allocations: 9.763 MB / 0.8261 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-05/1.472, allocations: 36 kB / 0.8261 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.083e-05/1.472, allocations: 19.52 kB / 0.8261 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.286e-05/1.472, allocations: 15.94 kB / 0.8261 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1601/1.632, allocations: 18.14 MB / 0.8439 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.087e-05/1.632, allocations: 0 / 0.8439 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002964/1.635, allocations: 488.4 kB / 0.8443 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0126/1.648, allocations: 3.416 MB / 0.8477 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007796/1.649, allocations: 17.14 kB / 0.8477 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02856/1.677, allocations: 18.39 MB / 0.8656 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.677, allocations: 0 / 0.8656 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02861/1.706, allocations: 14.48 MB / 0.8798 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003124/1.709, allocations: 1.089 MB / 0.8808 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/1.711, allocations: 1.812 kB / 0.8808 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00364/1.714, allocations: 124.6 kB / 0.8809 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/1.715, allocations: 171.8 kB / 0.8811 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/1.715, allocations: 96.91 kB / 0.8812 GB, free: 115.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.006438/1.722, allocations: 3.203 MB / 0.8843 GB, free: 115 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009337/1.731, allocations: 1.576 MB / 0.8859 GB, free: 115 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 (266): * Single equations (assignments): 261 * 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.0009358/1.732, allocations: 184.4 kB / 0.886 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0135/1.745, allocations: 9.244 MB / 0.8951 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/1.745, allocations: 0 / 0.8951 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005304/1.751, allocations: 3.597 MB / 0.8986 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/1.754, allocations: 0.5573 MB / 0.8991 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02962/1.784, allocations: 13.39 MB / 0.9122 GB, free: 106.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007554/1.792, allocations: 5.383 MB / 0.9175 GB, free: 104.5 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/1.792, allocations: 3.188 kB / 0.9175 GB, free: 104.5 MB / 426.7 MB Notification: Performance of Templates: time 0.1235/1.915, allocations: 77.27 MB / 0.9929 GB, free: 43 MB / 426.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)