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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1115
RA = 209.928, Dec = 40.2153
tmin = 528336001, tmax = 528595201
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='100195', job_status='RUN', time_executed='2021-09-08 19:50:38.187966', time_epoch_executed='1631155838.19' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100195/ft1_4FGL_J1359.7+4012_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100195/ft2_4FGL_J1359.7+4012_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100195/ft1_4FGL_J1359.7+4012_daily_bin1115.fits outfile=/scratch/kocevski/100195/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1115.fits ra=209.928 dec=40.2153 rad=12.0 tmin=528336001.0 tmax=528595201.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.42
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100195/ft1_filtered_4FGL_J1359.7+4012_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/100195/ft2_4FGL_J1359.7+4012_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/100195/ltcube_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.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/100195/ft2_4FGL_J1359.7+4012_daily_bin1115.fits
.....................!
real 12.29
user 11.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100195/ft1_filtered_4FGL_J1359.7+4012_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/100195/ft2_4FGL_J1359.7+4012_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/100195/ltcube_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.fits outfile=/scratch/kocevski/100195/expmap_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.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/100195/ltcube_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.fits
.....................!
real 189.95
user 184.69
sys 4.90

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/100195/ft1_filtered_4FGL_J1359.7+4012_daily_bin1115.fits scfile=/scratch/kocevski/100195/ft2_4FGL_J1359.7+4012_daily_bin1115.fits outfile=/scratch/kocevski/100195/cmap_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9540       1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .49336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1746       1.0000         .10000E-03   10000.    
    11 'norm      '    .84410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13119E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11716E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.458       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4320       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4336       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.9263       1.0000         .10000E-03   10000.    
    26 'norm      '    6.1612       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11759E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.073       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.685       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77884       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1533       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=   5500.767     FROM MIGRAD    STATUS=CONVERGED   1596 CALLS     5152 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.863        .18142E-02** at limit **
   2  Prefactor     .10000E-03    15.864        .18142E-02** at limit **
   3  norm          3.9534        4.5438        .16420E-03    .13501E-04
   4  norm          .10000E-03    4.5110        .15378E-02** at limit **
   5  norm          .49343        3.5705        .27054E-03    .45048E-04
   6  Prefactor     .64326        1.4645        .15656E-02    .40205E-02
   7  Prefactor     .10000E-03    10.041        .18142E-02** at limit **
   8  Prefactor     1.7814        59.996        .31135E-03   -.15154E-04
   9  Prefactor     .10000E-03    18.620        .18142E-02** at limit **
  10  Prefactor     2.1824        33.075        .27922E-03    .12622E-04
  11  norm          .84202        2.4341        .20520E-02    .24866E-03
  12  Prefactor     .10003E-03    55.897        .16042    ** at limit **
  13  norm          2.8370        1.5555        .65183E-04   -.22325E-04
  14  Prefactor     .10001E-03    12.453        .20195E-02** at limit **
  15  norm          .10000E-03    3.9409        .14370E-02** at limit **
  16  Prefactor     3.0832        9.9912        .23096E-03   -.34457E-05
  17  Prefactor     13.318        36.589        .10956E-03    .17952E-04
  18  Prefactor     .10000E-03    1.6488        .92905E-03** at limit **
  19  Prefactor     31.477        24.915        .71439E-04   -.73204E-05
  20  norm          5.4320        4.7787        .14352E-03   -.72878E-05
  21  Prefactor     6.9351        9.5042        .15231E-03   -.66432E-05
  22  Prefactor     .10000E-03    8.9163        .18142E-02** at limit **
  23  Prefactor     9.4352        5.1654        .57851E-03   -.48186E-04
  24  norm          .10000E-03    8.5308        .18142E-02** at limit **
  25  Prefactor     8.9322        18.771        .13415E-03    .26270E-05
  26  norm          6.1626        4.8789        .14085E-03   -.10090E-04
  27  Prefactor     .10000E-03    56.641        .18142E-02** at limit **
  28  norm          12.072        8.1711        .11529E-03   -.23666E-05
  29  Prefactor     18.687        16.218        .92657E-04   -.41717E-05
  30  Prefactor     .10000E-03    8.0513        .18142E-02** at limit **
  31  Normalizat    .77855        .20129        .23919E-03    .15875E-04
  32  Prefactor     1.1533        .23632        .25183E-03    .51735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95341
  norm       = 0.0001
  norm       = 0.493434
  Prefactor  = 0.643255
  Prefactor  = 0.0001
  Prefactor  = 1.78137
  Prefactor  = 0.0001
  Prefactor  = 2.18236
  norm       = 0.842021
  Prefactor  = 0.000100033
  norm       = 2.83702
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 3.08317
  Prefactor  = 13.3176
  Prefactor  = 0.0001
  Prefactor  = 31.4773
  norm       = 5.43202
  Prefactor  = 6.9351
  Prefactor  = 0.0001
  Prefactor  = 9.43522
  norm       = 0.0001
  Prefactor  = 8.93221
  norm       = 6.16262
  Prefactor  = 0.0001
  norm       = 12.0719
  Prefactor  = 18.6866
  Prefactor  = 0.0001
  Normalizat = 0.778554
  Prefactor  = 1.15333
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.767     FROM HESSE     STATUS=OK           641 CALLS     5793 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9534        4.5431        .65681E-05   -1.5310    
   4  norm          .10000E-03    4.5111        .30755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .49343        3.5687        .10821E-04   -1.5567    
   6  Prefactor     .64326        1.4627        .31312E-03   -1.5548    
   7  Prefactor     .10000E-03    10.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7814        59.921        .12454E-04   -1.5441    
   9  Prefactor     .10000E-03    18.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1824        33.058        .11169E-04   -1.5413    
  11  norm          .84202        2.4306        .82080E-04   -1.5524    
  12  Prefactor     .10003E-03    57.240        .15762       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8370        1.5555        .26073E-05   -1.5371    
  14  Prefactor     .10001E-03    12.576        .40390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9411        .28740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0832        9.9910        .92383E-05   -1.5357    
  17  Prefactor     13.318        36.606        .43824E-05   -1.4978    
  18  Prefactor     .10000E-03    1.6488        .18581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.477        24.919        .28575E-05   -1.4585    
  20  norm          5.4320        4.7784        .57406E-05   -1.5242    
  21  Prefactor     6.9351        9.5036        .60923E-05   -1.5181    
  22  Prefactor     .10000E-03    8.9173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4352        5.1651        .23141E-04   -1.5094    
  24  norm          .10000E-03    8.5312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.9322        18.770        .53662E-05   -1.5110    
  26  norm          6.1626        4.8788        .56338E-05   -1.5211    
  27  Prefactor     .10000E-03    56.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.072        8.1711        .46117E-05   -1.5013    
  29  Prefactor     18.687        16.218        .37063E-05   -1.4843    
  30  Prefactor     .10000E-03    8.0558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .77855        .20146        .95676E-05   -1.0087    
  32  Prefactor     1.1533        .23659        .10073E-04   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1032e-09
Minuit parameter uncertainties:
  1  4.50705e-07
  2  4.52777e-06
  3  4.54349
  4  1.08669e-06
  5  2.65396
  6  1.46279
  7  8.58949e-06
  8  20.6852
  9  1.48042e-05
  10  16.9984
  11  2.4309
  12  0.00276162
  13  1.55548
  14  0.000819905
  15  9.29443e-07
  16  9.9964
  17  36.6681
  18  4.9652e-06
  19  24.927
  20  4.77869
  21  9.50571
  22  7.72919e-06
  23  5.16535
  24  2.92177e-06
  25  18.7826
  26  4.87908
  27  2.37431e-05
  28  8.17188
  29  16.2215
  30  5.39511e-06
  31  0.201656
  32  0.23681
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
616   Normalization:  7.786e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100195/likelihoodResults_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.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) = 5500.76864528
delta logL = -0.00119782495221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5500.76744745
delta logL = -3.09228198603e-10

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.3252       1.0000          .0000       5.0000    
     3 'Normalizat'    .77856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1533       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=   5500.767     FROM MIGRAD    STATUS=FAILED        84 CALLS      224 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    887.21        .14373E-02** at limit **
   2  alpha         2.2697        3.0311        .16512        .13821E-05
   3  Normalizat    .77855        .12349        .23919E-03   -.49431E-05
   4  Prefactor     1.1533        .15598        .25183E-03   -.30247E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5500.767     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      378 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    887.21        .32967E-03** at limit **
   2  alpha         2.2697        3.0311        .62186E-05    .13821E-05
   3  Normalizat    .77855        .12349        .44347E-06   -.49431E-05
   4  Prefactor     1.1533        .15598        .64406E-06   -.30247E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5500.767     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      409 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9612        .28745E-03** at limit **
   2  alpha         2.2124        2.5960        .66047E-02   -.34426E-08
   3  Normalizat    .77855        .18368        .95677E-05    .11645E-04
   4  Prefactor     1.1533        .23200        .10073E-04    .10835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21243
  Normalizat = 0.778555
  Prefactor  = 1.15332
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.767     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9610        .57490E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2124        2.5373        .13209E-02   -.11528    
   3  Normalizat    .77855        .18378        .19135E-05   -1.0087    
   4  Prefactor     1.1533        .23214        .20146E-05   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8383e-13
Minuit parameter uncertainties:
  1  2.78848e-06
  2  319.378
  3  0.183923
  4  0.232342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100195': 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) = 5500.76744739
delta logL = 6.37892298982e-08

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  2.788e-06  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.212e+00  3.194e+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.153e+00  2.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  7.786e-01  1.839e-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/100195/cmap_HighResolution_528336001_528595201_4FGL_J1359.7+4012_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-05', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-08 20:06:28.445553', job_id='100195', GAL2='1.15', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631156788.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1115' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 100195: <4FGL_J1359.7+4012_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1115> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:22 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:26 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:50:26 2021
Terminated at Wed Sep  8 20:06:29 2021
Results reported at Wed Sep  8 20:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1115 209.928 40.2153 528336001 528595201 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 :                                   945.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            967 sec.

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

