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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1030
RA = 230.545, Dec = 31.7395
tmin = 506304001, tmax = 506563201
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='511800', job_status='RUN', time_executed='2021-09-12 02:24:25.796675', time_epoch_executed='1631438665.8' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511800

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511800/ft1_4FGL_J1522.1+3144_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511800/ft1_4FGL_J1522.1+3144_daily_bin1030.fits outfile=/scratch/kocevski/511800/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1030.fits ra=230.545 dec=31.7395 rad=12.0 tmin=506304001.0 tmax=506563201.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.53
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.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/511800/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1030.fits evtable="EVENTS" outfile="/scratch/kocevski/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/511800/ltcube_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.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/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits
.....................!
real 12.24
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/511800/ltcube_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits outfile=/scratch/kocevski/511800/expmap_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.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/511800/ltcube_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits
.....................!
real 190.58
user 185.31
sys 4.79

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/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits scfile=/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits outfile=/scratch/kocevski/511800/cmap_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits scfile=/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits outfile=/scratch/kocevski/511800/cmap_HighResolution_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits', '/scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits', expMap='/scratch/kocevski/511800/expmap_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits', expCube='/scratch/kocevski/511800/ltcube_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511800/Model_4FGL_J1522.1+3144_daily_bin1030.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/511800/ft1_filtered_4FGL_J1522.1+3144_daily_bin1030.fits
Spacecraft file(s): /scratch/kocevski/511800/ft2_4FGL_J1522.1+3144_daily_bin1030.fits
Exposure map: /scratch/kocevski/511800/expmap_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits
Exposure cube: /scratch/kocevski/511800/ltcube_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511800/Model_4FGL_J1522.1+3144_daily_bin1030.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) = 5994.65491458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5821       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8758       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9840       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.456       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90193E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6336       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9494       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2993       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65686       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5994.572     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2753 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37614        4.0935       -.95700E-06    .31039E-03
   2  Prefactor     .10000E-03    129.35       -.81534E-05** at limit **
   3  norm          2.4655        2.8409        .20655E-08    .18511E-04
   4  Prefactor     1.6263        79.685       -.18870E-04   -.19032E-04
   5  norm          8.0860        7.2262       -.17621E-05    .25801E-03
   6  Prefactor     6.8612        12.105        .29544E-05   -.38456E-04
   7  Prefactor     3.2345        7.6108       -.14211E-05   -.29218E-03
   8  Prefactor     6.8755        7.6558       -.23095E-06   -.74948E-04
   9  norm          .10000E-03    .67102        .13823E-06** at limit **
  10  Prefactor     .10000E-03    20.060        .10297E-06** at limit **
  11  Prefactor     1.9862        8.8697       -.51739E-05   -.27756E-03
  12  Prefactor     12.429        19.196       -.12662E-05   -.41952E-03
  13  Prefactor     .10134E-03    15.094        .33925E-05** at limit **
  14  norm          1.0424        .80874       -.22560E-09    .76673E-04
  15  Prefactor     16.147        8.6265       -.17609E-06    .83270E-04
  16  Prefactor     .10000E-03    63.507       -.28669E-05** at limit **
  17  Prefactor     .10000E-03    10.531       -.24471E-07** at limit **
  18  norm          .10000E-03    4.2118        .15626E-06** at limit **
  19  Prefactor     .10000E-03    1.2789       -.66501E-07** at limit **
  20  Prefactor     3.6336        12.233       -.17755E-05   -.97795E-04
  21  Prefactor     .10000E-03    3.8934        .14867E-06** at limit **
  22  Prefactor     3.9498        3.0089       -.10925E-06   -.18987E-03
  23  Normalizat    1.2991        .17247        .66174E-06   -.92404E-05
  24  Prefactor     .65702        .13182        .44089E-06    .73522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.376136
  Prefactor  = 0.000100001
  norm       = 2.4655
  Prefactor  = 1.6263
  norm       = 8.08603
  Prefactor  = 6.86119
  Prefactor  = 3.23455
  Prefactor  = 6.87554
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98621
  Prefactor  = 12.4288
  Prefactor  = 0.000101335
  norm       = 1.04242
  Prefactor  = 16.1468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63363
  Prefactor  = 0.0001
  Prefactor  = 3.94975
  Normalizat = 1.29907
  Prefactor  = 0.657022
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.572     FROM HESSE     STATUS=OK           407 CALLS     3160 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37614        29.446        .29234E-02   -1.5585    
   2  Prefactor     .10000E-03    129.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4655        2.8383        .13635E-03   -1.5394    
   4  Prefactor     1.6263        83.580        .33762E-03   -1.5453    
   5  norm          8.0860        7.1425        .14100E-03   -1.5139    
   6  Prefactor     6.8612        12.023        .15318E-03   -1.5184    
   7  Prefactor     3.2345        7.6603        .22537E-03   -1.5348    
   8  Prefactor     6.8755        7.6588        .15301E-03   -1.5183    
   9  norm          .10000E-03    .68217        .12302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9862        9.8321        .29422E-03   -1.5426    
  12  Prefactor     12.429        17.895        .11350E-03   -1.5003    
  13  Prefactor     .10134E-03    99.383        .51648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0424        .80904        .57509E-04   -1.5504    
  15  Prefactor     16.147        8.6441        .99676E-04   -1.4904    
  16  Prefactor     .10000E-03    63.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2301        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3048        .85407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6336        12.273        .21194E-03   -1.5327    
  21  Prefactor     .10000E-03    3.8979        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9498        3.0089        .11350E-03   -1.5310    
  23  Normalizat    1.2991        .19948        .21589E-03   -.83594    
  24  Prefactor     .65702        .15154        .23797E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50152e-08
Minuit parameter uncertainties:
  1  6.65858
  2  0.000790881
  3  2.83848
  4  23.3512
  5  7.14329
  6  12.0275
  7  7.66263
  8  7.65987
  9  1.67269e-06
  10  6.43405e-06
  11  8.84035
  12  17.9026
  13  0.0230784
  14  0.809049
  15  8.64482
  16  0.000186809
  17  8.59411e-06
  18  4.64725e-06
  19  1.45856e-06
  20  12.2812
  21  3.53053e-06
  22  3.00905
  23  0.199594
  24  0.151635
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.042e+00  8.090e-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:  6.570e-01  1.516e-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:  1.299e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 8.31e-06

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) = 5994.40325
delta logL = 0.168607659226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.39843777
delta logL = 0.173419885889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96736       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9314       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65189       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=   5994.398     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96693        .90249        .13050E-01   -.46689E-03
   2  alpha         1.9312        .63939        .42584       -.39197E-04
   3  Normalizat    1.3109        .15989        .48662E-01   -.16886E-03
   4  Prefactor     .65199        .12994        .41757E-01    .26233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.966932
  alpha      = 1.93123
  Normalizat = 1.31089
  Prefactor  = 0.651991
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.398     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96693        .84395        .58710E-04   -1.5511    
   2  alpha         1.9312        .70781        .16982E-01   -.22952    
   3  Normalizat    1.3109        .18239        .21513E-03   -.83242    
   4  Prefactor     .65199        .14794        .23884E-03   -1.0544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68396e-10
Minuit parameter uncertainties:
  1  0.843958
  2  0.71818
  3  0.182479
  4  0.148029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511800': 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) = 5994.39843692
delta logL = 0.173420743792

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  9.669e-01  8.440e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.931e+00  7.182e-01  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:  6.520e-01  1.480e-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:  1.311e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 230.545 31.739
Photon Index (Free Index): 1.93 +/- 0.72
Photon Flux (Free Index): 2.25e-08 +/- 2.52e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.27e-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/511800/cmap_HighResolution_506304001_506563201_4FGL_J1522.1+3144_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.31e-05', photon_flux_error='2.64e-08', dlogl='1.73e-01', energy_flux='1.07e-05', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-12 02:36:04.910924', photon_index_error2='0.72', photon_index2='1.93', ts='5.56', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.30', time_epoch_completed='1631439364.91', return_code='0', job_id='511800', GAL2='0.65', EG2='1.31', return_code2='0', energy_flux_error='8.31e-06', photon_flux_error2='2.52e-08', ts2='5.92', photon_index='2.37' WHERE bin_id='1030' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 511800: <4FGL_J1522.1+3144_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1030> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:20:40 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:20:42 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:20:42 2021
Terminated at Sun Sep 12 02:36:05 2021
Results reported at Sun Sep 12 02:36:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1030 230.545 31.7395 506304001 506563201 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 :                                   608.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

