Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.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.2.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/Complex 3.2.1+maint.om/package.mo): time 0.004847/0.004852, allocations: 180.4 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.494/1.494, allocations: 170.6 MB / 178.4 MB, free: 15.47 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001749/0.001749, allocations: 103.9 kB / 217.7 MB, free: 8.242 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.494e-06, allocations: 0 / 261.8 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.08542, allocations: 38.75 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4113, allocations: 90.27 MB / 390.8 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.4117, allocations: 86.83 kB / 390.9 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.5796/0.9913, allocations: 131 MB / 0.5096 GB, free: 43.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007103/0.9921, allocations: 136.1 kB / 0.5097 GB, free: 43.58 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02738/1.02, allocations: 6.888 MB / 0.5165 GB, free: 40.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/1.02, allocations: 7.688 kB / 0.5165 GB, free: 40.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03093/1.051, allocations: 6.986 MB / 0.5233 GB, free: 40.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02934/1.08, allocations: 9.738 MB / 0.5328 GB, free: 39.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003612/1.08, allocations: 212.1 kB / 0.533 GB, free: 39.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003849/1.084, allocations: 396.5 kB / 0.5334 GB, free: 39.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02255/1.107, allocations: 10.07 MB / 0.5432 GB, free: 35.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03197/1.139, allocations: 14.6 MB / 0.5575 GB, free: 20.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004168/1.139, allocations: 95.17 kB / 0.5576 GB, free: 20.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002887/1.142, allocations: 51.94 kB / 0.5576 GB, free: 20.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002633/1.145, allocations: 1.696 MB / 0.5593 GB, free: 18.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2564/1.401, allocations: 75.88 MB / 0.6334 GB, free: 68.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007183/1.408, allocations: 5.346 MB / 0.6386 GB, free: 68.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005109/1.414, allocations: 4.341 MB / 0.6428 GB, free: 68.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/1.435, allocations: 14.34 MB / 0.6568 GB, free: 63.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/1.435, allocations: 69.75 kB / 0.6569 GB, free: 63.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 4.949e-06/1.435, allocations: 0 / 0.6569 GB, free: 63.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.1034/1.538, allocations: 41.21 MB / 0.6971 GB, free: 44.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/1.538, allocations: 273.8 kB / 0.6974 GB, free: 44.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007009/1.545, allocations: 4.733 MB / 0.702 GB, free: 40.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009488/1.546, allocations: 29.64 kB / 0.7021 GB, free: 39.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002013/1.548, allocations: 4.311 MB / 0.7063 GB, free: 36.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001588/1.55, allocations: 1.305 MB / 0.7075 GB, free: 34.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/1.55, allocations: 0 / 0.7075 GB, free: 34.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004057/1.551, allocations: 0.7049 MB / 0.7082 GB, free: 34.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00438/1.555, allocations: 3.705 MB / 0.7119 GB, free: 31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007325/1.563, allocations: 9.037 MB / 0.7207 GB, free: 20.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009759/1.572, allocations: 6.046 MB / 0.7266 GB, free: 15.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001255/1.572, allocations: 55.84 kB / 0.7266 GB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.03485/1.607, allocations: 15.71 MB / 0.742 GB, free: 2.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/1.607, allocations: 5.562 kB / 0.742 GB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003939/1.608, allocations: 188.8 kB / 0.7422 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1779/1.786, allocations: 3.891 MB / 0.746 GB, free: 99.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008073/1.794, allocations: 2.076 MB / 0.748 GB, free: 99.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03411/1.828, allocations: 20.76 MB / 0.7683 GB, free: 96.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009414/1.837, allocations: 335.4 kB / 0.7686 GB, free: 96.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002459/1.84, allocations: 0.5556 MB / 0.7691 GB, free: 96.41 MB / 362.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.001939/1.842, allocations: 0.5845 MB / 0.7697 GB, free: 96.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/1.843, allocations: 0.5359 MB / 0.7702 GB, free: 96.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02145/1.865, allocations: 9.755 MB / 0.7797 GB, free: 96.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001228/1.865, allocations: 32.72 kB / 0.7798 GB, free: 96.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.463e-05/1.865, allocations: 20 kB / 0.7798 GB, free: 96.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.392e-05/1.865, allocations: 16.27 kB / 0.7798 GB, free: 96.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04198/1.907, allocations: 18.16 MB / 0.7975 GB, free: 91.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.754e-05/1.907, allocations: 0 / 0.7975 GB, free: 91.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002984/1.91, allocations: 491.6 kB / 0.798 GB, free: 91.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0123/1.922, allocations: 3.418 MB / 0.8014 GB, free: 91.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001011/1.924, allocations: 12.33 kB / 0.8014 GB, free: 91.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03022/1.954, allocations: 18.4 MB / 0.8193 GB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.954, allocations: 0 / 0.8193 GB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02699/1.981, allocations: 14.47 MB / 0.8335 GB, free: 66.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003508/1.984, allocations: 1.087 MB / 0.8345 GB, free: 65.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001436/1.986, allocations: 0 / 0.8345 GB, free: 65.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003209/1.989, allocations: 124.2 kB / 0.8346 GB, free: 65.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004466/1.99, allocations: 172 kB / 0.8348 GB, free: 65.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002994/1.99, allocations: 99.42 kB / 0.8349 GB, free: 65.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.005862/1.996, allocations: 3.201 MB / 0.838 GB, free: 62.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01201/2.008, allocations: 1.575 MB / 0.8396 GB, free: 61.27 MB / 362.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.001106/2.009, allocations: 185.5 kB / 0.8397 GB, free: 61.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01467/2.024, allocations: 9.237 MB / 0.8488 GB, free: 52.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.024, allocations: 11.14 kB / 0.8488 GB, free: 52.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004816/2.028, allocations: 3.596 MB / 0.8523 GB, free: 48.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003821/2.032, allocations: 0.5707 MB / 0.8528 GB, free: 48.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03055/2.063, allocations: 13.38 MB / 0.8659 GB, free: 35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1803/2.243, allocations: 5.381 MB / 0.8712 GB, free: 92.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/2.243, allocations: 0 / 0.8712 GB, free: 92.11 MB / 362.7 MB Notification: Performance of Templates: time 0.1466/2.39, allocations: 77.26 MB / 0.9466 GB, free: 64.68 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)