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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin965
RA = 209.928, Dec = 40.2153
tmin = 489456001, tmax = 489715201
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='98841', job_status='RUN', time_executed='2021-09-08 19:45:58.837529', time_epoch_executed='1631155558.84' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98841/ft1_4FGL_J1359.7+4012_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98841/ft1_4FGL_J1359.7+4012_daily_bin965.fits outfile=/scratch/kocevski/98841/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin965.fits ra=209.928 dec=40.2153 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.27
user 4.97
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.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/98841/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/98841/ltcube_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.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/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits
.....................!
real 12.27
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/98841/ltcube_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits outfile=/scratch/kocevski/98841/expmap_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.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/98841/ltcube_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits
.....................!
real 191.17
user 185.64
sys 4.99

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

Setting source of interest to:
4FGL J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits outfile=/scratch/kocevski/98841/cmap_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.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=209.928 yref=40.2153 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/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits outfile=/scratch/kocevski/98841/cmap_HighResolution_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.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=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98841/Model_4FGL_J1359.7+4012_daily_bin965.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/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits.....................!
real 47.41
user 45.92
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits', '/scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits', expMap='/scratch/kocevski/98841/expmap_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits', expCube='/scratch/kocevski/98841/ltcube_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98841/Model_4FGL_J1359.7+4012_daily_bin965.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/98841/ft1_filtered_4FGL_J1359.7+4012_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/98841/ft2_4FGL_J1359.7+4012_daily_bin965.fits
Exposure map: /scratch/kocevski/98841/expmap_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits
Exposure cube: /scratch/kocevski/98841/ltcube_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98841/Model_4FGL_J1359.7+4012_daily_bin965.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) = 5815.5084214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.121       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.894       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7777       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.312       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.010       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15320E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0243       1.0000         .10000E-03   10000.    
    25 'Prefactor '    56.895       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.390       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96628       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5815.495     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4344 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.104        71.466        .21444E-05   -.78773E-05
   2  Prefactor     18.899        18.859        .15909E-06    .29547E-04
   3  norm          .10000E-03    1.4985        .16825E-07** at limit **
   4  norm          .10000E-03    6.5564       -.47973E-09** at limit **
   5  norm          4.7727        6.3006        .23928E-05    .16377E-04
   6  Prefactor     .95595        2.2267       -.20942E-06   -.39289E-03
   7  Prefactor     6.7904        7.2886       -.11143E-06    .27953E-04
   8  Prefactor     6.1120        94.981       -.32775E-04   -.69340E-04
   9  Prefactor     .10000E-03    35.800       -.15756E-05** at limit **
  10  Prefactor     21.215        39.714        .16767E-04   -.29901E-04
  11  norm          2.0794        6.5247        .71929E-05   -.29449E-03
  12  Prefactor     .10000E-03    30.262        .26826E-05** at limit **
  13  norm          .54260        1.2644       -.76397E-06   -.76015E-03
  14  Prefactor     .10000E-03    3.3143       -.24857E-06** at limit **
  15  norm          .10000E-03    3.6425        .46710E-07** at limit **
  16  Prefactor     .10000E-03    5.8937       -.15141E-06** at limit **
  17  Prefactor     11.722        35.858       -.16457E-06    .18371E-04
  18  Prefactor     5.9238        4.8769        .12656E-06    .10658E-03
  19  Prefactor     .10000E-03    41.251       -.25010E-05** at limit **
  20  norm          3.6358        4.1953        .11230E-06   -.42401E-06
  21  Prefactor     28.014        18.166        .11054E-06    .26852E-04
  22  Prefactor     .10000E-03    11.247       -.12458E-06** at limit **
  23  Prefactor     .10000E-03    2.4465        .10798E-06** at limit **
  24  norm          7.0246        17.982        .26158E-06    .10913E-06
  25  Prefactor     56.902        31.029       -.27512E-06    .46675E-04
  26  norm          .10000E-03    4.2273        .29465E-07** at limit **
  27  Prefactor     15.275        32.951       -.16518E-06    .69482E-05
  28  norm          .10000E-03    3.3115        .21694E-06** at limit **
  29  Prefactor     17.390        16.523        .97212E-07   -.27873E-05
  30  Prefactor     .10000E-03    3.0028        .19747E-09** at limit **
  31  Normalizat    .96598        .18070        .42128E-06    .24237E-03
  32  Prefactor     1.1566        .21109       -.13941E-05    .22691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1038
  Prefactor  = 18.8994
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.77267
  Prefactor  = 0.955945
  Prefactor  = 6.79043
  Prefactor  = 6.11198
  Prefactor  = 0.0001
  Prefactor  = 21.2148
  norm       = 2.07942
  Prefactor  = 0.0001
  norm       = 0.542596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.722
  Prefactor  = 5.92379
  Prefactor  = 0.0001
  norm       = 3.63578
  Prefactor  = 28.0142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.02465
  Prefactor  = 56.9022
  norm       = 0.0001
  Prefactor  = 15.2747
  norm       = 0.0001
  Prefactor  = 17.3902
  Prefactor  = 0.0001
  Normalizat = 0.96598
  Prefactor  = 1.15658
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.495     FROM HESSE     STATUS=OK           659 CALLS     5003 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.104        71.477        .53547E-04   -1.4209    
   2  Prefactor     18.899        18.832        .92143E-04   -1.4838    
   3  norm          .10000E-03    1.4994        .91144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.5632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7727        6.2517        .92034E-03   -1.5271    
   6  Prefactor     .95595        1.9209        .16644E-02   -1.5512    
   7  Prefactor     6.7904        7.2764        .76992E-03   -1.5187    
   8  Prefactor     6.1120        94.778        .16284E-03   -1.5213    
   9  Prefactor     .10000E-03    35.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.215        39.691        .86763E-04   -1.4786    
  11  norm          2.0794        6.5505        .14317E-02   -1.5420    
  12  Prefactor     .10000E-03    30.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54260        1.2440        .12245E-03   -1.5561    
  14  Prefactor     .10000E-03    3.3680        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6452        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8956        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.722        35.803        .11701E-03   -1.5023    
  18  Prefactor     5.9238        4.8662        .14399E-03   -1.5221    
  19  Prefactor     .10000E-03    42.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6358        4.1764        .15914E-03   -1.5327    
  21  Prefactor     28.014        18.128        .75698E-04   -1.4649    
  22  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5719        .23071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0246        17.923        .15136E-03   -1.5178    
  25  Prefactor     56.902        31.076        .53184E-04   -1.4198    
  26  norm          .10000E-03    4.2830        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.275        32.935        .10249E-03   -1.4926    
  28  norm          .10000E-03    3.3148        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.390        16.519        .96043E-04   -1.4874    
  30  Prefactor     .10000E-03    3.0059        .12906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .96598        .21673        .23942E-03   -.94179    
  32  Prefactor     1.1566        .25359        .27193E-03   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8152e-10
Minuit parameter uncertainties:
  1  71.5863
  2  18.8379
  3  4.41589e-07
  4  1.39554e-05
  5  6.25259
  6  1.92103
  7  7.27739
  8  48.2272
  9  9.49766e-05
  10  39.74
  11  6.55276
  12  0.000124334
  13  1.2441
  14  6.43882e-06
  15  6.07557e-07
  16  2.77118e-06
  17  35.8689
  18  4.86653
  19  0.000181144
  20  4.17672
  21  18.1316
  22  5.60914e-06
  23  6.05516e-06
  24  17.9371
  25  31.0851
  26  1.44611e-06
  27  32.9746
  28  3.17453e-06
  29  16.5231
  30  1.7835e-07
  31  0.216928
  32  0.253853
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  6.076e-07  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.157e+00  2.539e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.660e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98841/likelihoodResults_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.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) = 5815.49658568
delta logL = -0.00129279338671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5815.49529288
delta logL = 9.62609192356e-09

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 'alpha     '    2.3227       1.0000          .0000       5.0000    
     3 'Normalizat'    .96599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   5815.495     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      229 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.991        .14226E-02** at limit **
   2  alpha         2.0687        2.9522        .16513        .15972E-06
   3  Normalizat    .96598        .20317        .23942E-03    .28016E-04
   4  Prefactor     1.1566        .25099        .27193E-03    .27216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0687
  Normalizat = 0.96598
  Prefactor  = 1.15658
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.495     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7394        .28453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0687        2.8742        .66053E-02   -.17339    
   3  Normalizat    .96598        .20342        .95767E-05   -.94179    
   4  Prefactor     1.1566        .25130        .10877E-04   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43902e-10
Minuit parameter uncertainties:
  1  3.38855e-05
  2  317.071
  3  0.203583
  4  0.251556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98841': 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) = 5815.49529255
delta logL = 3.43211468135e-07

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  3.389e-05  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.069e+00  3.171e+02  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.157e+00  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.660e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.928 40.215

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/98841/cmap_HighResolution_489456001_489715201_4FGL_J1359.7+4012_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-05', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-09-08 20:01:21.852822', job_id='98841', GAL2='1.16', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631156481.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='965' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 98841: <4FGL_J1359.7+4012_daily_bin965> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin965> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:40 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:45:42 2021
Terminated at Wed Sep  8 20:01:22 2021
Results reported at Wed Sep  8 20:01:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin965 209.928 40.2153 489456001 489715201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

