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.001316/0.001316, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001554/0.001554, allocations: 174.3 kB / 24.91 MB, free: 8.773 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.9418/0.9418, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.342e-06/1.342e-06, allocations: 0 / 273.5 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.077e-05, allocations: 5.969 kB / 273.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01644/0.01646, allocations: 16.19 MB / 289.7 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1122/0.1286, allocations: 5.578 MB / 295.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.1305, allocations: 138.2 kB / 295.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004663/0.1352, allocations: 4.678 MB / 300 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004468/0.1396, allocations: 2.947 MB / 303 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.1417, allocations: 1.663 MB / 304.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006733/0.1484, allocations: 10.04 MB / 314.7 MB, free: 6.207 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004072/0.1525, allocations: 5.744 MB / 320.4 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005228/0.1577, allocations: 5.165 MB / 325.6 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004056/0.1617, allocations: 4.237 MB / 329.8 MB, free: 7.926 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.1628, allocations: 0.5508 MB / 330.4 MB, free: 7.375 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.1647, allocations: 1.568 MB / 332 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002184/0.1669, allocations: 3.61 MB / 335.6 MB, free: 2.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001696/0.1686, allocations: 2.198 MB / 337.8 MB, free: 252 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005649/0.1742, allocations: 7.554 MB / 345.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1742, allocations: 0 / 345.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1742, allocations: 0 / 345.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.528e-05/0.1743, allocations: 0 / 345.3 MB, free: 9.008 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.007713/0.182, allocations: 7.527 MB / 352.9 MB, free: 1.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.182, allocations: 12.02 kB / 352.9 MB, free: 1.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004853/0.1869, allocations: 1.803 MB / 354.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.1908, allocations: 3.447 MB / 358.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.191, allocations: 370.4 kB / 358.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006042/0.1916, allocations: 0.5074 MB / 359 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008083/0.1997, allocations: 8.123 MB / 367.1 MB, free: 1.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.1998, allocations: 79.33 kB / 367.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003858/0.2002, allocations: 239.8 kB / 367.4 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002193/0.2024, allocations: 2.634 MB / 370.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006534/0.2089, allocations: 4.15 MB / 374.2 MB, free: 10.82 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.03654/0.2455, allocations: 49.06 MB / 423.3 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007886/0.2534, allocations: 3.679 MB / 426.9 MB, free: 4.348 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.2544, allocations: 0.8516 MB / 427.8 MB, free: 3.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1118/0.3662, allocations: 7.998 MB / 435.8 MB, free: 114 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.3662, allocations: 64.58 kB / 435.9 MB, free: 113.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 5.29e-06/0.3662, allocations: 0 / 435.9 MB, free: 113.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.04476/0.411, allocations: 19.6 MB / 455.5 MB, free: 111.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.411, allocations: 277 kB / 455.7 MB, free: 111.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.4145, allocations: 4.896 MB / 460.6 MB, free: 107.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.4147, allocations: 73.7 kB / 460.7 MB, free: 107.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.416, allocations: 4.556 MB / 465.2 MB, free: 103.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006011/0.4166, allocations: 1.286 MB / 466.5 MB, free: 102.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001293/0.4179, allocations: 1.773 MB / 468.3 MB, free: 100.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.611e-05/0.4179, allocations: 306.7 kB / 468.6 MB, free: 100.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/0.4197, allocations: 1.329 MB / 469.9 MB, free: 99.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002999/0.4227, allocations: 6.685 MB / 476.6 MB, free: 90.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006019/0.4287, allocations: 8.779 MB / 485.4 MB, free: 78.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/0.4289, allocations: 56 kB / 485.5 MB, free: 78.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01195/0.4408, allocations: 7.632 MB / 493.1 MB, free: 71.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.731e-05/0.4409, allocations: 84 kB / 493.2 MB, free: 71.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.441, allocations: 192.8 kB / 493.4 MB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004796/0.4458, allocations: 1.952 MB / 495.3 MB, free: 68.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003469/0.4493, allocations: 2.09 MB / 497.4 MB, free: 66.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007538/0.4568, allocations: 6.8 MB / 0.4924 GB, free: 59.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004125/0.4609, allocations: 403.7 kB / 0.4928 GB, free: 59.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004557/0.4614, allocations: 477 kB / 0.4932 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.001719/0.4631, allocations: 0.8935 MB / 0.4941 GB, free: 58.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000657/0.4638, allocations: 391.6 kB / 0.4945 GB, free: 57.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005122/0.4689, allocations: 3.191 MB / 0.4976 GB, free: 54.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.4689, allocations: 35.98 kB / 0.4976 GB, free: 54.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/0.4689, allocations: 15.83 kB / 0.4976 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.469, allocations: 19.94 kB / 0.4976 GB, free: 54.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.4804, allocations: 8.572 MB / 0.506 GB, free: 45.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4804, allocations: 11.94 kB / 0.506 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.4815, allocations: 439.4 kB / 0.5065 GB, free: 45.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/0.4859, allocations: 1.906 MB / 0.5083 GB, free: 43.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.4861, allocations: 55.98 kB / 0.5084 GB, free: 43.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006447/0.4925, allocations: 5.705 MB / 0.5139 GB, free: 37.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4925, allocations: 15.94 kB / 0.514 GB, free: 37.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006468/0.499, allocations: 4.284 MB / 0.5181 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009021/0.4999, allocations: 0.504 MB / 0.5186 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004777/0.5004, allocations: 70.78 kB / 0.5187 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5016, allocations: 71.98 kB / 0.5188 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/0.5019, allocations: 221.5 kB / 0.519 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.502, allocations: 64 kB / 0.519 GB, free: 31.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00158/0.5036, allocations: 1.875 MB / 0.5209 GB, free: 30.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5036, allocations: 7.938 kB / 0.5209 GB, free: 30 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004669/0.5083, allocations: 1.918 MB / 0.5227 GB, free: 28.09 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.0004299/0.5087, allocations: 215.2 kB / 0.523 GB, free: 27.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00461/0.5133, allocations: 4.518 MB / 0.5274 GB, free: 23.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001652/0.5135, allocations: 124.2 kB / 0.5275 GB, free: 23.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.5149, allocations: 1.408 MB / 0.5289 GB, free: 21.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.5176, allocations: 1.019 MB / 0.5299 GB, free: 20.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.5303, allocations: 12.27 MB / 0.5418 GB, free: 8.309 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.5318, allocations: 1.993 MB / 0.5438 GB, free: 6.293 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001967/0.5337, allocations: 0.774 MB / 0.5445 GB, free: 5.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/0.535, allocations: 0.8643 MB / 0.5454 GB, free: 4.652 MB / 378.7 MB Notification: Performance of SimCode: time 1.373e-06/0.535, allocations: 0 / 0.5454 GB, free: 4.652 MB / 378.7 MB Notification: Performance of Templates: time 0.1821/0.7172, allocations: 72.8 MB / 0.6165 GB, free: 79.07 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 -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.742133478168398]