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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin65
RA = 230.545, Dec = 31.7395
tmin = 256176001, tmax = 256435201
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='506155', job_status='RUN', time_executed='2021-09-12 02:07:21.385691', time_epoch_executed='1631437641.39' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506155/ft1_4FGL_J1522.1+3144_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506155/ft2_4FGL_J1522.1+3144_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506155/ft1_4FGL_J1522.1+3144_daily_bin65.fits outfile=/scratch/kocevski/506155/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin65.fits ra=230.545 dec=31.7395 rad=12.0 tmin=256176001.0 tmax=256435201.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.45
user 1.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506155/ft1_filtered_4FGL_J1522.1+3144_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/506155/ft2_4FGL_J1522.1+3144_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/506155/ltcube_256176001_256435201_4FGL_J1522.1+3144_daily_bin65.fits outfile=/scratch/kocevski/506155/expmap_256176001_256435201_4FGL_J1522.1+3144_daily_bin65.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/506155/ltcube_256176001_256435201_4FGL_J1522.1+3144_daily_bin65.fits
.....................!
real 191.21
user 185.54
sys 5.30

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/506155/ft1_filtered_4FGL_J1522.1+3144_daily_bin65.fits scfile=/scratch/kocevski/506155/ft2_4FGL_J1522.1+3144_daily_bin65.fits outfile=/scratch/kocevski/506155/cmap_256176001_256435201_4FGL_J1522.1+3144_daily_bin65.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506155/ft1_filtered_4FGL_J1522.1+3144_daily_bin65.fits scfile=/scratch/kocevski/506155/ft2_4FGL_J1522.1+3144_daily_bin65.fits outfile=/scratch/kocevski/506155/cmap_HighResolution_256176001_256435201_4FGL_J1522.1+3144_daily_bin65.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5045       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89319E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11663E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8654       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4143       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77980       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=   9240.668     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2736 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6257        .45503E-08** at limit **
   2  Prefactor     .10000E-03    23.925        .70188E-07** at limit **
   3  norm          .10000E-03    1.3763        .32090E-07** at limit **
   4  Prefactor     7.5060        17.778        .17380E-06    .42227E-05
   5  norm          .10000E-03    3.1636       -.38243E-07** at limit **
   6  Prefactor     17.475        13.642        .95317E-07   -.13738E-04
   7  Prefactor     .10000E-03    3.3086        .63176E-07** at limit **
   8  Prefactor     .10004E-03    5.9681       -.12670E-05** at limit **
   9  norm          2.3836        1.4596        .43788E-07    .38963E-04
  10  Prefactor     8.7705        40.008       -.13202E-05   -.79475E-04
  11  Prefactor     .10000E-03    3.2913       -.39058E-07** at limit **
  12  Prefactor     .10000E-03    9.2247       -.11760E-07** at limit **
  13  Prefactor     .10000E-03    6.8180       -.15658E-09** at limit **
  14  norm          6.2282        1.4667        .62120E-07    .32269E-03
  15  Prefactor     .10001E-03    3.8032       -.34147E-07** at limit **
  16  Prefactor     23.720        30.468        .51735E-06   -.80823E-05
  17  Prefactor     .10000E-03    12.782       -.60255E-06** at limit **
  18  norm          6.8702        10.101        .26573E-05    .18799E-03
  19  Prefactor     .10000E-03    1.3330        .36144E-07** at limit **
  20  Prefactor     15.379        17.186       -.47233E-07   -.23493E-05
  21  Prefactor     5.8174        10.460        .30011E-06    .11143E-04
  22  Prefactor     .10000E-03    1.1721        .33867E-07** at limit **
  23  Normalizat    1.4141        .16084       -.33508E-08    .15192E-03
  24  Prefactor     .77982        .12513       -.37859E-06    .16126E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.50599
  norm       = 0.0001
  Prefactor  = 17.4753
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  norm       = 2.38359
  Prefactor  = 8.77049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.22815
  Prefactor  = 0.000100014
  Prefactor  = 23.72
  Prefactor  = 0.0001
  norm       = 6.87021
  Prefactor  = 0.0001
  Prefactor  = 15.3789
  Prefactor  = 5.81741
  Prefactor  = 0.0001
  Normalizat = 1.41415
  Prefactor  = 0.77982
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.668     FROM HESSE     STATUS=OK           399 CALLS     3135 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6308        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3851        .11012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5060        17.793        .14640E-03   -1.5160    
   5  norm          .10000E-03    3.1686        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.475        13.667        .95840E-04   -1.4872    
   7  Prefactor     .10000E-03    3.3221        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    19.237        .40041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3836        1.4552        .85994E-04   -1.5399    
  10  Prefactor     8.7705        40.204        .13515E-03   -1.5116    
  11  Prefactor     .10000E-03    3.3128        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.2637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2282        1.4122        .51255E-04   -1.5209    
  15  Prefactor     .10001E-03    50.594        .33087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.720        29.580        .82231E-04   -1.4734    
  17  Prefactor     .10000E-03    12.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8702        10.230        .76562E-03   -1.5184    
  19  Prefactor     .10000E-03    1.3921        .21644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.379        17.192        .10213E-03   -1.4923    
  21  Prefactor     5.8174        10.460        .16654E-03   -1.5226    
  22  Prefactor     .10000E-03    1.1970        .10162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4141        .18991        .24144E-03   -.80220    
  24  Prefactor     .77982        .14661        .24931E-03   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25132e-09
Minuit parameter uncertainties:
  1  7.54484e-09
  2  2.20502e-05
  3  1.418e-06
  4  17.8051
  5  3.92184e-07
  6  13.6697
  7  1.15931e-05
  8  0.00164339
  9  1.45523
  10  37.5972
  11  1.04973e-05
  12  2.27842e-06
  13  2.14544e-08
  14  1.41223
  15  0.00169855
  16  29.5986
  17  0.000113567
  18  10.2329
  19  1.07802e-06
  20  17.1973
  21  10.4629
  22  6.82105e-07
  23  0.190007
  24  0.146688
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.228e+00  1.412e+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:  7.798e-01  1.467e-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.414e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.33
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 4.60e-08
Energy Flux (Fixed Index): 6.40e-05 +/- 1.45e-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) = 9240.09730307
delta logL = 0.570688291162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.08806086
delta logL = 0.579930500249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5474       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1194       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76145       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=   9240.088     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5471        1.7069        .39209E-02    .20802E-03
   2  alpha         2.1190        .24620        .19075        .71944E-04
   3  Normalizat    1.4486        .15689        .54099E-01    .15331E-03
   4  Prefactor     .76145        .12347        .43213E-01    .15719E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54714
  alpha      = 2.11901
  Normalizat = 1.44863
  Prefactor  = 0.761448
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.088     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5471        1.5080        .54149E-04   -1.5196    
   2  alpha         2.1190        .22688        .80832E-02   -.15299    
   3  Normalizat    1.4486        .18465        .23920E-03   -.79232    
   4  Prefactor     .76145        .14453        .25194E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52589e-11
Minuit parameter uncertainties:
  1  1.50804
  2  0.227203
  3  0.184736
  4  0.144602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506155': 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) = 9240.08805966
delta logL = 0.57993170034

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.547e+00  1.508e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.119e+00  2.272e-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:  7.614e-01  1.446e-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.449e+00  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.43
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.12 +/- 0.23
Photon Flux (Free Index): 1.74e-07 +/- 4.89e-08
Energy Flux (Free Index): 7.44e-05 +/- 2.11e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='7.44e-05', photon_flux_error='4.60e-08', dlogl='5.80e-01', energy_flux='6.40e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-12 02:19:58.150068', photon_index_error2='0.23', photon_index2='2.12', ts='53.33', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.41', time_epoch_completed='1631438398.15', return_code='0', job_id='506155', GAL2='0.76', EG2='1.45', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.89e-08', ts2='54.43', photon_index='2.37' WHERE bin_id='65' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:19:58 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin65 230.545 31.7395 256176001 256435201 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

