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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin110
RA = 209.928, Dec = 40.2153
tmin = 267840001, tmax = 268099201
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='95514', job_status='RUN', time_executed='2021-09-08 19:36:15.900416', time_epoch_executed='1631154975.9' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95514/ft1_4FGL_J1359.7+4012_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95514/ft1_4FGL_J1359.7+4012_daily_bin110.fits outfile=/scratch/kocevski/95514/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin110.fits ra=209.928 dec=40.2153 rad=12.0 tmin=267840001.0 tmax=268099201.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.48
user 1.30
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95514/ft1_filtered_4FGL_J1359.7+4012_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/95514/ltcube_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.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/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits
.....................!
real 22.90
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95514/ft1_filtered_4FGL_J1359.7+4012_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/95514/ltcube_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.fits outfile=/scratch/kocevski/95514/expmap_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.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/95514/ltcube_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.fits
.....................!
real 191.56
user 185.46
sys 4.46

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/95514/ft1_filtered_4FGL_J1359.7+4012_daily_bin110.fits scfile=/scratch/kocevski/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits outfile=/scratch/kocevski/95514/cmap_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.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.58
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95514/ft1_filtered_4FGL_J1359.7+4012_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/95514/ft2_4FGL_J1359.7+4012_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95514/Model_4FGL_J1359.7+4012_daily_bin110.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/95514/ft1_filtered_4FGL_J1359.7+4012_daily_bin110.fits.....................!
real 43.27
user 41.84
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8885       1.0000         .10000E-03   10000.    
     4 'norm      '    17.950       1.0000         .10000E-03   10000.    
     5 'norm      '    10.580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20571E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.256       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.948       1.0000         .10000E-03   10000.    
    20 'norm      '    .12733E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    26 'norm      '    26.620       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16232E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    11.446       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'    1.0243       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92882       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=   5127.439     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4402 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.139        .12891E-04** at limit **
   2  Prefactor     .10000E-03    6.9766       -.98925E-07** at limit **
   3  norm          4.8877        4.9532        .42840E-06   -.75823E-04
   4  norm          17.948        15.261       -.86035E-06   -.19430E-05
   5  norm          10.580        6.2804       -.47877E-06    .14319E-03
   6  Prefactor     .10000E-03    1.9372        .20913E-06** at limit **
   7  Prefactor     .10000E-03    26.493       -.15925E-04** at limit **
   8  Prefactor     25.658        34.255        .88234E-05    .23172E-03
   9  Prefactor     .10000E-03    17.913       -.12683E-04** at limit **
  10  Prefactor     .10001E-03    154.29       -.39607E-04** at limit **
  11  norm          .10000E-03    1.5834       -.23996E-07** at limit **
  12  Prefactor     .10000E-03    113.52        .32531E-04** at limit **
  13  norm          .10000E-03    1.0572       -.62490E-07** at limit **
  14  Prefactor     .10000E-03    2.1373        .56226E-08** at limit **
  15  norm          11.399        12.408       -.49948E-07   -.75165E-04
  16  Prefactor     .10000E-03    10.878        .77234E-05** at limit **
  17  Prefactor     68.236        43.180       -.82899E-05    .15801E-04
  18  Prefactor     .10000E-03    1.5106        .19120E-07** at limit **
  19  Prefactor     21.948        22.411        .10034E-05    .76886E-05
  20  norm          .10033E-03    2.9835        .18808E-05** at limit **
  21  Prefactor     22.450        19.153       -.48139E-07   -.28762E-03
  22  Prefactor     .10000E-03    93.067       -.24141E-05** at limit **
  23  Prefactor     .10000E-03    1.7652       -.33860E-07** at limit **
  24  norm          .10000E-03    10.439       -.70393E-05** at limit **
  25  Prefactor     10.095        25.811       -.23155E-05   -.37018E-03
  26  norm          26.622        9.5048       -.63642E-07   -.18897E-03
  27  Prefactor     .10000E-03    112.94       -.11424E-05** at limit **
  28  norm          11.446        9.2362        .48179E-07   -.67642E-05
  29  Prefactor     .10000E-03    8.0731        .47001E-06** at limit **
  30  Prefactor     .10000E-03    12.625        .32648E-07** at limit **
  31  Normalizat    1.0242        .18435        .10322E-07   -.75010E-04
  32  Prefactor     .92895        .21492        .99694E-07   -.12470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88769
  norm       = 17.9482
  norm       = 10.5802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6576
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3994
  Prefactor  = 0.0001
  Prefactor  = 68.2362
  Prefactor  = 0.0001
  Prefactor  = 21.9482
  norm       = 0.000100334
  Prefactor  = 22.4498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0953
  norm       = 26.6216
  Prefactor  = 0.0001
  norm       = 11.4456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02422
  Prefactor  = 0.928954
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.439     FROM HESSE     STATUS=OK           653 CALLS     5055 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8877        4.9357        .15545E-03   -1.5266    
   4  norm          17.948        15.262        .94534E-04   -1.4860    
   5  norm          10.580        6.2789        .12318E-03   -1.5057    
   6  Prefactor     .10000E-03    4.0586        .19247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.658        34.443        .79116E-04   -1.4694    
   9  Prefactor     .10000E-03    17.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    158.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5867        .87993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    113.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4019        .14144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1601        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.399        12.413        .11865E-03   -1.5033    
  16  Prefactor     .10000E-03    10.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.236        43.122        .48584E-04   -1.4054    
  18  Prefactor     .10000E-03    1.5128        .85939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.948        22.488        .85498E-04   -1.4771    
  20  norm          .10033E-03    19.432        .22863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.450        18.508        .84549E-04   -1.4760    
  22  Prefactor     .10000E-03    93.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7925        .92854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.095        25.955        .63077E-03   -1.5072    
  26  norm          26.622        9.4989        .77645E-04   -1.4676    
  27  Prefactor     .10000E-03    118.38        .40815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.446        9.2363        .11841E-03   -1.5031    
  29  Prefactor     .10000E-03    8.0895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    12.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0242        .21560        .22316E-03   -.92223    
  32  Prefactor     .92895        .25072        .28295E-03   -.95137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81732e-08
Minuit parameter uncertainties:
  1  2.21904e-06
  2  4.27446e-06
  3  4.93609
  4  15.2654
  5  6.27929
  6  3.99721e-05
  7  0.000193486
  8  34.4693
  9  3.80647e-06
  10  0.00287434
  11  6.92281e-07
  12  0.000180875
  13  1.05745e-05
  14  6.01511e-07
  15  12.4156
  16  9.57509e-06
  17  43.1421
  18  4.80145e-06
  19  22.4965
  20  0.0050981
  21  18.5131
  22  8.10347e-05
  23  4.10419e-06
  24  4.66726e-06
  25  25.9836
  26  9.49946
  27  0.000163127
  28  9.23744
  29  4.84903e-07
  30  4.82019e-07
  31  0.21578
  32  0.251037
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.140e+01  1.242e+01  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:  9.290e-01  2.510e-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:  1.024e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 6.29e-06 +/- 6.85e-06

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

Saving results to:
/scratch/kocevski/95514/likelihoodResults_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.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) = 5127.2450554
delta logL = 0.193817895678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5127.0727479
delta logL = 0.366125393838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0055       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94790       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91548       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.

 FCN=   5127.073     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9994        4.8825        .50377E-02   -.94609E-04
   2  alpha         .94693        .80793        .50000       -.25017E-04
   3  Normalizat    1.0455        .17518        .40871E-01   -.71183E-05
   4  Prefactor     .91545        .21352        .45202E-01    .12302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99941
  alpha      = 0.946934
  Normalizat = 1.04549
  Prefactor  = 0.915453
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.073     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9994        7.3498        .15793E-03   -1.5308    
   2  alpha         .94693        1.1306        .27491E-01   -.67031    
   3  Normalizat    1.0455        .20360        .22110E-03   -.91522    
   4  Prefactor     .91545        .24805        .28471E-03   -.95603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84259e-12
Minuit parameter uncertainties:
  1  7.35144
  2  1.20517
  3  0.20375
  4  0.24836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95514': 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) = 5127.07274756
delta logL = 0.366125731985

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.999e+00  7.351e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  9.469e-01  1.205e+00  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:  9.155e-01  2.484e-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:  1.045e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 209.928 40.215
Photon Index (Free Index): 0.95 +/- 1.21
Photon Flux (Free Index): 5.39e-09 +/- 7.89e-09
Energy Flux (Free Index): 7.81e-06 +/- 1.17e-05

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/95514/cmap_HighResolution_267840001_268099201_4FGL_J1359.7+4012_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='7.81e-06', photon_flux_error='2.30e-08', dlogl='3.66e-01', energy_flux='6.29e-06', photon_flux2='5.39e-09', job_status='DONE', time_completed='2021-09-08 19:50:18.765261', photon_index_error2='1.21', photon_index2='0.95', ts='1.76', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='1.17e-05', EG='1.02', time_epoch_completed='1631155818.77', return_code='0', job_id='95514', GAL2='0.92', EG2='1.05', return_code2='0', energy_flux_error='6.85e-06', photon_flux_error2='7.89e-09', ts2='2.50', photon_index='2.33' WHERE bin_id='110' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 95514: <4FGL_J1359.7+4012_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin110 209.928 40.2153 267840001 268099201 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 :                                   820.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            880 sec.

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

