Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009238/0.0009238, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 168.7 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9054/0.9054, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 273.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052e-05/1.183e-05, allocations: 2.312 kB / 273.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01156/0.01157, allocations: 16.24 MB / 289.7 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1232/0.1348, allocations: 5.59 MB / 295.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/0.1373, allocations: 140.3 kB / 295.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007745/0.145, allocations: 4.598 MB / 300.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.151, allocations: 2.911 MB / 303 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.1539, allocations: 1.668 MB / 304.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00655/0.1605, allocations: 10.04 MB / 314.7 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003394/0.1639, allocations: 5.292 MB / 320 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006195/0.1701, allocations: 5.055 MB / 325 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005091/0.1752, allocations: 4.239 MB / 329.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001323/0.1765, allocations: 0.5546 MB / 329.8 MB, free: 7.777 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.1792, allocations: 1.611 MB / 331.4 MB, free: 6.211 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00298/0.1822, allocations: 3.611 MB / 335 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003937/0.1861, allocations: 2.193 MB / 337.2 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008864/0.195, allocations: 7.567 MB / 344.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.195, allocations: 0 / 344.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.195, allocations: 0 / 344.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002273/0.1952, allocations: 0 / 344.8 MB, free: 9.363 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.009975/0.2052, allocations: 7.52 MB / 352.3 MB, free: 1.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2053, allocations: 8.031 kB / 352.3 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005507/0.2108, allocations: 1.799 MB / 354.1 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004897/0.2157, allocations: 3.444 MB / 357.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/0.2159, allocations: 370.4 kB / 357.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.217, allocations: 0.521 MB / 358.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.2285, allocations: 8.112 MB / 366.6 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001795/0.2287, allocations: 83.31 kB / 366.7 MB, free: 2.293 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004973/0.2292, allocations: 227.8 kB / 366.9 MB, free: 2.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002256/0.2314, allocations: 2.65 MB / 369.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009231/0.2407, allocations: 4.155 MB / 373.7 MB, free: 11.21 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04558/0.2862, allocations: 49.05 MB / 422.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008318/0.2946, allocations: 3.67 MB / 426.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/0.2959, allocations: 0.8588 MB / 427.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1198/0.4157, allocations: 7.996 MB / 435.3 MB, free: 113.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4158, allocations: 65.39 kB / 435.3 MB, free: 113.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 5.66e-06/0.4158, allocations: 0 / 435.3 MB, free: 113.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.05831/0.4741, allocations: 19.81 MB / 455.1 MB, free: 111.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.4742, allocations: 276.7 kB / 455.4 MB, free: 111.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00477/0.4789, allocations: 4.894 MB / 460.3 MB, free: 108 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000352/0.4793, allocations: 77.7 kB / 460.4 MB, free: 107.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/0.4809, allocations: 4.55 MB / 464.9 MB, free: 103.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008457/0.4818, allocations: 1.29 MB / 466.2 MB, free: 102.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001833/0.4836, allocations: 1.772 MB / 468 MB, free: 101.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.503e-05/0.4836, allocations: 301.1 kB / 468.3 MB, free: 100.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.4862, allocations: 1.333 MB / 469.6 MB, free: 99.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003769/0.49, allocations: 6.691 MB / 476.3 MB, free: 90.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006177/0.4961, allocations: 8.771 MB / 485.1 MB, free: 79.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/0.4963, allocations: 52 kB / 485.1 MB, free: 78.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01123/0.5075, allocations: 7.637 MB / 492.8 MB, free: 71.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.249e-05/0.5076, allocations: 88 kB / 492.8 MB, free: 71.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/0.5077, allocations: 188 kB / 493 MB, free: 71.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004606/0.5123, allocations: 1.957 MB / 495 MB, free: 69.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/0.5164, allocations: 2.199 MB / 497.2 MB, free: 66.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0077/0.5241, allocations: 6.832 MB / 0.4922 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/0.5287, allocations: 403.7 kB / 0.4926 GB, free: 59.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006854/0.5294, allocations: 472 kB / 0.493 GB, free: 58.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1158): * Single equations (assignments): 1153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,29,100.0%), (4,32,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002013/0.5314, allocations: 0.8893 MB / 0.4939 GB, free: 58.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008099/0.5322, allocations: 387.6 kB / 0.4943 GB, free: 57.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005341/0.5375, allocations: 3.195 MB / 0.4974 GB, free: 54.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/0.5375, allocations: 32 kB / 0.4974 GB, free: 54.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.5376, allocations: 16 kB / 0.4974 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.5376, allocations: 19.94 kB / 0.4975 GB, free: 54.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.5506, allocations: 8.58 MB / 0.5058 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.5506, allocations: 4 kB / 0.5058 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.5519, allocations: 496 kB / 0.5063 GB, free: 45.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004544/0.5564, allocations: 1.905 MB / 0.5082 GB, free: 43.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002695/0.5567, allocations: 67.92 kB / 0.5082 GB, free: 43.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00633/0.563, allocations: 5.723 MB / 0.5138 GB, free: 37.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.563, allocations: 11.94 kB / 0.5138 GB, free: 37.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006665/0.5697, allocations: 4.273 MB / 0.518 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.571, allocations: 0.5148 MB / 0.5185 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006015/0.5716, allocations: 63.94 kB / 0.5186 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5729, allocations: 71.98 kB / 0.5186 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004686/0.5734, allocations: 225.5 kB / 0.5189 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/0.5736, allocations: 67.98 kB / 0.5189 GB, free: 31.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001986/0.5755, allocations: 1.871 MB / 0.5208 GB, free: 29.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5755, allocations: 0 / 0.5208 GB, free: 29.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006391/0.5819, allocations: 1.93 MB / 0.5226 GB, free: 28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (255): * Single equations (assignments): 250 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,28,62.5%), (1,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005382/0.5825, allocations: 215.5 kB / 0.5228 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005568/0.588, allocations: 4.513 MB / 0.5273 GB, free: 23.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002508/0.5883, allocations: 127.8 kB / 0.5274 GB, free: 23.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.5899, allocations: 1.401 MB / 0.5287 GB, free: 21.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003595/0.5935, allocations: 1.016 MB / 0.5297 GB, free: 20.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.6079, allocations: 12.28 MB / 0.5417 GB, free: 8.234 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.6096, allocations: 1.989 MB / 0.5437 GB, free: 6.223 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002239/0.6119, allocations: 0.7725 MB / 0.5444 GB, free: 5.445 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.6134, allocations: 0.876 MB / 0.5453 GB, free: 4.566 MB / 378.7 MB Notification: Performance of SimCode: time 2.024e-06/0.6134, allocations: 0 / 0.5453 GB, free: 4.566 MB / 378.7 MB Notification: Performance of Templates: time 0.1947/0.8081, allocations: 72.8 MB / 0.6164 GB, free: 79.12 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.655371168162674]