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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin71
RA = 209.928, Dec = 40.2153
tmin = 257731201, tmax = 257990401
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='95451', job_status='RUN', time_executed='2021-09-08 19:35:44.540381', time_epoch_executed='1631154944.54' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95451/ft1_4FGL_J1359.7+4012_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95451/ft1_4FGL_J1359.7+4012_daily_bin71.fits outfile=/scratch/kocevski/95451/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin71.fits ra=209.928 dec=40.2153 rad=12.0 tmin=257731201.0 tmax=257990401.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.38
user 1.22
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/95451/ltcube_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.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/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits
.....................!
real 12.89
user 12.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/95451/ltcube_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits outfile=/scratch/kocevski/95451/expmap_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.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/95451/ltcube_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits
.....................!
real 190.31
user 185.46
sys 4.49

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/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits scfile=/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits outfile=/scratch/kocevski/95451/cmap_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits scfile=/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits outfile=/scratch/kocevski/95451/cmap_HighResolution_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95451/Model_4FGL_J1359.7+4012_daily_bin71.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/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits.....................!
real 42.97
user 41.67
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits', '/scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits', expMap='/scratch/kocevski/95451/expmap_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits', expCube='/scratch/kocevski/95451/ltcube_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95451/Model_4FGL_J1359.7+4012_daily_bin71.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/95451/ft1_filtered_4FGL_J1359.7+4012_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/95451/ft2_4FGL_J1359.7+4012_daily_bin71.fits
Exposure map: /scratch/kocevski/95451/expmap_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits
Exposure cube: /scratch/kocevski/95451/ltcube_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95451/Model_4FGL_J1359.7+4012_daily_bin71.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) = 5166.33463087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.654       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9773       1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.026       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.472       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8992       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .57947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4046       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27624E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.884       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.0448       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6676       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75622       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2771       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=   5166.325     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4341 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.395       -.21599E-06** at limit **
   2  Prefactor     .10000E-03    10.625        .38141E-06** at limit **
   3  norm          17.654        7.9543        .49073E-07   -.35278E-05
   4  norm          4.9694        16.491        .31287E-06    .74231E-05
   5  norm          .10000E-03    3.4400        .54072E-07** at limit **
   6  Prefactor     4.1615        3.7178       -.37325E-08   -.52840E-05
   7  Prefactor     .10000E-03    9.9151        .75739E-07** at limit **
   8  Prefactor     42.016        36.357        .14841E-06   -.12980E-05
   9  Prefactor     .10000E-03    216.35       -.24204E-06** at limit **
  10  Prefactor     .10000E-03    39.380        .29366E-06** at limit **
  11  norm          .10000E-03    3.6026        .10027E-06** at limit **
  12  Prefactor     29.449        53.089       -.81443E-06   -.42906E-04
  13  norm          7.8993        2.1959       -.10895E-07   -.11762E-04
  14  Prefactor     .10000E-03    3.1161        .22362E-06** at limit **
  15  norm          .10000E-03    12.308       -.49857E-06** at limit **
  16  Prefactor     .10000E-03    9.6031       -.60715E-06** at limit **
  17  Prefactor     37.127        34.550       -.69511E-07   -.13071E-04
  18  Prefactor     .10000E-03    1.9815        .23216E-07** at limit **
  19  Prefactor     .10000E-03    7.8774        .31065E-07** at limit **
  20  norm          .57781        3.6126        .51394E-06   -.27577E-03
  21  Prefactor     .10000E-03    26.827       -.41238E-05** at limit **
  22  Prefactor     3.4318        33.455        .13848E-05   -.24661E-04
  23  Prefactor     .10000E-03    2.3172       -.20642E-06** at limit **
  24  norm          .10000E-03    24.083       -.12083E-05** at limit **
  25  Prefactor     49.888        32.916       -.48771E-06   -.44003E-04
  26  norm          .10000E-03    2.8992       -.14023E-06** at limit **
  27  Prefactor     .10000E-03    20.921       -.95308E-07** at limit **
  28  norm          7.0449        6.8397       -.14056E-05   -.68555E-04
  29  Prefactor     .10000E-03    12.229        .13859E-07** at limit **
  30  Prefactor     3.6663        9.2154        .47278E-06    .59383E-05
  31  Normalizat    .75588        .19639        .17723E-05   -.55912E-04
  32  Prefactor     1.2776        .22840       -.18998E-05    .65091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.654
  norm       = 4.96943
  norm       = 0.0001
  Prefactor  = 4.1615
  Prefactor  = 0.0001
  Prefactor  = 42.0161
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4489
  norm       = 7.89931
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.57781
  Prefactor  = 0.000100001
  Prefactor  = 3.43177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.8878
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.04487
  Prefactor  = 0.0001
  Prefactor  = 3.66629
  Normalizat = 0.755883
  Prefactor  = 1.2776
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.325     FROM HESSE     STATUS=OK           649 CALLS     4990 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.654        7.9451        .95322E-04   -1.4867    
   4  norm          4.9694        16.469        .18026E-03   -1.5262    
   5  norm          .10000E-03    3.4726        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1615        3.7139        .12190E-03   -1.5300    
   7  Prefactor     .10000E-03    9.9518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.016        36.329        .61837E-04   -1.4411    
   9  Prefactor     .10000E-03    218.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6897        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.449        53.198        .73800E-04   -1.4622    
  13  norm          7.8993        2.1971        .53382E-04   -1.5146    
  14  Prefactor     .10000E-03    3.1977        .24741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.127        34.551        .65756E-04   -1.4489    
  18  Prefactor     .10000E-03    1.9900        .98795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .57781        13.377        .23549E-02   -1.5556    
  21  Prefactor     .10000E-03    27.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4318        33.357        .21925E-03   -1.5337    
  23  Prefactor     .10000E-03    9.1080        .20558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    24.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     49.888        32.900        .56779E-04   -1.4294    
  26  norm          .10000E-03    2.9090        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.0449        6.8575        .75571E-03   -1.5177    
  29  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.6663        9.1983        .21092E-03   -1.5325    
  31  Normalizat    .75588        .22611        .25673E-03   -1.0173    
  32  Prefactor     1.2776        .26212        .25342E-03   -.83976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13563e-10
Minuit parameter uncertainties:
  1  0.000193995
  2  8.81961e-05
  3  7.9456
  4  16.484
  5  1.00804e-06
  6  3.71412
  7  1.91885e-07
  8  36.3485
  9  0.000701324
  10  0.000132063
  11  1.47623e-06
  12  53.2836
  13  2.19712
  14  1.90404e-06
  15  5.54922e-05
  16  6.8379e-05
  17  34.5692
  18  5.64885e-07
  19  5.3091e-06
  20  5.56129
  21  0.00024506
  22  21.4138
  23  7.44864e-05
  24  8.8099e-06
  25  32.9118
  26  1.889e-06
  27  1.96607e-05
  28  6.85822
  29  5.60805e-06
  30  9.20189
  31  0.226393
  32  0.262391
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  5.549e-05  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.278e+00  2.624e-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:  7.559e-01  2.264e-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: 5.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95451/likelihoodResults_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.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) = 5166.32555741
delta logL = -0.00038031789154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5166.32517689
delta logL = 2.04025127459e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3642       1.0000          .0000       5.0000    
     3 'Normalizat'    .75589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2776       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5166.251     FROM MIGRAD    STATUS=FAILED       148 CALLS      293 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60959        116.26        .18142E-01    .96092E-03
   2  alpha         5.0000        2.6405        .50000    ** at limit **
   3  Normalizat    .73127        .70773E-01    .25673E-03   -.19781E-03
   4  Prefactor     1.2964        .75486E-01    .25342E-03   -.78568E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5166.251     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      420 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60959        116.26        .93636E-05    .96092E-03
   2  alpha         5.0000        2.6405        .20769E-01** at limit **
   3  Normalizat    .73127        .70773E-01    .46758E-06   -.19781E-03
   4  Prefactor     1.2964        .75486E-01    .15204E-06   -.78568E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5166.251     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      464 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60959        1.8268        .13762E-03   -.11979E-04
   2  alpha         5.0000        4.6778        .50000    ** at limit **
   3  Normalizat    .73127        .21720        .10269E-04   -.16540E-03
   4  Prefactor     1.2964        .26396        .50685E-04   -.61100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.609594
  alpha      = 5
  Normalizat = 0.731269
  Prefactor  = 1.2964
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.251     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60959        1.8148        .55046E-05   -1.5552    
   2  alpha         5.0000        4.6974        .50000        45.553    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .73127        .21723        .20538E-05   -1.0267    
   4  Prefactor     1.2964        .26398        .10137E-04   -.83414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12865e-10
Minuit parameter uncertainties:
  1  1.81492
  2  0.000334928
  3  0.217483
  4  0.264253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95451': 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) = 5166.25118228
delta logL = 0.073994813617

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  6.096e-01  1.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  5.000e+00  3.349e-04  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.296e+00  2.643e-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:  7.313e-01  2.175e-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/95451/cmap_HighResolution_257731201_257990401_4FGL_J1359.7+4012_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2021-09-08 19:49:51.292634', job_id='95451', GAL2='1.30', fit_tolerance='1e-08', EG2='0.73', EG='0.76', time_epoch_completed='1631155791.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='7.40e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='71' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:49:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 95451: <4FGL_J1359.7+4012_daily_bin71> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin71> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:33 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:35 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:35:35 2021
Terminated at Wed Sep  8 19:49:52 2021
Results reported at Wed Sep  8 19:49:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin71 209.928 40.2153 257731201 257990401 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 :                                   844.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

