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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin20
RA = 230.545, Dec = 31.7395
tmin = 244512001, tmax = 244771201
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='506085', job_status='RUN', time_executed='2021-09-12 02:07:41.983718', time_epoch_executed='1631437661.98' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506085/ft1_4FGL_J1522.1+3144_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506085/ft2_4FGL_J1522.1+3144_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506085/ft1_4FGL_J1522.1+3144_daily_bin20.fits outfile=/scratch/kocevski/506085/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin20.fits ra=230.545 dec=31.7395 rad=12.0 tmin=244512001.0 tmax=244771201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.44
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506085/ft1_filtered_4FGL_J1522.1+3144_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/506085/ft2_4FGL_J1522.1+3144_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/506085/ltcube_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.fits outfile=/scratch/kocevski/506085/expmap_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.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/506085/ltcube_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.fits
.....................!
real 192.44
user 186.48
sys 5.39

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/506085/ft1_filtered_4FGL_J1522.1+3144_daily_bin20.fits scfile=/scratch/kocevski/506085/ft2_4FGL_J1522.1+3144_daily_bin20.fits outfile=/scratch/kocevski/506085/cmap_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506085/ft1_filtered_4FGL_J1522.1+3144_daily_bin20.fits scfile=/scratch/kocevski/506085/ft2_4FGL_J1522.1+3144_daily_bin20.fits outfile=/scratch/kocevski/506085/cmap_HighResolution_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4676       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.778       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7550       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0264       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .35598       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3361       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=   5825.957     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2312 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2940        4.2373       -.28426E-05   -.12509E-03
   2  Prefactor     .10000E-03    29.579       -.44153E-05** at limit **
   3  norm          5.4674        4.8112       -.10150E-07   -.28185E-03
   4  Prefactor     .10000E-03    18.354        .55618E-06** at limit **
   5  norm          6.6282        6.4749       -.53763E-07    .18810E-03
   6  Prefactor     5.8597        11.866       -.70476E-07    .11253E-04
   7  Prefactor     .10000E-03    5.4247       -.10747E-05** at limit **
   8  Prefactor     10.778        9.2678       -.47002E-07   -.68566E-04
   9  norm          3.1529        1.6554        .87190E-07    .15989E-03
  10  Prefactor     .10000E-03    28.726        .75894E-06** at limit **
  11  Prefactor     .10000E-03    3.1947       -.54972E-06** at limit **
  12  Prefactor     18.890        18.255       -.23031E-05   -.15456E-04
  13  Prefactor     .10000E-03    4.1995        .38555E-07** at limit **
  14  norm          7.8691        2.1026       -.73741E-07   -.12381E-03
  15  Prefactor     14.592        13.336       -.62182E-06   -.36101E-04
  16  Prefactor     38.135        35.888        .26752E-05   -.10813E-05
  17  Prefactor     .10000E-03    8.1252        .32809E-06** at limit **
  18  norm          .10000E-03    6.9234        .95930E-06** at limit **
  19  Prefactor     3.4029        2.4290       -.21147E-06   -.82126E-04
  20  Prefactor     1.7540        3.9261        .57952E-06   -.37369E-03
  21  Prefactor     8.8898        14.387       -.19371E-06   -.19371E-04
  22  Prefactor     4.0257        4.4156        .25876E-06   -.63061E-04
  23  Normalizat    .35610        .20931        .40382E-05    .36366E-04
  24  Prefactor     1.3360        .17471       -.12557E-05    .54193E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29403
  Prefactor  = 0.0001
  norm       = 5.46743
  Prefactor  = 0.0001
  norm       = 6.62824
  Prefactor  = 5.85967
  Prefactor  = 0.0001
  Prefactor  = 10.7781
  norm       = 3.15291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.89
  Prefactor  = 0.0001
  norm       = 7.86912
  Prefactor  = 14.5921
  Prefactor  = 38.1352
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.40288
  Prefactor  = 1.754
  Prefactor  = 8.88979
  Prefactor  = 4.02571
  Normalizat = 0.356101
  Prefactor  = 1.336
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.957     FROM HESSE     STATUS=OK           403 CALLS     2715 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2940        4.2289        .27772E-03   -1.5480    
   2  Prefactor     .10000E-03    29.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4674        4.8810        .77080E-03   -1.5240    
   4  Prefactor     .10000E-03    18.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6282        6.5427        .77936E-03   -1.5193    
   6  Prefactor     5.8597        11.833        .16588E-03   -1.5224    
   7  Prefactor     .10000E-03    5.4782        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.778        9.2814        .61018E-03   -1.5051    
   9  norm          3.1529        1.6484        .67417E-04   -1.5353    
  10  Prefactor     .10000E-03    28.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2091        .13320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.890        18.254        .92142E-04   -1.4838    
  13  Prefactor     .10000E-03    4.2010        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8691        2.1167        .47220E-04   -1.5147    
  15  Prefactor     14.592        13.419        .10485E-03   -1.4944    
  16  Prefactor     38.135        35.791        .32452E-03   -1.4472    
  17  Prefactor     .10000E-03    8.1342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.9384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4029        2.4258        .96294E-04   -1.5339    
  20  Prefactor     1.7540        16.871        .15820E-02   -1.5443    
  21  Prefactor     8.8898        14.434        .13443E-03   -1.5112    
  22  Prefactor     4.0257        4.3849        .15754E-03   -1.5307    
  23  Normalizat    .35610        .21122        .40211E-03   -1.1964    
  24  Prefactor     1.3360        .18030        .18957E-03   -.82243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01761e-09
Minuit parameter uncertainties:
  1  4.22985
  2  4.13977e-06
  3  4.88132
  4  1.2539e-05
  5  6.54336
  6  11.8381
  7  4.19807e-06
  8  9.28262
  9  1.64839
  10  5.21028e-06
  11  5.45587e-07
  12  18.2589
  13  5.02193e-06
  14  2.11677
  15  13.4213
  16  35.8114
  17  3.57533e-06
  18  4.02877e-06
  19  2.42588
  20  10.8833
  21  14.4401
  22  4.38525
  23  0.211696
  24  0.180389
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.869e+00  2.117e+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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.336e+00  1.804e-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:  3.561e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.76
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.57e-07 +/- 6.90e-08
Energy Flux (Fixed Index): 8.08e-05 +/- 2.17e-05

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) = 5825.8878364
delta logL = 0.068871844579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.87904684
delta logL = 0.0776614095494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0781       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2710       1.0000          .0000       5.0000    
     3 'Normalizat'    .37153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3279       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=   5825.879     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0770        2.5427        .35266E-02    .11461E-03
   2  alpha         2.2708        .31904        .15964        .43032E-04
   3  Normalizat    .37176        .19940        .88972E-01    .41822E-04
   4  Prefactor     1.3278        .17114        .32140E-01   -.23768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.07704
  alpha      = 2.2708
  Normalizat = 0.371761
  Prefactor  = 1.32781
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.879     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0770        1.9538        .48799E-04   -1.5139    
   2  alpha         2.2708        .25058        .68654E-02   -.91811E-01
   3  Normalizat    .37176        .20537        .39416E-03   -1.1879    
   4  Prefactor     1.3278        .17687        .19014E-03   -.82484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13434e-12
Minuit parameter uncertainties:
  1  1.95378
  2  0.251009
  3  0.205789
  4  0.176953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506085': 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) = 5825.87904571
delta logL = 0.0776625347025

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.077e+00  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.271e+00  2.510e-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:  1.328e+00  1.770e-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:  3.718e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.76
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.27 +/- 0.25
Photon Flux (Free Index): 2.42e-07 +/- 6.87e-08
Energy Flux (Free Index): 8.49e-05 +/- 2.32e-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/506085/cmap_HighResolution_244512001_244771201_4FGL_J1522.1+3144_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.57e-07', energy_flux2='8.49e-05', photon_flux_error='6.90e-08', dlogl='7.77e-02', energy_flux='8.08e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-12 02:16:58.985218', photon_index_error2='0.25', photon_index2='2.27', ts='52.76', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.36', time_epoch_completed='1631438218.99', return_code='0', job_id='506085', GAL2='1.33', EG2='0.37', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='6.87e-08', ts2='53.76', photon_index='2.37' WHERE bin_id='20' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 506085: <4FGL_J1522.1+3144_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin20 230.545 31.7395 244512001 244771201 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 :                                   553.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            697 sec.

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

