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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1449
RA = 209.928, Dec = 40.2153
tmin = 614908801, tmax = 615168001
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='101837', job_status='RUN', time_executed='2021-09-08 19:56:08.449727', time_epoch_executed='1631156168.45' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101837/ft1_4FGL_J1359.7+4012_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101837/ft1_4FGL_J1359.7+4012_daily_bin1449.fits outfile=/scratch/kocevski/101837/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1449.fits ra=209.928 dec=40.2153 rad=12.0 tmin=614908801.0 tmax=615168001.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 3.58
user 3.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.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/101837/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/101837/ltcube_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.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/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits
.....................!
real 11.90
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/101837/ltcube_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.fits outfile=/scratch/kocevski/101837/expmap_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.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/101837/ltcube_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.fits
.....................!
real 190.77
user 185.68
sys 4.65

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/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits outfile=/scratch/kocevski/101837/cmap_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits outfile=/scratch/kocevski/101837/cmap_HighResolution_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/101837/ft2_4FGL_J1359.7+4012_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101837/Model_4FGL_J1359.7+4012_daily_bin1449.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/101837/ft1_filtered_4FGL_J1359.7+4012_daily_bin1449.fits.....................!
real 48.19
user 46.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.555       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1040       1.0000         .10000E-03   10000.    
     4 'norm      '    17.299       1.0000         .10000E-03   10000.    
     5 'norm      '    .42034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .87903E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.415       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .74962       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.702       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.612       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68529       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3882       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=   6183.773     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4344 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.796        .24896E-06** at limit **
   2  Prefactor     15.535        22.250        .62179E-06   -.29513E-05
   3  norm          4.1038        3.8163       -.74734E-06   -.29000E-03
   4  norm          17.297        14.275        .93561E-07   -.31057E-04
   5  norm          .42094        2.8650        .27410E-06   -.11433E-03
   6  Prefactor     .10000E-03    1.1066       -.39119E-07** at limit **
   7  Prefactor     .10000E-03    4.8295        .19847E-07** at limit **
   8  Prefactor     .10000E-03    9.7771        .10748E-06** at limit **
   9  Prefactor     .10000E-03    56.278       -.24458E-06** at limit **
  10  Prefactor     .10000E-03    27.121        .51347E-06** at limit **
  11  norm          .10003E-03    2.4294        .77600E-06** at limit **
  12  Prefactor     29.284        62.698       -.69713E-06   -.61281E-04
  13  norm          1.8390        1.1680       -.45249E-07   -.46807E-03
  14  Prefactor     .10000E-03    1.4915        .18038E-06** at limit **
  15  norm          .10000E-03    7.3174       -.40631E-06** at limit **
  16  Prefactor     .10000E-03    16.392        .23552E-06** at limit **
  17  Prefactor     .10000E-03    24.421        .54367E-06** at limit **
  18  Prefactor     .10000E-03    2.6543        .26993E-06** at limit **
  19  Prefactor     .63327        11.734        .13116E-05   -.20809E-03
  20  norm          .10000E-03    3.4112        .37648E-06** at limit **
  21  Prefactor     .10000E-03    12.723        .51670E-06** at limit **
  22  Prefactor     .10000E-03    19.623        .95157E-06** at limit **
  23  Prefactor     30.699        6.4660        .37404E-07   -.10707E-03
  24  norm          .10000E-03    13.021        .25948E-06** at limit **
  25  Prefactor     .10000E-03    47.382        .14827E-05** at limit **
  26  norm          10.365        6.6713        .94138E-06    .20518E-03
  27  Prefactor     .10000E-03    12.465        .82726E-07** at limit **
  28  norm          .10000E-03    11.721        .16105E-06** at limit **
  29  Prefactor     24.610        23.694        .45068E-06    .60528E-05
  30  Prefactor     15.839        12.207        .13964E-06   -.52935E-05
  31  Normalizat    .68593        .18208        .21976E-05   -.53464E-03
  32  Prefactor     1.3876        .22482       -.38727E-05   -.34764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.5353
  norm       = 4.10383
  norm       = 17.2967
  norm       = 0.420937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100029
  Prefactor  = 29.284
  norm       = 1.83897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.633273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6993
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.61
  Prefactor  = 15.8389
  Normalizat = 0.68593
  Prefactor  = 1.38758
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.773     FROM HESSE     STATUS=OK           649 CALLS     4993 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.535        22.398        .10155E-03   -1.4919    
   3  norm          4.1038        3.8322        .71288E-03   -1.5303    
   4  norm          17.297        14.278        .96296E-04   -1.4876    
   5  norm          .42094        5.9669        .25675E-02   -1.5578    
   6  Prefactor     .10000E-03    1.1174        .80733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8409        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    15.496        .22635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.284        63.103        .73871E-04   -1.4625    
  13  norm          1.8390        1.1654        .65046E-04   -1.5437    
  14  Prefactor     .10000E-03    1.5081        .93843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.3588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6807        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63327        119.33        .48383E-02   -1.5549    
  20  norm          .10000E-03    3.5007        .28373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.699        6.4714        .72311E-04   -1.4599    
  24  norm          .10000E-03    13.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.365        6.7199        .62226E-03   -1.5064    
  27  Prefactor     .10000E-03    12.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.610        23.673        .80745E-04   -1.4715    
  30  Prefactor     15.839        12.201        .10063E-03   -1.4912    
  31  Normalizat    .68593        .20483        .26551E-03   -1.0445    
  32  Prefactor     1.3876        .24522        .24746E-03   -.80739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59601e-08
Minuit parameter uncertainties:
  1  1.17303e-06
  2  22.41
  3  3.83242
  4  14.2807
  5  3.16966
  6  7.16671e-07
  7  3.04733e-06
  8  2.09265e-06
  9  0.000105867
  10  1.77569e-05
  11  0.00134858
  12  63.2478
  13  1.1654
  14  4.45915e-06
  15  5.55172e-06
  16  1.18776e-05
  17  5.0514e-05
  18  7.89573e-06
  19  17.4199
  20  1.16311e-05
  21  1.23152e-05
  22  6.1619e-05
  23  6.47152
  24  3.82499e-06
  25  0.000132768
  26  6.72041
  27  3.78565e-06
  28  1.29786e-05
  29  23.6824
  30  12.2027
  31  0.205059
  32  0.245431
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  5.552e-06  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.388e+00  2.454e-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:  6.859e-01  2.051e-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: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101837/likelihoodResults_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.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) = 6183.77326771
delta logL = -0.000646784662422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6183.77262096
delta logL = -3.70027919416e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3263       1.0000          .0000       5.0000    
     3 'Normalizat'    .68590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3876       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=   6183.773     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      226 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1352.7        .18142E-02** at limit **
   2  alpha         2.3109        2.5877        .16511        .34558E-06
   3  Normalizat    .68593        .82270E-01    .26550E-03    .45390E-05
   4  Prefactor     1.3876        .10566        .24746E-03    .32159E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.31093
  Normalizat = 0.685934
  Prefactor  = 1.38758
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.773     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.3738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3109        3.7613        .66045E-02   -.75700E-01
   3  Normalizat    .68593        .18706        .10620E-04   -1.0445    
   4  Prefactor     1.3876        .24028        .98985E-05   -.80739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07516e-09
Minuit parameter uncertainties:
  1  0.000660267
  2  339.566
  3  0.187229
  4  0.240471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101837': 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) = 6183.77262092
delta logL = 2.6666384656e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  6.603e-04  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.311e+00  3.396e+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.388e+00  2.405e-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:  6.859e-01  1.872e-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/101837/cmap_HighResolution_614908801_615168001_4FGL_J1359.7+4012_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-05', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2021-09-08 20:12:23.885086', job_id='101837', GAL2='1.39', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1631157143.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='2.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1449' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:12:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 101837: <4FGL_J1359.7+4012_daily_bin1449> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1449> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:55:47 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:55:49 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:55:49 2021
Terminated at Wed Sep  8 20:12:24 2021
Results reported at Wed Sep  8 20:12:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1449 209.928 40.2153 614908801 615168001 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 :                                   942.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

