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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin92
RA = 174.764, Dec = 40.5617
tmin = 263174401, tmax = 263433601
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='980169', job_status='RUN', time_executed='2021-09-04 06:50:30.465429', time_epoch_executed='1630763430.47' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980169

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980169/ft1_4FGL_J1139.0+4033_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980169/ft1_4FGL_J1139.0+4033_daily_bin92.fits outfile=/scratch/kocevski/980169/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin92.fits ra=174.764 dec=40.5617 rad=12.0 tmin=263174401.0 tmax=263433601.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.35
user 1.17
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980169/ft1_filtered_4FGL_J1139.0+4033_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/980169/ltcube_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.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/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits
.....................!
real 11.78
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980169/ft1_filtered_4FGL_J1139.0+4033_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/980169/ltcube_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.fits outfile=/scratch/kocevski/980169/expmap_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.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/980169/ltcube_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.fits
.....................!
real 190.08
user 185.35
sys 4.20

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/980169/ft1_filtered_4FGL_J1139.0+4033_daily_bin92.fits scfile=/scratch/kocevski/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits outfile=/scratch/kocevski/980169/cmap_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.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.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980169/ft1_filtered_4FGL_J1139.0+4033_daily_bin92.fits scfile=/scratch/kocevski/980169/ft2_4FGL_J1139.0+4033_daily_bin92.fits outfile=/scratch/kocevski/980169/cmap_HighResolution_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.682       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    165.72       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0886       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.962       1.0000         .10000E-03   10000.    
    12 'norm      '    .12158E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9130       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1272       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.95       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5358       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97961       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=   4231.742     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2913 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.012        60.395       -.18664E-06   -.11509E-04
   2  Prefactor     28.688        83.885        .53336E-06    .63733E-05
   3  norm          1.2769        .39933       -.14723E-07   -.17199E-03
   4  Prefactor     8.5242        13.485        .39165E-06    .31608E-04
   5  Prefactor     .10000E-03    62.724        .81437E-06** at limit **
   6  Prefactor     165.69        146.92       -.19099E-05   -.46943E-04
   7  norm          .10000E-03    5.5219        .60187E-07** at limit **
   8  norm          .10000E-03    22.055        .40242E-07** at limit **
   9  Prefactor     1.3357        2.9684        .37969E-06   -.13302E-03
  10  Prefactor     2.9483        243.60       -.43147E-05   -.16467E-04
  11  Prefactor     24.965        19.597       -.11748E-05   -.38413E-04
  12  norm          .10000E-03    1.6907        .32920E-06** at limit **
  13  Prefactor     5.3327        10.968        .37570E-05   -.18602E-03
  14  Prefactor     .10000E-03    2.0919        .19383E-07** at limit **
  15  Prefactor     .10000E-03    17.425       -.34160E-07** at limit **
  16  norm          1.9138        1.4267        .17245E-06   -.14751E-03
  17  norm          6.7881        7.9231        .71065E-07   -.19394E-05
  18  Prefactor     .10000E-03    20.385       -.23834E-06** at limit **
  19  Prefactor     6.1231        5.2530        .80262E-07   -.13932E-04
  20  Prefactor     101.88        78.732       -.35836E-05   -.17262E-03
  21  Prefactor     .10000E-03    48.161       -.22230E-06** at limit **
  22  Prefactor     .10000E-03    20.071        .22282E-06** at limit **
  23  Prefactor     4.5352        8.3635        .15180E-06   -.33963E-04
  24  Normalizat    .84133        .19971        .17796E-06   -.66758E-04
  25  Prefactor     .98016        .23125       -.31563E-06   -.31111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.0123
  Prefactor  = 28.6883
  norm       = 1.27693
  Prefactor  = 8.52417
  Prefactor  = 0.0001
  Prefactor  = 165.687
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33572
  Prefactor  = 2.94827
  Prefactor  = 24.9654
  norm       = 0.0001
  Prefactor  = 5.33267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91381
  norm       = 6.78805
  Prefactor  = 0.0001
  Prefactor  = 6.12312
  Prefactor  = 101.884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53518
  Normalizat = 0.841328
  Prefactor  = 0.980157
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.742     FROM HESSE     STATUS=OK           427 CALLS     3340 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.012        60.428        .48318E-04   -1.4045    
   2  Prefactor     28.688        84.112        .74808E-04   -1.4636    
   3  norm          1.2769        .40039        .21528E-04   -1.5482    
   4  Prefactor     8.5242        13.499        .13724E-03   -1.5124    
   5  Prefactor     .10000E-03    63.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     165.69        148.15        .15667E-03   -1.3126    
   7  norm          .10000E-03    5.5346        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3357        2.7545        .11763E-03   -1.5477    
  10  Prefactor     2.9483        205.19        .23077E-03   -1.5365    
  11  Prefactor     24.965        19.604        .80177E-04   -1.4708    
  12  norm          .10000E-03    2.6369        .15557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3327        11.137        .87015E-03   -1.5246    
  14  Prefactor     .10000E-03    2.1067        .91850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9138        1.4265        .59199E-04   -1.5431    
  17  norm          6.7881        7.9246        .15402E-03   -1.5187    
  18  Prefactor     .10000E-03    20.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1231        5.2435        .13012E-03   -1.5213    
  20  Prefactor     101.88        82.605        .19910E-03   -1.3686    
  21  Prefactor     .10000E-03    48.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5352        8.3637        .18903E-03   -1.5282    
  24  Normalizat    .84133        .22771        .24616E-03   -.98554    
  25  Prefactor     .98016        .26333        .27615E-03   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49347e-10
Minuit parameter uncertainties:
  1  60.4821
  2  84.4626
  3  0.400395
  4  13.5042
  5  8.50099e-05
  6  148.487
  7  3.23588e-06
  8  1.06203e-05
  9  2.75476
  10  49.3685
  11  19.6091
  12  3.28358e-05
  13  11.1416
  14  1.79123e-06
  15  2.31551e-06
  16  1.42653
  17  7.9258
  18  4.88615e-05
  19  5.24385
  20  82.6981
  21  5.14254e-05
  22  2.53719e-05
  23  8.36583
  24  0.22797
  25  0.263678
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.316e-06  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:  9.802e-01  2.637e-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:  8.413e-01  2.280e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980169/likelihoodResults_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.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): 102
logL (Free Index) = 4231.74252831
delta logL = -0.000273081117484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4231.74225733
delta logL = -2.09844711208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7538       1.0000          .0000       10.000    
     3 'Normalizat'    .84132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98016       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=   4231.742     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10549E-03    5.1702        .18142E-01** at limit **
   2  Index         3.5756        7.6363        .50000        .13964E-04
   3  Normalizat    .84133        .32119E-02    .24616E-03    .55653E-04
   4  Prefactor     .98016        .38832E-02    .27615E-03    .24249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105489
  Index      = 3.57558
  Normalizat = 0.841329
  Prefactor  = 0.980156
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.742     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10549E-03    627.24        .42963E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5756        5.3726        .50000       -.28889    
   3  Normalizat    .84133        .37572E-01    .98463E-05   -.98554    
   4  Prefactor     .98016        .45414E-01    .11046E-04   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77514e-07
Minuit parameter uncertainties:
  1  0.118612
  2  1849.98
  3  0.0375727
  4  0.0454156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980169': 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): 102
logL (Free Index) = 4231.74225685
delta logL = -1.62353080668e-06

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.055e-04  1.186e-01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.576e+00  1.850e+03  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:  9.802e-01  4.542e-02  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:  8.413e-01  3.757e-02  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/980169/cmap_HighResolution_263174401_263433601_4FGL_J1139.0+4033_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-04 07:01:04.829529', job_id='980169', GAL2='0.98', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630764064.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='92' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 980169: <4FGL_J1139.0+4033_daily_bin92> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin92> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 06:46:17 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:46:19 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:46:19 2021
Terminated at Sat Sep  4 07:01:05 2021
Results reported at Sat Sep  4 07:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin92 174.764 40.5617 263174401 263433601 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 :                                   633.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             280.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

