/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 157 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin22
RA = 174.764, Dec = 40.5617
tmin = 245030401, tmax = 245289601
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='978718', job_status='RUN', time_executed='2021-09-04 06:44:08.093941', time_epoch_executed='1630763048.09' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978718/ft1_4FGL_J1139.0+4033_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978718/ft1_4FGL_J1139.0+4033_daily_bin22.fits outfile=/scratch/kocevski/978718/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin22.fits ra=174.764 dec=40.5617 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.47
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.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/978718/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/978718/ltcube_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.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/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits
.....................!
real 12.70
user 12.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/978718/ltcube_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits outfile=/scratch/kocevski/978718/expmap_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.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/978718/ltcube_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits
.....................!
real 190.65
user 185.12
sys 5.15

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1139.0+4033 @ 174.764 40.5617

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits outfile=/scratch/kocevski/978718/cmap_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.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=174.764 yref=40.5617 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits outfile=/scratch/kocevski/978718/cmap_HighResolution_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.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=174.764 yref=40.5617 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978718/Model_4FGL_J1139.0+4033_daily_bin22.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/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits.....................!
real 45.94
user 44.64
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits', '/scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits', expMap='/scratch/kocevski/978718/expmap_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits', expCube='/scratch/kocevski/978718/ltcube_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/978718/Model_4FGL_J1139.0+4033_daily_bin22.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1139.0+4033'

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/978718/ft1_filtered_4FGL_J1139.0+4033_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/978718/ft2_4FGL_J1139.0+4033_daily_bin22.fits
Exposure map: /scratch/kocevski/978718/expmap_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits
Exposure cube: /scratch/kocevski/978718/ltcube_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/978718/Model_4FGL_J1139.0+4033_daily_bin22.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) = 5009.18983619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.955       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7150       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46311       1.0000         .10000E-03   10000.    
    17 'norm      '    10.380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13947E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8607       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99682       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5009.178     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2901 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.426       -.15993E-05** at limit **
   2  Prefactor     .10000E-03    52.012       -.41459E-05** at limit **
   3  norm          1.0559        .35815       -.94318E-08   -.95445E-03
   4  Prefactor     19.908        17.195       -.73594E-07   -.12259E-03
   5  Prefactor     .10000E-03    14.240        .19624E-05** at limit **
   6  Prefactor     52.942        78.385        .19057E-05   -.85382E-05
   7  norm          3.7153        7.9153        .12234E-06   -.36821E-04
   8  norm          .10000E-03    18.283        .34650E-06** at limit **
   9  Prefactor     .10000E-03    1.4115        .93024E-06** at limit **
  10  Prefactor     5.0390        41.325       -.35582E-05   -.12072E-03
  11  Prefactor     .10000E-03    24.520       -.80682E-06** at limit **
  12  norm          1.4888        2.3609        .24088E-06   -.17099E-03
  13  Prefactor     .10000E-03    8.2719        .64264E-08** at limit **
  14  Prefactor     .10000E-03    1.9127       -.39375E-08** at limit **
  15  Prefactor     .10000E-03    20.051       -.16184E-05** at limit **
  16  norm          .45977        1.0102       -.31207E-07   -.41405E-03
  17  norm          10.377        11.057        .58434E-07   -.27292E-05
  18  Prefactor     .10000E-03    9.7600        .42354E-07** at limit **
  19  Prefactor     .10000E-03    1.5236       -.93114E-08** at limit **
  20  Prefactor     .10000E-03    110.34        .34240E-05** at limit **
  21  Prefactor     8.7554        23.040        .11979E-05   -.42391E-05
  22  Prefactor     .10000E-03    31.251        .34491E-05** at limit **
  23  Prefactor     2.8613        6.9385        .40084E-05   -.11299E-03
  24  Normalizat    .99676        .18423       -.35294E-06   -.13285E-03
  25  Prefactor     1.1508        .22138       -.43900E-06   -.10955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05588
  Prefactor  = 19.9085
  Prefactor  = 0.0001
  Prefactor  = 52.9417
  norm       = 3.71532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03902
  Prefactor  = 0.0001
  norm       = 1.48876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.459768
  norm       = 10.3771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.75536
  Prefactor  = 0.0001
  Prefactor  = 2.8613
  Normalizat = 0.996758
  Prefactor  = 1.15084
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.178     FROM HESSE     STATUS=OK           425 CALLS     3326 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0559        .35871        .23227E-04   -1.5502    
   4  Prefactor     19.908        17.209        .89772E-04   -1.4815    
   5  Prefactor     .10000E-03    14.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.942        78.342        .55116E-04   -1.4251    
   7  norm          3.7153        7.8903        .20951E-03   -1.5322    
   8  norm          .10000E-03    18.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9814        .15160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0390        37.093        .17966E-03   -1.5259    
  11  Prefactor     .10000E-03    24.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4888        2.3076        .12650E-03   -1.5464    
  13  Prefactor     .10000E-03    8.3286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9216        .95566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .45977        .89740        .97676E-03   -1.5572    
  17  norm          10.377        11.025        .12437E-03   -1.5064    
  18  Prefactor     .10000E-03    9.7755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5320        .85211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    110.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7554        23.032        .67723E-03   -1.5116    
  22  Prefactor     .10000E-03    31.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8613        6.9102        .12018E-02   -1.5370    
  24  Normalizat    .99676        .21487        .23974E-03   -.93139    
  25  Prefactor     1.1508        .26032        .27448E-03   -.87858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22231e-10
Minuit parameter uncertainties:
  1  3.45968e-05
  2  0.000174701
  3  0.358715
  4  17.2137
  5  6.44525e-05
  6  78.4945
  7  7.89253
  8  1.06964e-05
  9  2.75486e-05
  10  27.3667
  11  3.53378e-05
  12  2.30772
  13  1.17302e-06
  14  7.75886e-07
  15  4.77377e-05
  16  0.897425
  17  11.027
  18  4.47543e-06
  19  5.05086e-07
  20  0.000219309
  21  23.0557
  22  0.000160005
  23  6.9121
  24  0.215053
  25  0.260614
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.774e-05  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.151e+00  2.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.968e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 8.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978718/likelihoodResults_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.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) = 5009.17826561
delta logL = -0.000238016567891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5009.17802766
delta logL = -7.2615875979e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6473       1.0000          .0000       10.000    
     3 'Normalizat'    .99681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5009.178     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.328        .90712E-02** at limit **
   2  Index         2.6447        6.2769        .50000        .11772E-05
   3  Normalizat    .99676        .17844        .46127E-01    .88088E-05
   4  Prefactor     1.1508        .21864        .62059E-01    .69518E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64466
  Normalizat = 0.996759
  Prefactor  = 1.15084
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.178     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6447        6.3173        .50000       -.49050    
   3  Normalizat    .99676        .20969        .23974E-03   -.93139    
   4  Prefactor     1.1508        .25682        .27448E-03   -.87858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48945e-12
Minuit parameter uncertainties:
  1  4.27192e-06
  2  4.48399
  3  0.209864
  4  0.2571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978718': 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) = 5009.17802757
delta logL = 2.23526512855e-08

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.272e-06  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.645e+00  4.484e+00  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.151e+00  2.571e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.968e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.764 40.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/978718/cmap_HighResolution_245030401_245289601_4FGL_J1139.0+4033_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', job_status='DONE', photon_flux_upper_limit='8.26e-08', time_completed='2021-09-04 06:55:53.247236', job_id='978718', GAL2='1.15', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630763753.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='22' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 978718: <4FGL_J1139.0+4033_daily_bin22> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin22> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:16 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:41:18 2021
Terminated at Sat Sep  4 06:55:54 2021
Results reported at Sat Sep  4 06:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin22 174.764 40.5617 245030401 245289601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1139.0+4033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             282.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

