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


Performing analysis on: 4FGL_J1220.1+7105_daily_bin637
RA = 185.044, Dec = 71.092
tmin = 404438401, tmax = 404697601
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='505116', job_status='RUN', time_executed='2021-09-05 08:43:29.587483', time_epoch_executed='1630856609.59' WHERE source_name='4FGL J1220.1+7105' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505116/ft1_4FGL_J1220.1+7105_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505116/ft1_4FGL_J1220.1+7105_daily_bin637.fits outfile=/scratch/kocevski/505116/ft1_filteredMKT_4FGL_J1220.1+7105_daily_bin637.fits ra=185.044 dec=71.092 rad=12.0 tmin=404438401.0 tmax=404697601.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 13.47
user 12.31
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.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/505116/ft1_filteredMKT_4FGL_J1220.1+7105_daily_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.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 1.40
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/505116/ltcube_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.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/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits
.....................!
real 11.87
user 10.81
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/505116/ltcube_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits outfile=/scratch/kocevski/505116/expmap_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.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/505116/ltcube_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits
.....................!
real 192.11
user 185.41
sys 5.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 235 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+7105 @ 185.044 71.092

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits outfile=/scratch/kocevski/505116/cmap_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.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=185.044 yref=71.092 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits outfile=/scratch/kocevski/505116/cmap_HighResolution_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.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=185.044 yref=71.092 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/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505116/Model_4FGL_J1220.1+7105_daily_bin637.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/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits.!
real 16.34
user 12.20
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits', '/scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits', expMap='/scratch/kocevski/505116/expmap_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits', expCube='/scratch/kocevski/505116/ltcube_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505116/Model_4FGL_J1220.1+7105_daily_bin637.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+7105'

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505116/ft1_filtered_4FGL_J1220.1+7105_daily_bin637.fits
Spacecraft file(s): /scratch/kocevski/505116/ft2_4FGL_J1220.1+7105_daily_bin637.fits
Exposure map: /scratch/kocevski/505116/expmap_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits
Exposure cube: /scratch/kocevski/505116/ltcube_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505116/Model_4FGL_J1220.1+7105_daily_bin637.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 19.1511249064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 19.0688673243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3678       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6653       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0260       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7328       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6454       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5743       1.0000         .10000E-03   10000.    
    13 'norm      '    .11677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0143       1.0000         .10000E-03   10000.    
    15 'norm      '    .37578E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48031E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3545       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1865       1.0000         .10000E-03   10000.    
    21 'norm      '    6.0621       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1556       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7732       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3944       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3660       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .79415E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9681       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6613       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3359       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.6838       1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.0150       1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.6273       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .40571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19.05530     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      193 TOTAL
                     EDM=   .71E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5150        1.0030         .0000         .0000    
   2  Prefactor     7.3678        1.0023         .0000         .0000    
   3  Prefactor     4.6653        1.0059         .0000         .0000    
   4  norm          2.9443        1.0152         .0000         .0000    
   5  Prefactor     7.4022        1.0023         .0000         .0000    
   6  Prefactor     1.0260        1.2785         .0000         .0000    
   7  norm          2.7328        1.0178         .0000         .0000    
   8  norm          1.6454        1.0558         .0000         .0000    
   9  Prefactor     3.7775        1.0090         .0000         .0000    
  10  Prefactor     1.3057        1.1033         .0000         .0000    
  11  Prefactor     3.6010        1.0100         .0000         .0000    
  12  Prefactor     1.5743        1.0623         .0000         .0000    
  13  norm          .10000E-03    .22996       -.33182E-05** at limit **
  14  Prefactor     3.0143        1.0145         .0000         .0000    
  15  norm          .10000E-03    .28334        .33717E-06** at limit **
  16  Prefactor     .10000E-03    .21439       -.24149E-05** at limit **
  17  Prefactor     .10000E-03    .26571        .11781E-05** at limit **
  18  Prefactor     7.0282        1.0025         .0000         .0000    
  19  Prefactor     .10000E-03    .11149        .78327E-05** at limit **
  20  Prefactor     .10000E-03    .40704E-01   -.18858E-04** at limit **
  21  norm          6.0621        1.0034         .0000         .0000    
  22  norm          1.6101        1.0589         .0000         .0000    
  23  Prefactor     .10001E-03    .35136E-01    .39968E-04** at limit **
  24  Prefactor     6.7732        1.0027         .0000         .0000    
  25  Prefactor     8.3944        1.0018         .0000         .0000    
  26  Prefactor     5.3660        1.0044         .0000         .0000    
  27  Prefactor     .10000E-03    .22149       -.85325E-05** at limit **
  28  Prefactor     1.9681        1.0366         .0000         .0000    
  29  Prefactor     1.6613        1.0545         .0000         .0000    
  30  Prefactor     1.3359        1.0966         .0000         .0000    
  31  Prefactor     5.6838        1.0039         .0000         .0000    
  32  Prefactor     7.0150        1.0026         .0000         .0000    
  33  Prefactor     2.6273        1.0194         .0000         .0000    
  34  Normalizat    .10000E-01    .25505       -.11168E-04** at limit **
  35  Prefactor     .40580        .73800        .11440E-04   -.28312E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51502
  Prefactor  = 7.36779
  Prefactor  = 4.66529
  norm       = 2.94428
  Prefactor  = 7.4022
  Prefactor  = 1.02603
  norm       = 2.7328
  norm       = 1.64542
  Prefactor  = 3.77747
  Prefactor  = 1.30574
  Prefactor  = 3.60096
  Prefactor  = 1.5743
  norm       = 0.0001
  Prefactor  = 3.0143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02818
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.06212
  norm       = 1.6101
  Prefactor  = 0.000100005
  Prefactor  = 6.77322
  Prefactor  = 8.39441
  Prefactor  = 5.36599
  Prefactor  = 0.0001
  Prefactor  = 1.96809
  Prefactor  = 1.66126
  Prefactor  = 1.33589
  Prefactor  = 5.68376
  Prefactor  = 7.01503
  Prefactor  = 2.6273
  Normalizat = 0.01
  Prefactor  = 0.405798
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19.05530     FROM HESSE     STATUS=FAILED        11 CALLS      204 TOTAL
                     EDM=   .71E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     517.40        510.85         .0000       -1.5197    
   2  Prefactor     7.3678        1.0023         .0000       -1.5165    
   3  Prefactor     4.6653        1.0059         .0000       -1.5276    
   4  norm          2.9443        1.0152         .0000       -1.5365    
   5  Prefactor     7.4022        1.0023         .0000       -1.5164    
   6  Prefactor     1.0260        1.2785         .0000       -1.5505    
   7  norm          2.7328        1.0178         .0000       -1.5377    
   8  norm          1.6454        1.0558         .0000       -1.5451    
   9  Prefactor     3.7775        1.0090         .0000       -1.5319    
  10  Prefactor     1.3057        1.1033         .0000       -1.5479    
  11  Prefactor     3.6010        1.0100         .0000       -1.5328    
  12  Prefactor     1.5743        1.0623         .0000       -1.5457    
  13  norm          .10000E-03    .22996       -.33182E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0143        1.0145         .0000       -1.5361    
  15  norm          .10000E-03    .28334        .33717E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21439       -.24149E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .26571        .11781E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0282        1.0025         .0000       -1.5178    
  19  Prefactor     .10000E-03    .11149        .78327E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .40704E-01   -.18858E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0621        1.0034         .0000       -1.5215    
  22  norm          1.6101        1.0589         .0000       -1.5454    
  23  Prefactor     .10001E-03    .35136E-01    .39968E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.7732        1.0027         .0000       -1.5187    
  25  Prefactor     8.3944        1.0018         .0000       -1.5128    
  26  Prefactor     5.3660        1.0044         .0000       -1.5245    
  27  Prefactor     .10000E-03    .22149       -.85325E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9681        1.0366         .0000       -1.5427    
  29  Prefactor     1.6613        1.0545         .0000       -1.5450    
  30  Prefactor     1.3359        1.0966         .0000       -1.5477    
  31  Prefactor     5.6838        1.0039         .0000       -1.5231    
  32  Prefactor     7.0150        1.0026         .0000       -1.5178    
  33  Prefactor     2.6273        1.0194         .0000       -1.5384    
  34  Normalizat    .10000E-01    .25505       -.11168E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .40580        .73800        .11440E-04   -1.1651    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.06285e-12
Minuit parameter uncertainties:
  1  1.00297
  2  1.00232
  3  1.00586
  4  1.0152
  5  1.0023
  6  1.27858
  7  1.0178
  8  1.05582
  9  1.00904
  10  1.10332
  11  1.00998
  12  1.06229
  13  5.79191e-06
  14  1.01446
  15  6.53288e-07
  16  4.0702e-06
  17  2.20972e-06
  18  1.00255
  19  9.46958e-06
  20  1.37826e-05
  21  1.00344
  22  1.05889
  23  2.71791e-05
  24  1.00275
  25  1.00178
  26  1.00441
  27  1.45992e-05
  28  1.03659
  29  1.05452
  30  1.09664
  31  1.00392
  32  1.00256
  33  1.01936
  34  6.41196e-07
  35  0.756392
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 19.0552980889

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  1.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  4.058e-01  7.564e-01  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.000e-02  6.412e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 185.044 71.092
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -4.04e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505116/likelihoodResults_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.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): 101
logL (Free Index) = 19.0555467053
delta logL = -0.000248616331376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 19.0555467053
delta logL = -0.000248616331376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    2.1887       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19.05555     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       2.1887        1.0015        .41562         .0000    
                               ERR DEF=  .500    
Final values: 
  alpha      = 2.18866
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19.05555     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       1.0173        1.1978        .41562       -.12486    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.03096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505116': 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): 101
logL (Free Index) = 19.0555467053
delta logL = -0.000248616331376

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
402        alpha:  2.189e+00  1.031e+00  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  4.058e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 185.044 71.092

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/505116/cmap_HighResolution_404438401_404697601_4FGL_J1220.1+7105_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-4.04e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-05 08:49:58.597430', job_id='505116', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630856998.6', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.41', dlogl='-2.49e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='637' AND source_name='4FGL J1220.1+7105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:49:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 505116: <4FGL_J1220.1+7105_daily_bin637> in cluster <slac> Done

Job <4FGL_J1220.1+7105_daily_bin637> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:41:23 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:41:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:41:25 2021
Terminated at Sun Sep  5 08:49:59 2021
Results reported at Sun Sep  5 08:49:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_daily_bin637 185.044 71.092 404438401 404697601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+7105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             387.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            516 sec.

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

