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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005366/0.005366, allocations: 166.5 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.165/1.165, allocations: 170.8 MB / 186.6 MB, free: 0.9648 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.001622/0.001622, allocations: 114.6 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003166/0.0003167, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2049, allocations: 38.77 MB / 312.9 MB, free: 38.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.3182, allocations: 91.1 MB / 404 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.3185, allocations: 91.89 kB / 404.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4798/0.7984, allocations: 135.5 MB / 0.527 GB, free: 40 kB / 330.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.7984, allocations: 0 / 0.527 GB, free: 40 kB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000493/0.799, allocations: 140 kB / 0.5271 GB, free: 15.9 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.02844/0.8274, allocations: 7.651 MB / 0.5346 GB, free: 8.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.8275, allocations: 8.031 kB / 0.5346 GB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.033/0.8605, allocations: 7.557 MB / 0.542 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2466/1.107, allocations: 9.715 MB / 0.5515 GB, free: 44.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004624/1.108, allocations: 488 kB / 0.5519 GB, free: 44.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003098/1.111, allocations: 0.6516 MB / 0.5526 GB, free: 44.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03915/1.15, allocations: 16.71 MB / 0.5689 GB, free: 40.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004748/1.15, allocations: 93.44 kB / 0.569 GB, free: 40.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002317/1.153, allocations: 312 kB / 0.5693 GB, free: 40.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00437/1.157, allocations: 1.584 MB / 0.5708 GB, free: 40.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04987/1.207, allocations: 13.76 MB / 0.5842 GB, free: 40.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1314/1.339, allocations: 74.32 MB / 0.6568 GB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03534/1.374, allocations: 8.573 MB / 0.6652 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2905/1.664, allocations: 18.95 MB / 0.6837 GB, free: 74.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/1.665, allocations: 65.86 kB / 0.6838 GB, free: 74.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 8.736e-06/1.665, allocations: 3.234 kB / 0.6838 GB, free: 74.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.1785/1.843, allocations: 50.49 MB / 0.7331 GB, free: 69.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002069/1.843, allocations: 269.1 kB / 0.7333 GB, free: 69.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0164/1.86, allocations: 5.388 MB / 0.7386 GB, free: 68.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00144/1.861, allocations: 80.64 kB / 0.7387 GB, free: 68.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006633/1.868, allocations: 4.759 MB / 0.7433 GB, free: 66.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003163/1.871, allocations: 1.35 MB / 0.7446 GB, free: 65.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001981/1.873, allocations: 186.5 kB / 0.7448 GB, free: 65.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.001073/1.874, allocations: 0.6929 MB / 0.7455 GB, free: 65.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007416/1.882, allocations: 3.808 MB / 0.7492 GB, free: 64.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01317/1.895, allocations: 8.991 MB / 0.758 GB, free: 55.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/1.907, allocations: 5.669 MB / 0.7635 GB, free: 50.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002997/1.907, allocations: 52 kB / 0.7636 GB, free: 50.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.0446/1.952, allocations: 16.71 MB / 0.7799 GB, free: 37.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004962/1.952, allocations: 84 kB / 0.78 GB, free: 37.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006703/1.953, allocations: 180 kB / 0.7801 GB, free: 37.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01419/1.967, allocations: 4.137 MB / 0.7842 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008557/1.976, allocations: 2.052 MB / 0.7862 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03682/2.012, allocations: 22.89 MB / 0.8085 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01264/2.025, allocations: 0.5495 MB / 0.8091 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003718/2.029, allocations: 0.53 MB / 0.8096 GB, free: 12.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1083): * Single equations (assignments): 1078 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01222/2.041, allocations: 3.118 MB / 0.8126 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002741/2.044, allocations: 0.5746 MB / 0.8132 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3203/2.364, allocations: 9.843 MB / 0.8228 GB, free: 62.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.646e-05/2.364, allocations: 37.61 kB / 0.8228 GB, free: 62.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.545e-05/2.365, allocations: 21.89 kB / 0.8229 GB, free: 62.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.67e-05/2.365, allocations: 13.73 kB / 0.8229 GB, free: 62.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05123/2.416, allocations: 19.27 MB / 0.8417 GB, free: 61.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.951e-05/2.416, allocations: 0 / 0.8417 GB, free: 61.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003011/2.419, allocations: 0.5052 MB / 0.8422 GB, free: 61.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01353/2.433, allocations: 3.623 MB / 0.8457 GB, free: 61.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009034/2.433, allocations: 67.81 kB / 0.8458 GB, free: 61.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02908/2.463, allocations: 19.79 MB / 0.8651 GB, free: 57.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/2.463, allocations: 0 / 0.8651 GB, free: 57.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02857/2.491, allocations: 14.36 MB / 0.8791 GB, free: 52.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005511/2.497, allocations: 1.127 MB / 0.8802 GB, free: 52.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002668/2.499, allocations: 58.03 kB / 0.8803 GB, free: 52.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005484/2.505, allocations: 226 kB / 0.8805 GB, free: 52.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/2.506, allocations: 221.7 kB / 0.8807 GB, free: 52.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006687/2.507, allocations: 95.97 kB / 0.8808 GB, free: 52.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01114/2.518, allocations: 3.783 MB / 0.8845 GB, free: 51.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.518, allocations: 3.375 kB / 0.8845 GB, free: 51.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01467/2.533, allocations: 1.851 MB / 0.8863 GB, free: 50.89 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * 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,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001482/2.535, allocations: 226.8 kB / 0.8865 GB, free: 50.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01889/2.553, allocations: 9.727 MB / 0.896 GB, free: 46.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/2.553, allocations: 0 / 0.896 GB, free: 46.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007208/2.561, allocations: 3.79 MB / 0.8997 GB, free: 43.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006724/2.567, allocations: 0.7185 MB / 0.9004 GB, free: 43.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04312/2.611, allocations: 18.38 MB / 0.9184 GB, free: 26.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01168/2.622, allocations: 5.012 MB / 0.9233 GB, free: 23.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.009947/2.632, allocations: 2.802 MB / 0.926 GB, free: 21.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002718/2.635, allocations: 381.9 kB / 0.9264 GB, free: 20.96 MB / 378.7 MB Notification: Performance of SimCode: time 3.357e-06/2.635, allocations: 0 / 0.9264 GB, free: 20.96 MB / 378.7 MB Notification: Performance of Templates: time 0.4166/3.052, allocations: 75.61 MB / 1 GB, free: 63.98 MB / 394.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)