/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 73299
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1639.2+4129_monthly_bin126
RA = 249.824, Dec = 41.4964
tmin = 563587201, tmax = 566179201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='964790', job_status='RUN', time_executed='2021-10-29 08:50:32.098857', time_epoch_executed='1635522632.1' WHERE source_name='4FGL J1639.2+4129' and cadence='monthly' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964790

Creating custom pfile directory:
/scratch/kocevski/964790/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=563587201.0 && nMetStart<566179201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=563587201.0 && nMetStart<566179201.0' /Data/Flight/Level1/LPA

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964790/ft1_4FGL_J1639.2+4129_monthly_bin126.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=563587201.0 && nMetStart<566179201.0' /Data/Flight/Level1/LPA

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964790/ft1_4FGL_J1639.2+4129_monthly_bin126.fits outfile=/scratch/kocevski/964790/ft1_filteredMKT_4FGL_J1639.2+4129_monthly_bin126.fits ra=249.824 dec=41.4964 rad=12.0 tmin=563587201.0 tmax=566179201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 24.25
user 23.48
sys 0.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/964790/ft1_filteredMKT_4FGL_J1639.2+4129_monthly_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.77
user 0.57
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/964790/ltcube_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits
.....................!
real 115.70
user 114.78
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/964790/ltcube_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits outfile=/scratch/kocevski/964790/expmap_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/964790/ltcube_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits
.....................!
real 158.08
user 153.44
sys 4.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1639.2+4129 @ 249.824 41.4964

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits outfile=/scratch/kocevski/964790/cmap_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=249.824 yref=41.4964 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.67
user 0.50
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits outfile=/scratch/kocevski/964790/cmap_HighResolution_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=249.824 yref=41.4964 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.67
user 0.51
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964790/Model_4FGL_J1639.2+4129_monthly_bin126.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits.....................!
real 592.27
user 588.79
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits', '/scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits', expMap='/scratch/kocevski/964790/expmap_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits', expCube='/scratch/kocevski/964790/ltcube_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964790/Model_4FGL_J1639.2+4129_monthly_bin126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1639.2+4129'

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  9.401e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964790/ft1_filtered_4FGL_J1639.2+4129_monthly_bin126.fits
Spacecraft file(s): /scratch/kocevski/964790/ft2_4FGL_J1639.2+4129_monthly_bin126.fits
Exposure map: /scratch/kocevski/964790/expmap_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits
Exposure cube: /scratch/kocevski/964790/ltcube_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964790/Model_4FGL_J1639.2+4129_monthly_bin126.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 115640.489456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 115640.342754

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.424       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60869       1.0000         .10000E-03   10000.    
     8 'norm      '    18.657       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4464       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.665       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0432       1.0000         .10000E-03   10000.    
    13 'norm      '    .43100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28353E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6900       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0355       1.0000         .10000E-03   10000.    
    20 'norm      '    .74202       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6060       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6160       1.0000         .10000E-03   10000.    
    24 'norm      '    .84863       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3673       1.0000         .10000E-03   10000.    
    26 'norm      '    11.451       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0457       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0799       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   115640.3     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3335 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .62007         .0000    ** at limit **
   2  Prefactor     11.422        9.8718         .0000       -.33988E-02
   3  Prefactor     2.2640        .70685         .0000        .53612E-02
   4  Prefactor     .66465        .94824         .0000        .22882E-01
   5  Prefactor     .10000E-03    2.3205         .0000    ** at limit **
   6  Prefactor     .95973        1.2504         .0000        .20729E-01
   7  Prefactor     .60889        .64792         .0000        .25902E-01
   8  norm          18.656        4.3226         .0000       -.43343E-02
   9  norm          1.4464        .63042E-01     .0000        .20203E-02
  10  norm          2.1905        1.4633         .0000       -.33115E-02
  11  Prefactor     18.666        5.2288         .0000        .49447E-02
  12  Prefactor     1.0432        .70019         .0000        .13653E-01
  13  norm          .43089        1.4345         .0000        .34842E-02
  14  Prefactor     .28376E-01    .76855E-01     .0000        .17111E-01
  15  Prefactor     2.7145        .38292         .0000        .32300E-02
  16  Prefactor     2.6264        .73525         .0000        .76266E-02
  17  Prefactor     .52669        .47609         .0000        .14939E-01
  18  Prefactor     7.6898        2.2825         .0000       -.75915E-02
  19  norm          2.0355        .33633         .0000       -.21386E-02
  20  norm          .74200        .22718         .0000        .16984E-01
  21  Prefactor     4.6076        1.5839         .0000        .50994E-02
  22  norm          .10000E-03    .28815E-01     .0000    ** at limit **
  23  norm          2.6158        1.6850         .0000        .13877    
  24  norm          .84852        .36110         .0000        .18466E-01
  25  Prefactor     1.3674        3.6112         .0000        .18823E-02
  26  norm          11.450        1.8046         .0000        .26214E-02
  27  Prefactor     2.0202        31.807         .0000        .49727E-03
  28  Normalizat    1.0799        .49628E-01     .0000        .22579E-04
  29  Prefactor     .92086        .39902E-01     .0000       -.15733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4216
  Prefactor  = 2.264
  Prefactor  = 0.664649
  Prefactor  = 0.0001
  Prefactor  = 0.95973
  Prefactor  = 0.608891
  norm       = 18.6563
  norm       = 1.44642
  norm       = 2.19053
  Prefactor  = 18.6659
  Prefactor  = 1.04325
  norm       = 0.430892
  Prefactor  = 0.0283763
  Prefactor  = 2.71454
  Prefactor  = 2.62639
  Prefactor  = 0.526691
  Prefactor  = 7.68984
  norm       = 2.03552
  norm       = 0.742002
  Prefactor  = 4.60758
  norm       = 0.0001
  norm       = 2.61585
  norm       = 0.84852
  Prefactor  = 1.36741
  norm       = 11.4501
  Prefactor  = 2.02016
  Normalizat = 1.07991
  Prefactor  = 0.920856
 **********
 **   18 **HESSE 
 **********

 FCN=   115640.3     FROM HESSE     STATUS=OK           581 CALLS     3916 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5302        .52127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.422        9.8283        .11853E-03   -1.5032    
   3  Prefactor     2.2640        .70454        .15341E-03   -1.5407    
   4  Prefactor     .66465        .91869        .37712E-03   -1.5545    
   5  Prefactor     .10000E-03    2.3526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95973        1.2352        .40359E-03   -1.5512    
   7  Prefactor     .60889        .63288        .26364E-03   -1.5552    
   8  norm          18.656        4.3041        .92726E-04   -1.4844    
   9  norm          1.4464        .62929E-01    .15248E-04   -1.5467    
  10  norm          2.1905        1.4615        .27807E-03   -1.5412    
  11  Prefactor     18.666        5.2750        .92706E-04   -1.4844    
  12  Prefactor     1.0432        .68101        .22107E-03   -1.5504    
  13  norm          .43089        11.540        .69999E-02   -1.5577    
  14  Prefactor     .28376E-01    .44573        .11704E-02   -1.5674    
  15  Prefactor     2.7145        .38295        .60729E-04   -1.5378    
  16  Prefactor     2.6264        .72336        .14251E-03   -1.5384    
  17  Prefactor     .52669        .45874        .20941E-03   -1.5563    
  18  Prefactor     7.6898        2.2796        .14461E-03   -1.5153    
  19  norm          2.0355        .33663        .77488E-04   -1.5423    
  20  norm          .74200        .20585        .80894E-03   -1.5536    
  21  Prefactor     4.6076        1.5422        .18755E-03   -1.5279    
  22  norm          .10000E-03    .12000        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6158        1.6759        .12609E-02   -1.5384    
  24  norm          .84852        .32178        .12479E-02   -1.5524    
  25  Prefactor     1.3674        3.5548        .37307E-03   -1.5474    
  26  norm          11.450        1.7601        .11839E-03   -1.5031    
  27  Prefactor     2.0202        30.476        .28908E-03   -1.5424    
  28  Normalizat    1.0799        .58785E-01    .27230E-03   -.90399    
  29  Prefactor     .92086        .47907E-01    .25052E-03   -.95416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03097e-06
Minuit parameter uncertainties:
  1  1.60335e-05
  2  9.82972
  3  0.704539
  4  0.918707
  5  2.66291e-05
  6  1.23524
  7  0.632885
  8  4.30413
  9  0.0629288
  10  1.46156
  11  5.27508
  12  0.681018
  13  4.46021
  14  0.224534
  15  0.382946
  16  0.723364
  17  0.458746
  18  2.27964
  19  0.336635
  20  0.205854
  21  1.54225
  22  4.17396e-07
  23  1.67588
  24  0.321777
  25  3.55538
  26  1.76013
  27  15.7021
  28  0.0587888
  29  0.0479093
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 115640.34275

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  4.309e-01  4.460e+00  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.209e-01  4.791e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.080e+00  5.879e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 249.824 41.496
Photon Flux Upper Limit: 6.98e-09 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964790/likelihoodResults_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 115640.016162
delta logL = 0.326588154625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 115639.967096
delta logL = 0.375654242307

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59054       1.0000         .10000E-03   10000.    
     2 'alpha     '    .58563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   115640.0     FROM MIGRAD    STATUS=FAILED       101 CALLS      274 TOTAL
                     EDM=   .96E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58966        .97838        .45470E-02    .16086E-02
   2  alpha         .58616        .89553        .50000       -.16596E-01
   3  Normalizat    1.0801        .54568E-01    .27227E-03   -.40085E-04
   4  Prefactor     .92055        .47017E-01    .25055E-03   -.70421E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   115640.0     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      347 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58966        .97838        .75644E-04   -1.5554    
   2  alpha         .58616        .89553        .37353E-02   -.87187    
   3  Normalizat    1.0801        .54568E-01    .45525E-04   -.90392    
   4  Prefactor     .92055        .47017E-01    .54520E-04   -.95427    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   115640.0     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      398 TOTAL
                     EDM=   .44E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58966        .92413         .0000       -.23502E-03
   2  alpha         .58617        .85847         .0000       -.16580E-01
   3  Normalizat    1.0801        .54628E-01     .0000         .0000    
   4  Prefactor     .92055        .47069E-01     .0000         .0000    
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589662
  alpha      = 0.586167
  Normalizat = 1.08015
  Prefactor  = 0.920547
 **********
 **   18 **HESSE 
 **********

 FCN=   115640.0     FROM HESSE     STATUS=OK            27 CALLS      425 TOTAL
                     EDM=   .87E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58966        .92317        .72753E-05   -1.5554    
   2  alpha         .58617        .85771        .50000       -.87187    
   3  Normalizat    1.0801        .54628E-01    .10891E-04   -.90392    
   4  Prefactor     .92055        .47069E-01    .10022E-04   -.95427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69634e-05
Minuit parameter uncertainties:
  1  0.923189
  2  0.90465
  3  0.0546311
  4  0.0470712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964790': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 115639.96709
delta logL = 0.375660074467

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  5.897e-01  9.232e-01  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  5.862e-01  9.047e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.205e-01  4.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.080e+00  5.463e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 249.824 41.496

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/964790/cmap_HighResolution_563587201_566179201_4FGL_J1639.2+4129_monthly_bin126.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/964790

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-06', job_status='DONE', photon_flux_upper_limit='6.98e-09', time_completed='2021-10-29 11:36:51.645142', job_id='964790', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1635532611.65', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.76e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='126' AND source_name='4FGL J1639.2+4129' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 11:36:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 964790: <4FGL_J1639.2+4129_monthly_bin126> in cluster <slac> Done

Job <4FGL_J1639.2+4129_monthly_bin126> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Oct 29 08:50:10 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 08:50:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 08:50:19 2021
Terminated at Fri Oct 29 11:36:52 2021
Results reported at Fri Oct 29 11:36:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_monthly_bin126 249.824 41.4964 563587201 566179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1639.2+4129 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9886.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             485.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   9993 sec.
    Turnaround time :                            10002 sec.

The output (if any) is above this job summary.

