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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin5
RA = 144.475, Dec = -14.5706
tmin = 240624001, tmax = 240883201
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='368967', job_status='RUN', time_executed='2021-08-31 19:14:21.352358', time_epoch_executed='1630462461.35' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368967

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368967/ft1_4FGL_J0937.9-1434_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368967/ft1_4FGL_J0937.9-1434_daily_bin5.fits outfile=/scratch/kocevski/368967/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin5.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=240624001.0 tmax=240883201.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.37
user 1.20
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.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/368967/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.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/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/368967/ltcube_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.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/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits
.....................!
real 13.66
user 13.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/368967/ltcube_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits outfile=/scratch/kocevski/368967/expmap_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.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/368967/ltcube_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits
.....................!
real 191.15
user 186.39
sys 4.33

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

Setting source of interest to:
4FGL J0937.9-1434 @ 144.475 -14.5706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits outfile=/scratch/kocevski/368967/cmap_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.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=144.475 yref=-14.5706 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits outfile=/scratch/kocevski/368967/cmap_HighResolution_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.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=144.475 yref=-14.5706 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368967/Model_4FGL_J0937.9-1434_daily_bin5.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/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits.....................!
real 72.82
user 71.28
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits', '/scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits', expMap='/scratch/kocevski/368967/expmap_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits', expCube='/scratch/kocevski/368967/ltcube_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368967/Model_4FGL_J0937.9-1434_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.9-1434'

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368967/ft1_filtered_4FGL_J0937.9-1434_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/368967/ft2_4FGL_J0937.9-1434_daily_bin5.fits
Exposure map: /scratch/kocevski/368967/expmap_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits
Exposure cube: /scratch/kocevski/368967/ltcube_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368967/Model_4FGL_J0937.9-1434_daily_bin5.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) = 6829.24351883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93690       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7560       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55657       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6125       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8838       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.700       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96854       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6829.206     FROM MIGRAD    STATUS=FAILED       703 CALLS     2381 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7533        .17572E-02** at limit **
   2  norm          4.9824        3.0771        .10909E-03    .19603E-03
   3  Prefactor     2.1485        5.7977        .28120E-03    .91370E-05
   4  Prefactor     .93642        24.697        .44959E-02    .18633E-03
   5  Prefactor     .10000E-03    2.1038        .11695E-02** at limit **
   6  Prefactor     9.7485        20.310        .12830E-03    .71157E-04
   7  Prefactor     .91025        238.19        .78127E-02    .64533E-03
   8  Prefactor     29.844        41.585        .73343E-04    .43092E-04
   9  Prefactor     .10001E-03    140.40        .69285E-02** at limit **
  10  Prefactor     .10000E-03    44.781        .18142E-02** at limit **
  11  Prefactor     6.6089        13.095        .15605E-03    .42618E-04
  12  norm          .10000E-03    2.3157        .12262E-02** at limit **
  13  norm          .10000E-03    1.2527        .89991E-03** at limit **
  14  norm          1.8845        5.4461        .15163E-02    .18726E-03
  15  norm          .10000E-03    1.6604        .15781E-02** at limit **
  16  norm          14.703        11.925        .10447E-03    .77266E-05
  17  norm          .10000E-03    .38597        .98025E-04** at limit **
  18  Normalizat    .96855        .22016        .30018E-03    .46867E-03
  19  Prefactor     1.0130        .13265        .17982E-03    .16761E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6829.206     FROM SIMPLEX   STATUS=UNCHANGED    950 CALLS     3331 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7533        .28794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9824        3.0771        .21704E-06   -1.5262    
   3  Prefactor     2.1485        5.7977        .22585E-06   -1.5415    
   4  Prefactor     .93642        24.697        .25334E-06   -1.5514    
   5  Prefactor     .10000E-03    2.1038        .19920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7485        20.310        .23151E-06   -1.5083    
   7  Prefactor     .91025        238.19        .12297E-05   -1.5517    
   8  Prefactor     29.844        41.585        .25832E-06   -1.4615    
   9  Prefactor     .10001E-03    140.40        .75987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.781        .53688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6089        13.095        .22266E-06   -1.5194    
  12  norm          .10000E-03    2.3157        .20495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2527        .74902E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8845        5.4461        .21801E-06   -1.5433    
  15  norm          .10000E-03    1.6604        .73495E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.703        11.925        .21285E-06   -1.4941    
  17  norm          .10000E-03    .38597        .45511E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96855        .22016        .13269E-06   -.94092    
  19  Prefactor     1.0130        .13265        .13084E-06   -.92297    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6829.206     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     3588 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7537        .35144E-03** at limit **
   2  norm          4.9824        3.0695        .43636E-05    .88583E-05
   3  Prefactor     2.1485        5.7963        .11248E-04   -.18193E-05
   4  Prefactor     .93635        24.627        .17984E-03    .28447E-05
   5  Prefactor     .10000E-03    2.1038        .23390E-03** at limit **
   6  Prefactor     9.7485        20.303        .51318E-05   -.88613E-06
   7  Prefactor     .91064        242.52        .15625E-02    .16152E-05
   8  Prefactor     29.844        41.564        .29337E-05   -.77504E-06
   9  Prefactor     .10000E-03    144.18        .27714E-03** at limit **
  10  Prefactor     .10000E-03    44.801        .36285E-03** at limit **
  11  Prefactor     6.6089        13.091        .62422E-05   -.43710E-05
  12  norm          .10000E-03    2.3158        .24524E-03** at limit **
  13  norm          .10000E-03    1.2528        .17998E-03** at limit **
  14  norm          1.8845        5.4443        .60653E-04    .82472E-06
  15  norm          .10000E-03    1.6642        .31561E-03** at limit **
  16  norm          14.703        11.920        .41787E-05   -.16324E-05
  17  norm          .10000E-03    .38597        .19605E-04** at limit **
  18  Normalizat    .96854        .21998        .60036E-04   -.18368E-04
  19  Prefactor     1.0130        .13268        .35965E-04   -.29145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.98243
  Prefactor  = 2.14854
  Prefactor  = 0.936348
  Prefactor  = 0.0001
  Prefactor  = 9.74847
  Prefactor  = 0.910644
  Prefactor  = 29.8443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6089
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.88449
  norm       = 0.0001
  norm       = 14.703
  norm       = 0.0001
  Normalizat = 0.968541
  Prefactor  = 1.01302
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.206     FROM HESSE     STATUS=OK           250 CALLS     3838 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7538        .70289E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9824        3.0687        .87271E-06   -1.5262    
   3  Prefactor     2.1485        5.7949        .22496E-05   -1.5415    
   4  Prefactor     .93635        24.608        .71935E-05   -1.5514    
   5  Prefactor     .10000E-03    2.1038        .46780E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7485        20.361        .10264E-05   -1.5083    
   7  Prefactor     .91064        241.90        .62501E-04   -1.5517    
   8  Prefactor     29.844        41.255        .58674E-06   -1.4615    
   9  Prefactor     .10000E-03    144.19        .55428E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.802        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6089        13.087        .12484E-05   -1.5194    
  12  norm          .10000E-03    2.3158        .49047E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2528        .35996E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8845        5.4443        .12131E-04   -1.5433    
  15  norm          .10000E-03    1.6644        .63123E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.703        11.909        .83573E-06   -1.4941    
  17  norm          .10000E-03    .38597        .39210E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96854        .21994        .12007E-04   -.94092    
  19  Prefactor     1.0130        .13268        .71929E-05   -.92297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08601e-12
Minuit parameter uncertainties:
  1  5.38103e-07
  2  3.06884
  3  5.79642
  4  9.60417
  5  2.06276e-07
  6  20.376
  7  29.8045
  8  41.2949
  9  0.000147005
  10  4.76602e-06
  11  13.093
  12  2.38765e-07
  13  7.74404e-08
  14  5.44572
  15  2.58444e-07
  16  11.9112
  17  3.85361e-09
  18  0.220147
  19  0.132727
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.766e-06  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.013e+00  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.685e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368967/likelihoodResults_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.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) = 6829.20614613
delta logL = -0.000106326724563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6828.97147249
delta logL = 0.234567309034

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6828.971     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      283 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23330        5.5931        .10144E-01   -.19063E-02
   2  Index         3.7955        2.2334        .92086E-01   -.97587E-04
   3  Normalizat    .92647        .33750E-01    .69230E-01   -.20634E-03
   4  Prefactor     1.0258        .20720E-01    .41610E-01   -.18450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.233303
  Index      = 3.79546
  Normalizat = 0.92647
  Prefactor  = 1.02583
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.971     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      314 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23330        25.412        .58177E-04   -1.5611    
   2  Index         3.7955        6.8809        .58815E-02   -.24330    
   3  Normalizat    .92647        .17271        .30628E-03   -.95536    
   4  Prefactor     1.0258        .10212        .17880E-03   -.91873    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93301e-09
Minuit parameter uncertainties:
  1  4.8709
  2  7.00566
  3  0.172811
  4  0.102143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368967': 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) = 6828.97146395
delta logL = 0.234575857065

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.333e-01  4.871e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.795e+00  7.006e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.026e+00  1.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.265e-01  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.475 -14.571

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/368967/cmap_HighResolution_240624001_240883201_4FGL_J0937.9-1434_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-08-31 19:26:07.021991', job_id='368967', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.97', time_epoch_completed='1630463167.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.35e-01', ts2='0.50', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='5' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 368967: <4FGL_J0937.9-1434_daily_bin5> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin5> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:45 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:10:47 2021
Terminated at Tue Aug 31 19:26:07 2021
Results reported at Tue Aug 31 19:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin5 144.475 -14.5706 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.9-1434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

