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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1312
RA = 230.545, Dec = 31.7395
tmin = 579398401, tmax = 579657601
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='513333', job_status='RUN', time_executed='2021-09-12 02:28:07.955971', time_epoch_executed='1631438887.96' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513333/ft1_4FGL_J1522.1+3144_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513333/ft1_4FGL_J1522.1+3144_daily_bin1312.fits outfile=/scratch/kocevski/513333/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1312.fits ra=230.545 dec=31.7395 rad=12.0 tmin=579398401.0 tmax=579657601.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513333/ft1_filtered_4FGL_J1522.1+3144_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/513333/ltcube_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.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/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513333/ft1_filtered_4FGL_J1522.1+3144_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/513333/ltcube_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.fits outfile=/scratch/kocevski/513333/expmap_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.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/513333/ltcube_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.fits
.....................!
real 190.70
user 185.16
sys 5.22

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/513333/ft1_filtered_4FGL_J1522.1+3144_daily_bin1312.fits scfile=/scratch/kocevski/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits outfile=/scratch/kocevski/513333/cmap_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.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/513333/ft1_filtered_4FGL_J1522.1+3144_daily_bin1312.fits scfile=/scratch/kocevski/513333/ft2_4FGL_J1522.1+3144_daily_bin1312.fits outfile=/scratch/kocevski/513333/cmap_HighResolution_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4178       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.984       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7908       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6017       1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.296       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1252       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9329       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .51664       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1905       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=   5307.467     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2370 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.560       -.73354E-05** at limit **
   2  Prefactor     .10000E-03    70.439       -.87088E-05** at limit **
   3  norm          4.4181        3.8115        .11557E-05   -.71785E-03
   4  Prefactor     23.967        25.347        .62934E-06   -.82612E-05
   5  norm          5.8234        8.2862        .13558E-05    .16156E-05
   6  Prefactor     1.7887        20.881       -.70740E-06   -.30246E-04
   7  Prefactor     .52281        9.2588        .66046E-06   -.12070E-03
   8  Prefactor     5.6014        8.0258        .50776E-06   -.49146E-05
   9  norm          .10000E-03    .49154        .82448E-07** at limit **
  10  Prefactor     .10000E-03    33.713        .21055E-05** at limit **
  11  Prefactor     9.7626        7.2033        .36322E-06   -.16451E-04
  12  Prefactor     .10000E-03    18.091       -.17372E-06** at limit **
  13  Prefactor     15.300        16.757        .35149E-07    .13635E-04
  14  norm          1.1490        1.2179        .96437E-07   -.11222E-03
  15  Prefactor     7.1254        9.5907       -.29196E-06   -.16531E-03
  16  Prefactor     .10000E-03    124.02        .85734E-05** at limit **
  17  Prefactor     .10000E-03    11.147        .10645E-05** at limit **
  18  norm          20.133        13.396        .63087E-07   -.50239E-04
  19  Prefactor     .10000E-03    1.1309       -.11412E-06** at limit **
  20  Prefactor     .10000E-03    9.5567       -.32159E-05** at limit **
  21  Prefactor     26.406        16.753        .24500E-06    .27440E-05
  22  Prefactor     5.9334        4.2189        .18585E-06   -.19669E-04
  23  Normalizat    .51643        .18366       -.20814E-05   -.48537E-04
  24  Prefactor     1.1907        .15478       -.86820E-07   -.13317E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.41807
  Prefactor  = 23.9667
  norm       = 5.82344
  Prefactor  = 1.78875
  Prefactor  = 0.522808
  Prefactor  = 5.60139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.76256
  Prefactor  = 0.0001
  Prefactor  = 15.2996
  norm       = 1.14901
  Prefactor  = 7.12542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.406
  Prefactor  = 5.93339
  Normalizat = 0.516427
  Prefactor  = 1.19067
 **********
 **   18 **HESSE 
 **********

 FCN=   5307.467     FROM HESSE     STATUS=OK           401 CALLS     2771 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.516        .25945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4181        5.0643        .84346E-03   -1.5288    
   4  Prefactor     23.967        25.370        .81793E-04   -1.4728    
   5  norm          5.8234        8.2502        .16638E-03   -1.5225    
   6  Prefactor     1.7887        20.060        .31255E-03   -1.5440    
   7  Prefactor     .52281        10.368        .43289E-03   -1.5563    
   8  Prefactor     5.6014        8.0278        .16974E-03   -1.5235    
   9  norm          .10000E-03    .49816        .49732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7626        7.2005        .12825E-03   -1.5083    
  12  Prefactor     .10000E-03    18.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.300        16.754        .10241E-03   -1.4925    
  14  norm          1.1490        1.1882        .68305E-04   -1.5494    
  15  Prefactor     7.1254        9.5505        .15028E-03   -1.5174    
  16  Prefactor     .10000E-03    125.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.133        13.388        .89261E-04   -1.4810    
  19  Prefactor     .10000E-03    1.1527        .75548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.406        16.781        .77957E-04   -1.4680    
  22  Prefactor     5.9334        4.2154        .12065E-03   -1.5221    
  23  Normalizat    .51643        .20220        .30640E-03   -1.1166    
  24  Prefactor     1.1907        .17427        .18599E-03   -.86619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58171e-10
Minuit parameter uncertainties:
  1  0.000174593
  2  9.2018e-05
  3  5.06475
  4  25.3817
  5  8.25179
  6  11.9851
  7  4.6568
  8  8.02932
  9  4.01203e-06
  10  3.34824e-05
  11  7.20117
  12  5.62312e-05
  13  16.7588
  14  1.18826
  15  9.55256
  16  0.000324121
  17  1.24472e-05
  18  13.3898
  19  4.9725e-06
  20  4.262e-06
  21  16.7845
  22  4.21563
  23  0.202488
  24  0.174354
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.149e+00  1.188e+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.191e+00  1.744e-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:  5.164e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.22e-05

TS (Fixed Index): 2.04
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513333/likelihoodResults_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5307.44869781
delta logL = 0.0179409539214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5307.44780137
delta logL = 0.0188373925594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1782       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2213       1.0000          .0000       5.0000    
     3 'Normalizat'    .52116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1880       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=   5307.448     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1797        40.321        .10539E-01    .44373E-03
   2  alpha         2.2226        2.8030        .41479       -.32702E-06
   3  Normalizat    .52111        .75948E-01    .68926E-01    .40597E-04
   4  Prefactor     1.1881        .75926E-01    .34920E-01    .14419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17972
  alpha      = 2.22259
  Normalizat = 0.521107
  Prefactor  = 1.18806
 **********
 **   18 **HESSE 
 **********

 FCN=   5307.448     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1797        1.0793        .70379E-04   -1.5491    
   2  alpha         2.2226        .73836        .17535E-01   -.11119    
   3  Normalizat    .52111        .19044        .30510E-03   -1.1145    
   4  Prefactor     1.1881        .16984        .18617E-03   -.86700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78683e-13
Minuit parameter uncertainties:
  1  1.07933
  2  0.749686
  3  0.190676
  4  0.16992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513333': 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) = 5307.44779872
delta logL = 0.0188400406669

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.180e+00  1.079e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.223e+00  7.497e-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.188e+00  1.699e-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:  5.211e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 3.39e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.26e-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/513333/cmap_HighResolution_579398401_579657601_4FGL_J1522.1+3144_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.26e-05', photon_flux_error='3.87e-08', dlogl='1.88e-02', energy_flux='1.18e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-09-12 02:41:03.813925', photon_index_error2='0.75', photon_index2='2.22', ts='2.04', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.26e-05', EG='0.52', time_epoch_completed='1631439663.81', return_code='0', job_id='513333', GAL2='1.19', EG2='0.52', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.62e-08', ts2='2.09', photon_index='2.37' WHERE bin_id='1312' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 513333: <4FGL_J1522.1+3144_daily_bin1312> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1312> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:25:29 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:25:30 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:30 2021
Terminated at Sun Sep 12 02:41:04 2021
Results reported at Sun Sep 12 02:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1312 230.545 31.7395 579398401 579657601 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 :                                   604.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

