/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 89 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 = 7637
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1520
RA = 230.545, Dec = 31.7395
tmin = 633312001, tmax = 633571201
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='513660', job_status='RUN', time_executed='2021-09-12 02:27:44.173989', time_epoch_executed='1631438864.17' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513660/ft1_4FGL_J1522.1+3144_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513660/ft1_4FGL_J1522.1+3144_daily_bin1520.fits outfile=/scratch/kocevski/513660/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1520.fits ra=230.545 dec=31.7395 rad=12.0 tmin=633312001.0 tmax=633571201.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.89
user 3.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.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/513660/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1520.fits evtable="EVENTS" outfile="/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/513660/ltcube_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.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/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits
.....................!
real 11.95
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/513660/ltcube_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits outfile=/scratch/kocevski/513660/expmap_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.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/513660/ltcube_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits
.....................!
real 190.61
user 185.12
sys 4.99

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1522.1+3144 @ 230.545 31.7395

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits outfile=/scratch/kocevski/513660/cmap_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.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=230.545 yref=31.7395 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits outfile=/scratch/kocevski/513660/cmap_HighResolution_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.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=230.545 yref=31.7395 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513660/Model_4FGL_J1522.1+3144_daily_bin1520.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/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits.....................!
real 50.47
user 49.13
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits', '/scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits', expMap='/scratch/kocevski/513660/expmap_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits', expCube='/scratch/kocevski/513660/ltcube_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513660/Model_4FGL_J1522.1+3144_daily_bin1520.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1522.1+3144'

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/513660/ft1_filtered_4FGL_J1522.1+3144_daily_bin1520.fits
Spacecraft file(s): /scratch/kocevski/513660/ft2_4FGL_J1522.1+3144_daily_bin1520.fits
Exposure map: /scratch/kocevski/513660/expmap_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits
Exposure cube: /scratch/kocevski/513660/ltcube_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513660/Model_4FGL_J1522.1+3144_daily_bin1520.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) = 6912.0566917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.845       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.130       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.072       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.131       1.0000         .10000E-03   10000.    
    14 'norm      '    .20438E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
    18 'norm      '    12.418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1143       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70725       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6912.002     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2438 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0986         .0000    ** at limit **
   2  Prefactor     49.846        41.503         .0000       -.58659E-03
   3  norm          .10000E-03    .99300         .0000    ** at limit **
   4  Prefactor     46.130        29.156         .0000        .77063E-04
   5  norm          .10000E-03    3.4486         .0000    ** at limit **
   6  Prefactor     49.072        19.268         .0000        .44446E-04
   7  Prefactor     5.5157        7.9121         .0000        .48644E-02
   8  Prefactor     .10041E-03    4.0906         .0000    ** at limit **
   9  norm          1.6817        1.5737         .0000        .37364E-03
  10  Prefactor     .10002E-03    90.035         .0000    ** at limit **
  11  Prefactor     1.1441        6.5117         .0000        .30507E-01
  12  Prefactor     .10001E-03    11.303         .0000    ** at limit **
  13  Prefactor     14.128        13.373         .0000       -.76048E-03
  14  norm          .20195E-01    .36561         .0000        .12398E-02
  15  Prefactor     .10000E-03    2.9194         .0000    ** at limit **
  16  Prefactor     16.121        17.509         .0000        .57659E-04
  17  Prefactor     17.491        19.205         .0000       -.67271E-04
  18  norm          12.418        14.268         .0000       -.64016E-04
  19  Prefactor     .10000E-03    1.0222         .0000    ** at limit **
  20  Prefactor     .10003E-03    12.072         .0000    ** at limit **
  21  Prefactor     .10045E-03    18.551         .0000    ** at limit **
  22  Prefactor     3.1145        2.8656         .0000        .22083E-03
  23  Normalizat    .70725        .17617         .0000       -.15829E-05
  24  Prefactor     1.2369        .14410         .0000       -.22799E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 49.8459
  norm       = 0.0001
  Prefactor  = 46.1298
  norm       = 0.0001
  Prefactor  = 49.0719
  Prefactor  = 5.51568
  Prefactor  = 0.000100414
  norm       = 1.68175
  Prefactor  = 0.000100017
  Prefactor  = 1.14406
  Prefactor  = 0.00010001
  Prefactor  = 14.128
  norm       = 0.0201947
  Prefactor  = 0.0001
  Prefactor  = 16.1209
  Prefactor  = 17.4913
  norm       = 12.4175
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100446
  Prefactor  = 3.11448
  Normalizat = 0.707248
  Prefactor  = 1.23688
 **********
 **   18 **HESSE 
 **********

 FCN=   6912.002     FROM HESSE     STATUS=OK           401 CALLS     2839 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1194        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.846        41.512        .56801E-04   -1.4295    
   3  norm          .10000E-03    .99520        .80906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.130        29.203        .59034E-04   -1.4349    
   5  norm          .10000E-03    3.4525        .15076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.072        19.303        .57244E-04   -1.4306    
   7  Prefactor     5.5157        7.8611        .85532E-03   -1.5238    
   8  Prefactor     .10041E-03    19.908        .32482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6817        1.5516        .89762E-04   -1.5449    
  10  Prefactor     .10002E-03    90.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1441        6.5330        .20332E-02   -1.5494    
  12  Prefactor     .10001E-03    11.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.128        13.395        .10655E-03   -1.4956    
  14  norm          .20195E-01    3.2517        .96700E-03   -1.5680    
  15  Prefactor     .10000E-03    2.9493        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.121        17.495        .99753E-04   -1.4905    
  17  Prefactor     17.491        19.243        .95768E-04   -1.4871    
  18  norm          12.418        14.289        .11367E-03   -1.5003    
  19  Prefactor     .10000E-03    1.6516        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    12.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10045E-03    18.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1145        2.8606        .13046E-03   -1.5355    
  23  Normalizat    .70725        .19957        .29848E-03   -1.0361    
  24  Prefactor     1.2369        .16426        .19963E-03   -.85204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3223e-08
Minuit parameter uncertainties:
  1  3.92073e-06
  2  41.536
  3  1.548e-07
  4  29.2124
  5  4.80158e-06
  6  19.3053
  7  7.86256
  8  0.00574505
  9  1.55168
  10  0.00250739
  11  5.46845
  12  0.000685521
  13  13.3982
  14  0.511267
  15  2.616e-06
  16  17.501
  17  19.2502
  18  14.2932
  19  4.11492e-07
  20  0.0011021
  21  0.00580416
  22  2.86074
  23  0.199777
  24  0.164331
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.019e-02  5.113e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.237e+00  1.643e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  7.072e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513660/likelihoodResults_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.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): 102
logL (Free Index) = 6911.98538672
delta logL = 0.0169947001204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6911.94826252
delta logL = 0.0541189009409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12800       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6732       1.0000          .0000       5.0000    
     3 'Normalizat'    .70871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6911.948     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12803        .57093        .23551E-01    .26265E-02
   2  alpha         1.6735        1.4016        .44436       -.35407E-04
   3  Normalizat    .70870        .16411        .67389E-01    .28503E-04
   4  Prefactor     1.2339        .14205        .33874E-01   -.16044E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.128029
  alpha      = 1.67349
  Normalizat = 0.708702
  Prefactor  = 1.23394
 **********
 **   18 **HESSE 
 **********

 FCN=   6911.948     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12803        .44422        .91754E-03   -1.5636    
   2  alpha         1.6735        1.3856        .38805E-01   -.33694    
   3  Normalizat    .70870        .18537        .29819E-03   -1.0355    
   4  Prefactor     1.2339        .16086        .19982E-03   -.85293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71985e-09
Minuit parameter uncertainties:
  1  0.444233
  2  1.48093
  3  0.185533
  4  0.160921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513660': 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) = 6911.94826249
delta logL = 0.0541189286687

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.280e-01  4.442e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.673e+00  1.481e+00  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.234e+00  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  7.087e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 230.545 31.739

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513660/cmap_HighResolution_633312001_633571201_4FGL_J1522.1+3144_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-12 02:41:48.536344', job_id='513660', GAL2='1.23', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631439708.54', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.41e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1520' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 513660: <4FGL_J1522.1+3144_daily_bin1520> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1520> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:25:52 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:25:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:25:53 2021
Terminated at Sun Sep 12 02:41:49 2021
Results reported at Sun Sep 12 02:41:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1520 230.545 31.7395 633312001 633571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1522.1+3144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

