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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1607
RA = 230.545, Dec = 31.7395
tmin = 655862401, tmax = 656121601
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='382955', job_status='RUN', time_executed='2021-12-08 02:10:14.370150', time_epoch_executed='1638958214.37' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382955/ft1_4FGL_J1522.1+3144_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382955/ft2_4FGL_J1522.1+3144_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382955/ft1_4FGL_J1522.1+3144_daily_bin1607.fits outfile=/scratch/kocevski/382955/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1607.fits ra=230.545 dec=31.7395 rad=12.0 tmin=655862401.0 tmax=656121601.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 4.58
user 4.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382955/ft2_4FGL_J1522.1+3144_daily_bin1607.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/382955/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/382955/ft1_filtered_4FGL_J1522.1+3144_daily_bin1607.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.53
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382955/ft1_filtered_4FGL_J1522.1+3144_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/382955/ft2_4FGL_J1522.1+3144_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/382955/ltcube_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.fits outfile=/scratch/kocevski/382955/expmap_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.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/382955/ltcube_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.fits
.....................!
real 193.76
user 187.53
sys 5.41

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/382955/ft1_filtered_4FGL_J1522.1+3144_daily_bin1607.fits scfile=/scratch/kocevski/382955/ft2_4FGL_J1522.1+3144_daily_bin1607.fits outfile=/scratch/kocevski/382955/cmap_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382955/ft1_filtered_4FGL_J1522.1+3144_daily_bin1607.fits scfile=/scratch/kocevski/382955/ft2_4FGL_J1522.1+3144_daily_bin1607.fits outfile=/scratch/kocevski/382955/cmap_HighResolution_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.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.60
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79482E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .47341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5463       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3390       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3515       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1118       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87871       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=   6143.505     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2765 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1224         .0000    ** at limit **
   2  Prefactor     .10000E-03    15.670         .0000    ** at limit **
   3  norm          10.085        5.4128         .0000        .24683E-02
   4  Prefactor     .10000E-03    40.013         .0000    ** at limit **
   5  norm          6.7589        7.3741         .0000        .68375E-03
   6  Prefactor     .10000E-03    8.1896         .0000    ** at limit **
   7  Prefactor     .10000E-03    2.6270         .0000    ** at limit **
   8  Prefactor     .10000E-03    2.9737         .0000    ** at limit **
   9  norm          .47294        1.1291         .0000        .15857E-02
  10  Prefactor     .10000E-03    36.670         .0000    ** at limit **
  11  Prefactor     4.8208        7.7510         .0000        .50635E-02
  12  Prefactor     6.5339        23.334         .0000       -.32689E-03
  13  Prefactor     6.5856        20.182         .0000       -.41243E-03
  14  norm          1.6886        1.0525         .0000        .32168E-03
  15  Prefactor     .10000E-03    5.0579         .0000    ** at limit **
  16  Prefactor     .10000E-03    15.086         .0000    ** at limit **
  17  Prefactor     .10000E-03    59.715         .0000    ** at limit **
  18  norm          .10000E-03    7.8301         .0000    ** at limit **
  19  Prefactor     1.3376        2.8473         .0000        .10037E-02
  20  Prefactor     .10000E-03    8.5254         .0000    ** at limit **
  21  Prefactor     .10000E-03    3.5965         .0000    ** at limit **
  22  Prefactor     1.3502        2.6586         .0000        .81877E-03
  23  Normalizat    1.1118        .17832         .0000       -.53219E-05
  24  Prefactor     .87886        .14124         .0000        .19924E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0852
  Prefactor  = 0.000100001
  norm       = 6.75892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.472943
  Prefactor  = 0.0001
  Prefactor  = 4.82083
  Prefactor  = 6.5339
  Prefactor  = 6.58555
  norm       = 1.68857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35018
  Normalizat = 1.1118
  Prefactor  = 0.878864
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.505     FROM HESSE     STATUS=OK           405 CALLS     3170 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2633        .34631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.085        5.4110        .63087E-03   -1.5073    
   4  Prefactor     .10000E-03    41.444        .12098       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7589        7.3695        .15436E-03   -1.5188    
   6  Prefactor     .10000E-03    8.2162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6392        .12398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9822        .13200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .47294        1.1046        .12185E-03   -1.5570    
  10  Prefactor     .10000E-03    36.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8208        7.7429        .91656E-03   -1.5269    
  12  Prefactor     6.5339        22.700        .15650E-03   -1.5197    
  13  Prefactor     6.5856        19.722        .15685E-03   -1.5195    
  14  norm          1.6886        1.0470        .60520E-04   -1.5448    
  15  Prefactor     .10000E-03    5.0982        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.8600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3376        2.8195        .17896E-03   -1.5477    
  20  Prefactor     .10000E-03    8.5371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5983        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3502        2.6273        .17267E-03   -1.5476    
  23  Normalizat    1.1118        .20452        .23396E-03   -.89374    
  24  Prefactor     .87886        .16275        .21934E-03   -.96884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44234e-09
Minuit parameter uncertainties:
  1  7.78003e-07
  2  6.0887e-06
  3  5.41126
  4  0.000331785
  5  7.37049
  6  1.11997e-05
  7  1.9986e-07
  8  7.73309e-09
  9  1.10461
  10  0.000102791
  11  7.74455
  12  22.7297
  13  19.7411
  14  1.04699
  15  2.50232e-07
  16  3.03962e-06
  17  4.45348e-05
  18  9.89859e-06
  19  2.81978
  20  3.55991e-06
  21  8.58641e-07
  22  2.62751
  23  0.204664
  24  0.162836
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.689e+00  1.047e+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:  8.789e-01  1.628e-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.112e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.08e-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) = 6143.35534969
delta logL = 0.149183284307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6143.35274025
delta logL = 0.151792720911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7331       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87257       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=   6143.353     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7354        2.6898        .79708E-02   -.61839E-03
   2  alpha         2.0758        1.0552        .36042       -.20635E-04
   3  Normalizat    1.1247        .16587        .37081E-01   -.22974E-03
   4  Prefactor     .87242        .14121        .44654E-01    .31740E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73544
  alpha      = 2.07575
  Normalizat = 1.12473
  Prefactor  = 0.872425
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.353     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7354        1.1229        .63916E-04   -1.5444    
   2  alpha         2.0758        .51806        .13886E-01   -.17052    
   3  Normalizat    1.1247        .18851        .23281E-03   -.88962    
   4  Prefactor     .87242        .15844        .22006E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50947e-10
Minuit parameter uncertainties:
  1  1.12292
  2  0.52196
  3  0.188628
  4  0.158523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382955': 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) = 6143.35273677
delta logL = 0.151796204554

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.735e+00  1.123e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.076e+00  5.220e-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:  8.724e-01  1.585e-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.125e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.08 +/- 0.52
Photon Flux (Free Index): 4.46e-08 +/- 3.51e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.48e-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/382955/cmap_HighResolution_655862401_656121601_4FGL_J1522.1+3144_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.04e-05', photon_flux_error='3.41e-08', dlogl='1.52e-01', energy_flux='1.73e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-12-08 02:20:41.548629', photon_index_error2='0.52', photon_index2='2.08', ts='5.68', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.11', time_epoch_completed='1638958841.55', return_code='0', job_id='382955', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.51e-08', ts2='5.98', photon_index='2.37' WHERE bin_id='1607' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:20:41 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 382955: <4FGL_J1522.1+3144_daily_bin1607> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1607> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 02:05:27 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:06:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:06:59 2021
Terminated at Wed Dec  8 02:20:42 2021
Results reported at Wed Dec  8 02:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1607 230.545 31.7395 655862401 656121601 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 :                                   625.60 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            915 sec.

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

