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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1
RA = 209.928, Dec = 40.2153
tmin = 239587201, tmax = 239846401
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='94279', job_status='RUN', time_executed='2021-09-08 19:33:49.455979', time_epoch_executed='1631154829.46' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94279

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94279/ft1_4FGL_J1359.7+4012_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94279/ft1_4FGL_J1359.7+4012_daily_bin1.fits outfile=/scratch/kocevski/94279/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1.fits ra=209.928 dec=40.2153 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.11
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94279/ft1_filtered_4FGL_J1359.7+4012_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/94279/ltcube_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.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/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits
.....................!
real 12.69
user 12.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94279/ft1_filtered_4FGL_J1359.7+4012_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/94279/ltcube_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.fits outfile=/scratch/kocevski/94279/expmap_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.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/94279/ltcube_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.fits
.....................!
real 191.17
user 185.67
sys 5.07

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/94279/ft1_filtered_4FGL_J1359.7+4012_daily_bin1.fits scfile=/scratch/kocevski/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits outfile=/scratch/kocevski/94279/cmap_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94279/ft1_filtered_4FGL_J1359.7+4012_daily_bin1.fits scfile=/scratch/kocevski/94279/ft2_4FGL_J1359.7+4012_daily_bin1.fits outfile=/scratch/kocevski/94279/cmap_HighResolution_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3537       1.0000         .10000E-03   10000.    
    11 'norm      '    16.309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9262       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4130       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6598       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82917E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39635       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.424       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92530       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89506       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=   3874.329     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     3759 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.978       -.65195E-07** at limit **
   2  Prefactor     .10000E-03    13.970       -.12600E-06** at limit **
   3  norm          .10000E-03    5.8272       -.99439E-07** at limit **
   4  norm          .10000E-03    10.462       -.81263E-07** at limit **
   5  norm          .10000E-03    1.6931        .32948E-07** at limit **
   6  Prefactor     6.3554        4.4788        .97841E-08    .11834E-04
   7  Prefactor     .10000E-03    11.151       -.14058E-06** at limit **
   8  Prefactor     .10000E-03    15.595        .39999E-06** at limit **
   9  Prefactor     .10000E-03    70.829       -.50047E-06** at limit **
  10  Prefactor     9.3310        22.667        .79392E-07    .13553E-04
  11  norm          16.307        8.0651        .91426E-07   -.25755E-04
  12  Prefactor     4.4953        419.29       -.35357E-06   -.38026E-05
  13  norm          2.4124        1.6238        .25400E-07   -.81823E-04
  14  Prefactor     10.897        5.3283        .27538E-07   -.11616E-04
  15  norm          .10000E-03    6.8501       -.21031E-06** at limit **
  16  Prefactor     2.7708        27.912        .52170E-06    .36796E-05
  17  Prefactor     2.5821        272.38       -.20198E-04   -.42044E-04
  18  Prefactor     .10004E-03    5.5192        .18706E-05** at limit **
  19  Prefactor     .10000E-03    16.782        .89014E-06** at limit **
  20  norm          .10000E-03    1.0851       -.31593E-07** at limit **
  21  Prefactor     .10000E-03    33.842       -.50472E-06** at limit **
  22  Prefactor     .10000E-03    39.123       -.27910E-06** at limit **
  23  Prefactor     .37805        2.7937        .32003E-06   -.20327E-03
  24  norm          .10000E-03    5.4654       -.14501E-07** at limit **
  25  Prefactor     .10000E-03    14.391        .61328E-07** at limit **
  26  norm          .10000E-03    2.4747        .10031E-06** at limit **
  27  Prefactor     19.406        41.260        .32200E-06    .11519E-04
  28  norm          .10000E-03    2.7566        .11077E-08** at limit **
  29  Prefactor     .10000E-03    4.8942       -.40815E-08** at limit **
  30  Prefactor     .10000E-03    2.5662        .59393E-08** at limit **
  31  Normalizat    .92616        .19646        .36069E-06   -.23004E-03
  32  Prefactor     .89442        .22116       -.89054E-06   -.15285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.35544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.331
  norm       = 16.307
  Prefactor  = 4.49534
  norm       = 2.41244
  Prefactor  = 10.8972
  norm       = 0.0001
  Prefactor  = 2.77081
  Prefactor  = 2.58213
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.37805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.4055
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.926162
  Prefactor  = 0.894423
 **********
 **   18 **HESSE 
 **********

 FCN=   3874.329     FROM HESSE     STATUS=OK           651 CALLS     4410 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9156        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6946        .79098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3554        4.4862        .10505E-03   -1.5204    
   7  Prefactor     .10000E-03    11.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3310        22.569        .13104E-03   -1.5097    
  11  norm          16.307        8.0666        .99176E-04   -1.4900    
  12  Prefactor     4.4953        431.33        .18121E-03   -1.5284    
  13  norm          2.4124        1.6235        .62392E-04   -1.5397    
  14  Prefactor     10.897        5.3416        .96445E-04   -1.5048    
  15  norm          .10000E-03    6.8629        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7708        27.673        .24383E-03   -1.5375    
  17  Prefactor     2.5821        290.13        .24993E-03   -1.5387    
  18  Prefactor     .10004E-03    21.472        .24240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0861        .63313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .37805        11.118        .19227E-02   -1.5585    
  24  norm          .10000E-03    5.4679        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.4927        .95600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.406        41.144        .90878E-04   -1.4827    
  28  norm          .10000E-03    2.7579        .10093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.8957        .13449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.5679        .97383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .92616        .23623        .21121E-03   -.95547    
  32  Prefactor     .89442        .26287        .25979E-03   -.96336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05585e-09
Minuit parameter uncertainties:
  1  1.49684e-05
  2  1.28529e-05
  3  1.62795e-06
  4  3.3739e-06
  5  2.8761e-07
  6  4.48642
  7  1.30123e-06
  8  1.40747e-05
  9  3.43109e-05
  10  22.5893
  11  8.06712
  12  88.7326
  13  1.62356
  14  5.34183
  15  6.03206e-07
  16  17.5232
  17  55.0159
  18  0.00183958
  19  4.75579e-05
  20  1.42724e-07
  21  2.91528e-05
  22  8.87484e-06
  23  4.1007
  24  2.67334e-08
  25  1.14944e-06
  26  2.89432e-07
  27  41.2042
  28  1.6333e-07
  29  3.79704e-08
  30  1.81216e-07
  31  0.236498
  32  0.263245
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  6.032e-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:  8.944e-01  2.632e-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.262e-01  2.365e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94279/likelihoodResults_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.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) = 3874.32951301
delta logL = -0.000693017954745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3874.32882
delta logL = -2.15095496969e-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.3294       1.0000          .0000       5.0000    
     3 'Normalizat'    .92617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89443       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=   3874.329     FROM MIGRAD    STATUS=FAILED        84 CALLS      224 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015E-03    9.4359        .15909E-02** at limit **
   2  alpha         2.3993        3.5288        .16509       -.78437E-06
   3  Normalizat    .92616        .21006        .21121E-03    .58132E-05
   4  Prefactor     .89442        .25563        .25979E-03    .71112E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3874.329     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      339 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10015E-03    9.4359        .44638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3993        3.5288        .45308E-03   -.40292E-01
   3  Normalizat    .92616        .21006        .34292E-04   -.95547    
   4  Prefactor     .89442        .25563        .58730E-04   -.96336    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3874.329     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      366 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9069        .31817E-03** at limit **
   2  alpha         2.4800        3.3474        .66037E-02    .27545E-07
   3  Normalizat    .92616        .21028        .84484E-05   -.13053E-04
   4  Prefactor     .89442        .25589        .10392E-04   -.10065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48003
  Normalizat = 0.926163
  Prefactor  = 0.894422
 **********
 **   18 **HESSE 
 **********

 FCN=   3874.329     FROM HESSE     STATUS=OK            23 CALLS      389 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9064        .63635E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4800        3.6561        .13207E-02   -.79884E-02
   3  Normalizat    .92616        .21041        .16897E-05   -.95547    
   4  Prefactor     .89442        .25605        .20783E-05   -.96336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0179e-11
Minuit parameter uncertainties:
  1  0.000106647
  2  499.718
  3  0.210601
  4  0.256393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94279': 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) = 3874.32881995
delta logL = 4.53410393675e-08

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  1.066e-04  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.480e+00  4.997e+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:  8.944e-01  2.564e-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.262e-01  2.106e-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/94279/cmap_HighResolution_239587201_239846401_4FGL_J1359.7+4012_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-08 19:44:55.721115', job_id='94279', GAL2='0.89', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631155495.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:44:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 94279: <4FGL_J1359.7+4012_daily_bin1> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:31:15 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:31:17 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:31:17 2021
Terminated at Wed Sep  8 19:44:56 2021
Results reported at Wed Sep  8 19:44:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1 209.928 40.2153 239587201 239846401 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 :                                   666.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

