/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 8 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 = 7411
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin606
RA = 174.764, Dec = 40.5617
tmin = 396403201, tmax = 396662401
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='986225', job_status='RUN', time_executed='2021-09-04 07:02:17.647556', time_epoch_executed='1630764137.65' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986225/ft1_4FGL_J1139.0+4033_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986225/ft1_4FGL_J1139.0+4033_daily_bin606.fits outfile=/scratch/kocevski/986225/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin606.fits ra=174.764 dec=40.5617 rad=12.0 tmin=396403201.0 tmax=396662401.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 4.59
user 4.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.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/986225/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin606.fits evtable="EVENTS" outfile="/scratch/kocevski/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.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.54
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/986225/ltcube_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.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/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits
.....................!
real 11.92
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/986225/ltcube_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits outfile=/scratch/kocevski/986225/expmap_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.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/986225/ltcube_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits
.....................!
real 190.86
user 185.35
sys 4.90

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/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits scfile=/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits outfile=/scratch/kocevski/986225/cmap_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits scfile=/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits outfile=/scratch/kocevski/986225/cmap_HighResolution_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.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.60
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits', '/scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits', expMap='/scratch/kocevski/986225/expmap_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits', expCube='/scratch/kocevski/986225/ltcube_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/986225/Model_4FGL_J1139.0+4033_daily_bin606.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/986225/ft1_filtered_4FGL_J1139.0+4033_daily_bin606.fits
Spacecraft file(s): /scratch/kocevski/986225/ft2_4FGL_J1139.0+4033_daily_bin606.fits
Exposure map: /scratch/kocevski/986225/expmap_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits
Exposure cube: /scratch/kocevski/986225/ltcube_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/986225/Model_4FGL_J1139.0+4033_daily_bin606.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) = 7093.52984889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.514       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4741       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.626       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3870       1.0000         .10000E-03   10000.    
    17 'norm      '    9.1019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.817       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2111       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3114       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62504       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=   7093.519     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2867 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    20.753        .90712E-02** at limit **
   2  Prefactor     .10004E-03    43.451        .90712E-02** at limit **
   3  norm          2.0390        .38516        .47908E-02    .32317E-02
   4  Prefactor     20.317        18.173        .22216E-02   -.19905E-03
   5  Prefactor     .10008E-03    15.609        .90712E-02** at limit **
   6  Prefactor     .10003E-03    26.446        .90712E-02** at limit **
   7  norm          23.515        14.059        .20651E-02    .21721E-03
   8  norm          .10001E-03    15.185        .90712E-02** at limit **
   9  Prefactor     .10000E-03    .71801        .90712E-02** at limit **
  10  Prefactor     .10004E-03    14.669        .90712E-02** at limit **
  11  Prefactor     .10000E-03    6.2440        .90712E-02** at limit **
  12  norm          1.4742        1.6323        .88449E-02    .14567E-02
  13  Prefactor     .10000E-03    4.5372        .90712E-02** at limit **
  14  Prefactor     .10000E-03    4.7675        .90712E-02** at limit **
  15  Prefactor     68.627        42.988        .12113E-02   -.80396E-03
  16  norm          2.3871        1.1405        .66276E-03    .58403E-03
  17  norm          9.1018        7.4739        .33212E-02    .20348E-03
  18  Prefactor     10.813        22.651        .30455E-02    .63546E-03
  19  Prefactor     1.2114        2.7040        .10277E-01    .52026E-03
  20  Prefactor     .10001E-03    28.782        .90712E-02** at limit **
  21  Prefactor     .10000E-03    19.269        .90712E-02** at limit **
  22  Prefactor     .10006E-03    29.971        .90712E-02** at limit **
  23  Prefactor     .10000E-03    2.0192        .90712E-02** at limit **
  24  Normalizat    1.3113        .16392        .48497E-01   -.10296E-03
  25  Prefactor     .62515        .18701        .79496E-01   -.31175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100052
  Prefactor  = 0.000100041
  norm       = 2.03898
  Prefactor  = 20.3175
  Prefactor  = 0.000100076
  Prefactor  = 0.000100028
  norm       = 23.5148
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 1.47415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.627
  norm       = 2.38709
  norm       = 9.10177
  Prefactor  = 10.813
  Prefactor  = 1.21142
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  Normalizat = 1.31128
  Prefactor  = 0.625153
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.519     FROM HESSE     STATUS=OK           413 CALLS     3280 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    20.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    43.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0390        .38644        .21151E-04   -1.5422    
   4  Prefactor     20.317        18.229        .88863E-04   -1.4806    
   5  Prefactor     .10008E-03    15.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    26.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.515        14.051        .82605E-04   -1.4738    
   8  norm          .10001E-03    15.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .72794        .69608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    14.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4742        1.6060        .10885E-03   -1.5465    
  13  Prefactor     .10000E-03    4.5517        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9447        .35857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.627        43.008        .48453E-04   -1.4049    
  16  norm          2.3871        1.1403        .26510E-04   -1.5399    
  17  norm          9.1018        7.4734        .13285E-03   -1.5104    
  18  Prefactor     10.813        22.725        .12182E-03   -1.5050    
  19  Prefactor     1.2114        2.6844        .19629E-03   -1.5488    
  20  Prefactor     .10001E-03    28.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    30.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0222        .11688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3113        .19328        .21439E-03   -.83230    
  25  Prefactor     .62515        .21804        .35204E-03   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92283e-08
Minuit parameter uncertainties:
  1  0.00208047
  2  0.00267146
  3  0.386445
  4  18.2337
  5  0.00218928
  6  0.00172406
  7  14.0525
  8  0.000655374
  9  8.33199e-06
  10  0.00154028
  11  1.10769e-05
  12  1.60608
  13  1.54486e-06
  14  3.49089e-05
  15  43.0271
  16  1.14036
  17  7.47412
  18  22.7433
  19  2.68469
  20  0.0010184
  21  0.000259688
  22  0.00266268
  23  6.83036e-06
  24  0.193383
  25  0.218336
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.863e+01  4.303e+01  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:  6.252e-01  2.183e-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:  1.311e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.08e-05

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) = 7093.26193105
delta logL = 0.257463520578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7093.26114529
delta logL = 0.258249277014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.983       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3568       1.0000          .0000       10.000    
     3 'Normalizat'    1.3289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60680       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7093.261     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      301 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.042        59.461        .20728E-03    .82270E-05
   2  Index         2.3576        .47322        .67088E-02    .23019E-03
   3  Normalizat    1.3285        .18646        .21323E-03    .11063E-03
   4  Prefactor     .60726        .21778        .35659E-03   -.51234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.0418
  Index      = 2.35763
  Normalizat = 1.32855
  Prefactor  = 0.607259
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.261     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.042        58.612        .82913E-05   -1.3765    
   2  Index         2.3576        .46635        .13418E-02   -.55680    
   3  Normalizat    1.3285        .18654        .42647E-04   -.82718    
   4  Prefactor     .60726        .21786        .14264E-04   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11042e-10
Minuit parameter uncertainties:
  1  58.6479
  2  0.46729
  3  0.186631
  4  0.218166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986225': 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) = 7093.26113989
delta logL = 0.258254680502

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.404e+01  5.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.358e+00  4.673e-01  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:  6.073e-01  2.182e-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:  1.329e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.36 +/- 0.47
Photon Flux (Free Index): 6.31e-08 +/- 4.04e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/986225/cmap_HighResolution_396403201_396662401_4FGL_J1139.0+4033_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='2.19e-05', photon_flux_error='4.56e-08', dlogl='2.58e-01', energy_flux='1.73e-05', photon_flux2='6.31e-08', job_status='DONE', time_completed='2021-09-04 07:15:27.777442', photon_index_error2='0.47', photon_index2='2.36', ts='4.88', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.31', time_epoch_completed='1630764927.78', return_code='0', job_id='986225', GAL2='0.61', EG2='1.33', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.04e-08', ts2='5.45', photon_index='2.72' WHERE bin_id='606' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:15:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 986225: <4FGL_J1139.0+4033_daily_bin606> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin606> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 07:01:56 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:01:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:01:58 2021
Terminated at Sat Sep  4 07:15:28 2021
Results reported at Sat Sep  4 07:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin606 174.764 40.5617 396403201 396662401 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 :                                   785.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

