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


Performing analysis on: 4FGL_J1404.8+6554_monthly_bin148
RA = 211.216, Dec = 65.9048
tmin = 620611201, tmax = 623203201
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='557903', job_status='RUN', time_executed='2021-10-25 14:06:30.369573', time_epoch_executed='1635195990.37' WHERE source_name='4FGL J1404.8+6554' and cadence='monthly' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557903

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

Retrieving the FT1 file...

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

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

Retrieving 451 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557903/ft1_4FGL_J1404.8+6554_monthly_bin148.fits


Retrieving the FT1 file...

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

Retrieving 451 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557903/ft1_4FGL_J1404.8+6554_monthly_bin148.fits outfile=/scratch/kocevski/557903/ft1_filteredMKT_4FGL_J1404.8+6554_monthly_bin148.fits ra=211.216 dec=65.9048 rad=12.0 tmin=620611201.0 tmax=623203201.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 33.05
user 32.27
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.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/557903/ft1_filteredMKT_4FGL_J1404.8+6554_monthly_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.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.82
user 0.63
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/557903/ltcube_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.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/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits
.....................!
real 107.52
user 106.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/557903/ltcube_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits outfile=/scratch/kocevski/557903/expmap_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.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/557903/ltcube_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits
.....................!
real 194.16
user 188.37
sys 5.47

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

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits outfile=/scratch/kocevski/557903/cmap_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.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=211.216 yref=65.9048 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.77
user 0.59
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits outfile=/scratch/kocevski/557903/cmap_HighResolution_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.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=211.216 yref=65.9048 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.77
user 0.60
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/557903/Model_4FGL_J1404.8+6554_monthly_bin148.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/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits.....................!
real 621.63
user 619.37
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits', '/scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits', expMap='/scratch/kocevski/557903/expmap_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits', expCube='/scratch/kocevski/557903/ltcube_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557903/Model_4FGL_J1404.8+6554_monthly_bin148.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/557903/ft1_filtered_4FGL_J1404.8+6554_monthly_bin148.fits
Spacecraft file(s): /scratch/kocevski/557903/ft2_4FGL_J1404.8+6554_monthly_bin148.fits
Exposure map: /scratch/kocevski/557903/expmap_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits
Exposure cube: /scratch/kocevski/557903/ltcube_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557903/Model_4FGL_J1404.8+6554_monthly_bin148.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) = 83867.2360143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6793       1.0000         .10000E-03   10000.    
     2 'norm      '    5.6461       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4422       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .61169E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35644E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2281       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4171       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1503       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14596E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0554       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3958       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5659       1.0000         .10000E-03   10000.    
    28 'norm      '    1.5613       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.123       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   83867.19     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     3648 TOTAL
                     EDM=   .35E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6793        5.0484         .0000        .12037E-01
   2  norm          5.6461        1.2687         .0000        .22301E-02
   3  norm          3.1232        .67731         .0000       -.89764E-03
   4  Prefactor     14.561        7.8356         .0000        .39789E-04
   5  Prefactor     4.4421        2.2949         .0000       -.41122E-02
   6  Prefactor     .10000E-03    3.4829         .0000    ** at limit **
   7  Prefactor     6.6046        5.4343         .0000        .32203E-02
   8  Prefactor     26.566        15.965         .0000        .23216E-04
   9  Prefactor     .10000E-03    .19276         .0000    ** at limit **
  10  Prefactor     .10061E-03    .73700         .0000    ** at limit **
  11  Prefactor     .10006E-03    2.0667         .0000    ** at limit **
  12  Prefactor     .10000E-03    .66956         .0000    ** at limit **
  13  Prefactor     1.2287        1.8079         .0000        .31553    
  14  norm          .10000E-03    6.1847         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.2086         .0000    ** at limit **
  16  norm          1.4171        .94818         .0000        .92540E-02
  17  Prefactor     7.2387        5.8967         .0000        .38898E-02
  18  Prefactor     .10001E-03    33.016         .0000    ** at limit **
  19  Prefactor     1.5409        .67972         .0000        .40659E-02
  20  Prefactor     .10000E-03    4.3338         .0000    ** at limit **
  21  Prefactor     10.209        9.2094         .0000        .10185E-02
  22  Prefactor     9.1499        5.9582         .0000       -.22834E-03
  23  Prefactor     1.8711        2.5138         .0000        .55393E-02
  24  Prefactor     .10000E-03    .88707         .0000    ** at limit **
  25  Prefactor     1.0558        1.8200         .0000        .36074    
  26  Prefactor     1.3963        2.4224         .0000        .89900E-02
  27  Prefactor     7.5657        4.4894         .0000        .10979E-02
  28  norm          1.5612        .59215         .0000        .38241E-02
  29  Prefactor     10.122        18.601         .0000        .24911E-03
  30  Normalizat    1.1689        .46649E-01     .0000        .55319E-03
  31  Prefactor     .94683        .49575E-01     .0000        .39706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6793
  norm       = 5.64613
  norm       = 3.12322
  Prefactor  = 14.561
  Prefactor  = 4.44215
  Prefactor  = 0.0001
  Prefactor  = 6.60461
  Prefactor  = 26.5662
  Prefactor  = 0.0001
  Prefactor  = 0.000100612
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 1.22869
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41712
  Prefactor  = 7.23875
  Prefactor  = 0.000100013
  Prefactor  = 1.54088
  Prefactor  = 0.000100001
  Prefactor  = 10.2088
  Prefactor  = 9.14993
  Prefactor  = 1.87114
  Prefactor  = 0.0001
  Prefactor  = 1.05578
  Prefactor  = 1.39629
  Prefactor  = 7.56571
  norm       = 1.56122
  Prefactor  = 10.1222
  Normalizat = 1.1689
  Prefactor  = 0.946834
 **********
 **   18 **HESSE 
 **********

 FCN=   83867.19     FROM HESSE     STATUS=OK           656 CALLS     4304 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6793        5.0454        .93018E-03   -1.5275    
   2  norm          5.6461        1.2677        .14967E-03   -1.5233    
   3  norm          3.1232        .67738        .10756E-03   -1.5354    
   4  Prefactor     14.561        7.8348        .10496E-03   -1.4945    
   5  Prefactor     4.4421        2.2922        .19106E-03   -1.5286    
   6  Prefactor     .10000E-03    3.5056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6046        5.4481        .78081E-03   -1.5194    
   8  Prefactor     26.566        15.949        .77723E-04   -1.4677    
   9  Prefactor     .10000E-03    .39733        .24290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10061E-03    1.1980        .74483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    2.2205        .14058       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .68591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2287        1.8035        .20304E-02   -1.5486    
  14  norm          .10000E-03    6.2034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4171        .93409        .22009E-03   -1.5470    
  17  Prefactor     7.2387        5.8867        .74542E-03   -1.5170    
  18  Prefactor     .10001E-03    33.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5409        .67591        .15316E-03   -1.5460    
  20  Prefactor     .10000E-03    4.4558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.209        9.2088        .62703E-03   -1.5069    
  22  Prefactor     9.1499        5.9516        .13249E-03   -1.5103    
  23  Prefactor     1.8711        2.4993        .30449E-03   -1.5434    
  24  Prefactor     .10000E-03    4.7669        .52443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0558        1.8178        .23969E-02   -1.5502    
  26  Prefactor     1.3963        2.3949        .36752E-03   -1.5472    
  27  Prefactor     7.5657        4.4676        .14580E-03   -1.5158    
  28  norm          1.5612        .58663        .13208E-03   -1.5458    
  29  Prefactor     10.122        18.555        .12594E-03   -1.5072    
  30  Normalizat    1.1689        .53933E-01    .21348E-03   -.87570    
  31  Prefactor     .94683        .57910E-01    .25981E-03   -.94523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56065e-08
Minuit parameter uncertainties:
  1  5.04584
  2  1.26769
  3  0.677384
  4  7.83533
  5  2.29222
  6  1.41418e-05
  7  5.44849
  8  15.9512
  9  1.62027e-06
  10  0.00171234
  11  0.000707611
  12  3.62765e-06
  13  1.80358
  14  2.39393e-05
  15  2.55277e-06
  16  0.934097
  17  5.88718
  18  0.00131498
  19  0.675917
  20  0.000115631
  21  9.21006
  22  5.95199
  23  2.49943
  24  7.75802e-05
  25  1.81787
  26  2.39505
  27  4.46784
  28  0.586631
  29  18.5658
  30  0.0539352
  31  0.0579136
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.239e+00  5.887e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  9.468e-01  5.791e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.169e+00  5.394e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 211.216 65.905
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.75e-09 +/- 3.05e-09
Energy Flux (Fixed Index): 3.13e-06 +/- 2.55e-06

TS (Fixed Index): 2.45
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: 1.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557903/likelihoodResults_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.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) = 83866.5830019
delta logL = 0.604607806963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 83866.5686766
delta logL = 0.618933161008

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   83866.57     FROM MIGRAD    STATUS=FAILED        97 CALLS      307 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0493        7.7392        .89472E-03    .83846E-03
   2  Index         2.4467        .74422        .12655E-01    .50007E-02
   3  Normalizat    1.1629        .52576E-01    .21397E-03    .17002E-04
   4  Prefactor     .94962        .57795E-01    .25946E-03   -.10516E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   83866.57     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      383 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0493        7.7392        .10291E-03   -1.5259    
   2  Index         2.4467        .74422        .51173E-03   -.53596    
   3  Normalizat    1.1629        .52576E-01    .81421E-04   -.87757    
   4  Prefactor     .94962        .57795E-01    .94781E-04   -.94428    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   83866.57     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      416 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0493        5.0698        .17894E-03   -.14231E-04
   2  Index         2.4467        .48934        .25310E-02   -.33563E-04
   3  Normalizat    1.1629        .52145E-01    .85589E-05    .17002E-04
   4  Prefactor     .94962        .57556E-01    .10379E-04   -.10516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04931
  Index      = 2.44667
  Normalizat = 1.1629
  Prefactor  = 0.949624
 **********
 **   18 **HESSE 
 **********

 FCN=   83866.57     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0493        4.8030        .71578E-05   -1.5259    
   2  Index         2.4467        .46349        .10124E-03   -.53596    
   3  Normalizat    1.1629        .52131E-01    .17118E-05   -.87757    
   4  Prefactor     .94962        .57549E-01    .20757E-05   -.94428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89036e-11
Minuit parameter uncertainties:
  1  4.80332
  2  0.464395
  3  0.0521332
  4  0.0575523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557903': 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) = 83866.5686766
delta logL = 0.618933167483

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  5.049e+00  4.803e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.447e+00  4.644e-01  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  9.496e-01  5.755e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.163e+00  5.213e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 211.216 65.905
Photon Index (Free Index): 2.45 +/- 0.46
Photon Flux (Free Index): 8.90e-09 +/- 6.98e-09
Energy Flux (Free Index): 2.75e-06 +/- 1.77e-06

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/557903/cmap_HighResolution_620611201_623203201_4FGL_J1404.8+6554_monthly_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-04', comment='SUCCESS', photon_flux='3.75e-09', energy_flux2='2.75e-06', photon_flux_error='3.05e-09', dlogl='6.19e-01', energy_flux='3.13e-06', photon_flux2='8.90e-09', job_status='DONE', time_completed='2021-10-25 16:52:40.882543', photon_index_error2='0.46', photon_index2='2.45', ts='2.45', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.07e-08', energy_flux_error2='1.77e-06', EG='1.17', time_epoch_completed='1635205960.88', return_code='0', job_id='557903', GAL2='0.95', EG2='1.16', return_code2='0', energy_flux_error='2.55e-06', photon_flux_error2='6.98e-09', ts2='3.69', photon_index='1.93' WHERE bin_id='148' AND source_name='4FGL J1404.8+6554' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 16:52:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 557903: <4FGL_J1404.8+6554_monthly_bin148> in cluster <slac> Done

Job <4FGL_J1404.8+6554_monthly_bin148> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct 25 14:05:17 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 14:05:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 14:05:19 2021
Terminated at Mon Oct 25 16:52:42 2021
Results reported at Mon Oct 25 16:52:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_monthly_bin148 211.216 65.9048 620611201 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9901.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             433.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10042 sec.
    Turnaround time :                            10045 sec.

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

