Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 230.3 MB / 257.9 MB, free: 8.234 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum")
translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 67.89 kB / 378.8 MB, free: 2.789 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2478, allocations: 53.37 MB / 432.1 MB, free: 7.094 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01245/0.2602, allocations: 10.47 MB / 442.6 MB, free: 12.59 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.008433/0.2687, allocations: 4.011 MB / 446.6 MB, free: 8.562 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.2702, allocations: 79.56 kB / 446.7 MB, free: 8.484 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004549/0.2748, allocations: 2.242 MB / 448.9 MB, free: 6.234 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.004718/0.2795, allocations: 1.879 MB / 450.8 MB, free: 4.352 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.2812, allocations: 0.7409 MB / 451.5 MB, free: 3.609 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.007368/0.2885, allocations: 5.27 MB / 456.8 MB, free: 14.33 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.003163/0.2917, allocations: 2.171 MB / 459 MB, free: 12.11 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.00242/0.2941, allocations: 1.499 MB / 460.5 MB, free: 10.6 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.003498/0.2976, allocations: 2.204 MB / 462.7 MB, free: 8.391 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0008942/0.2985, allocations: 300 kB / 463 MB, free: 8.098 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.3011, allocations: 1.221 MB / 464.2 MB, free: 6.875 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002536/0.3036, allocations: 1.881 MB / 466.1 MB, free: 4.988 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002701/0.3063, allocations: 2.051 MB / 468.1 MB, free: 2.926 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.008065/0.3144, allocations: 6.662 MB / 474.8 MB, free: 12.24 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3144, allocations: 0 / 474.8 MB, free: 12.24 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.814e-06/0.3144, allocations: 3.938 kB / 474.8 MB, free: 12.23 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 0.0001429/0.3145, allocations: 0 / 474.8 MB, free: 12.23 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1302
 * Number of variables: 1302
Notification: Performance of Generate backend data structure: time 0.01007/0.3246, allocations: 4.705 MB / 479.5 MB, free: 7.469 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.3247, allocations: 16.02 kB / 479.5 MB, free: 7.453 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02693/0.3516, allocations: 3.099 MB / 482.6 MB, free: 4.348 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.008735/0.3603, allocations: 3.209 MB / 485.8 MB, free: 1.086 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.3605, allocations: 197 kB / 486 MB, free: 0.8906 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006977/0.3612, allocations: 279.8 kB / 486.3 MB, free: 0.6172 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/0.3768, allocations: 8.855 MB / 495.1 MB, free: 7.109 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.3769, allocations: 47.64 kB / 495.2 MB, free: 7.062 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000398/0.3773, allocations: 131.8 kB / 495.3 MB, free: 6.934 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003465/0.3808, allocations: 1.77 MB / 497.1 MB, free: 5.164 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01523/0.396, allocations: 7.792 MB / 0.4931 GB, free: 13.36 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04693/0.4429, allocations: 35.83 MB / 0.528 GB, free: 8.453 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.008291/0.4512, allocations: 3.246 MB / 0.5312 GB, free: 5.176 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002762/0.454, allocations: 2.028 MB / 0.5332 GB, free: 3.137 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0003418/0.4543, allocations: 96.91 kB / 0.5333 GB, free: 3.043 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.4544, allocations: 51.5 kB / 0.5333 GB, free: 2.984 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=160): time 4.008e-06/0.4544, allocations: 0 / 0.5333 GB, free: 2.984 MB / 446.1 MB
Notification: Performance of matching and sorting (n=190): time 0.3312/0.7856, allocations: 21.36 MB / 0.5542 GB, free: 95.7 MB / 446.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.7857, allocations: 263.7 kB / 0.5544 GB, free: 95.4 MB / 446.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004804/0.7905, allocations: 3.928 MB / 0.5583 GB, free: 91.66 MB / 446.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0004834/0.791, allocations: 56.97 kB / 0.5583 GB, free: 91.6 MB / 446.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.7925, allocations: 2.889 MB / 0.5612 GB, free: 89.03 MB / 446.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0009058/0.7934, allocations: 0.7536 MB / 0.5619 GB, free: 88.29 MB / 446.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001417/0.7948, allocations: 1.19 MB / 0.5631 GB, free: 87.09 MB / 446.1 MB
Notification: Performance of setup shared object (initialization): time 5.684e-05/0.7949, allocations: 301.1 kB / 0.5633 GB, free: 86.79 MB / 446.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002589/0.7975, allocations: 2.381 MB / 0.5657 GB, free: 84.41 MB / 446.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.003904/0.8014, allocations: 5.641 MB / 0.5712 GB, free: 77.19 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00836/0.8097, allocations: 8.579 MB / 0.5796 GB, free: 67.04 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.8098, allocations: 32 kB / 0.5796 GB, free: 67.01 MB / 446.1 MB
Notification: Performance of matching and sorting (n=749) (initialization): time 0.01668/0.8265, allocations: 9.611 MB / 0.589 GB, free: 57.38 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.578e-05/0.8266, allocations: 56 kB / 0.589 GB, free: 57.33 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.016e-05/0.8267, allocations: 112 kB / 0.5891 GB, free: 57.22 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.005223/0.8319, allocations: 2.025 MB / 0.5911 GB, free: 55.19 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/0.8361, allocations: 1.287 MB / 0.5924 GB, free: 53.9 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/0.849, allocations: 11.26 MB / 0.6034 GB, free: 42.53 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004243/0.8532, allocations: 339.5 kB / 0.6037 GB, free: 42.2 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005523/0.8538, allocations: 340 kB / 0.604 GB, free: 41.87 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 515
 * Number of states: 0 ()
 * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.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 (688):
 * Single equations (assignments): 684
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(3,35,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002461/0.8562, allocations: 1.946 MB / 0.6059 GB, free: 39.91 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/0.8568, allocations: 361.6 kB / 0.6062 GB, free: 39.56 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008362/0.8651, allocations: 4.864 MB / 0.611 GB, free: 34.68 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/0.8652, allocations: 20 kB / 0.611 GB, free: 34.66 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.8652, allocations: 8.875 kB / 0.611 GB, free: 34.65 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.8652, allocations: 11.97 kB / 0.611 GB, free: 34.64 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/0.88, allocations: 9.94 MB / 0.6207 GB, free: 24.67 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.88, allocations: 5.438 kB / 0.6207 GB, free: 24.66 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.8813, allocations: 271.6 kB / 0.621 GB, free: 24.4 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.00486/0.8861, allocations: 1.846 MB / 0.6228 GB, free: 22.55 MB / 446.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/0.8864, allocations: 28 kB / 0.6228 GB, free: 22.52 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.8979, allocations: 10.31 MB / 0.6329 GB, free: 12.09 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.8979, allocations: 4.031 kB / 0.6329 GB, free: 12.09 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/0.9099, allocations: 7.933 MB / 0.6407 GB, free: 4.125 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.9111, allocations: 353.5 kB / 0.641 GB, free: 3.777 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008193/0.9119, allocations: 36 kB / 0.641 GB, free: 3.742 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/0.9138, allocations: 135.8 kB / 0.6412 GB, free: 3.609 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003934/0.9142, allocations: 128.5 kB / 0.6413 GB, free: 3.484 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.9143, allocations: 44 kB / 0.6413 GB, free: 3.441 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.003348/0.9177, allocations: 2.48 MB / 0.6437 GB, free: 0.9805 MB / 446.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.9177, allocations: 0 / 0.6437 GB, free: 0.9805 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.004922/0.9226, allocations: 1.059 MB / 0.6448 GB, free: 15.92 MB / 462.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * 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 (136):
 * Single equations (assignments): 132
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(2,33,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004643/0.9231, allocations: 166.6 kB / 0.6449 GB, free: 15.75 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.009366/0.9324, allocations: 5.563 MB / 0.6504 GB, free: 10.19 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.9324, allocations: 4 kB / 0.6504 GB, free: 10.19 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.003124/0.9356, allocations: 1.937 MB / 0.6523 GB, free: 8.238 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.9385, allocations: 467 kB / 0.6527 GB, free: 7.785 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/0.9579, allocations: 9.615 MB / 0.6621 GB, free: 14.13 MB / 478.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004464/0.9624, allocations: 3.09 MB / 0.6651 GB, free: 11.02 MB / 478.1 MB
Notification: Performance of simCode: alias equations: time 0.004777/0.9672, allocations: 1.811 MB / 0.6669 GB, free: 9.199 MB / 478.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009065/0.9681, allocations: 235.4 kB / 0.6671 GB, free: 8.969 MB / 478.1 MB
Notification: Performance of SimCode: time 2.234e-06/0.9681, allocations: 0 / 0.6671 GB, free: 8.969 MB / 478.1 MB
Notification: Performance of Templates: time 0.09721/1.065, allocations: 46.54 MB / 0.7126 GB, free: 10.68 MB / 0.5137 GB
"
[Timeout remaining time 659]
make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 6.826467804610729]