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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin505
RA = 230.545, Dec = 31.7395
tmin = 370224001, tmax = 370483201
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='507980', job_status='RUN', time_executed='2021-09-12 02:10:56.865416', time_epoch_executed='1631437856.87' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507980/ft1_4FGL_J1522.1+3144_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507980/ft1_4FGL_J1522.1+3144_daily_bin505.fits outfile=/scratch/kocevski/507980/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin505.fits ra=230.545 dec=31.7395 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.23
user 15.72
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/507980/ltcube_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.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/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits
.....................!
real 10.50
user 10.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/507980/ltcube_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.fits outfile=/scratch/kocevski/507980/expmap_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.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/507980/ltcube_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.fits
.....................!
real 190.17
user 185.36
sys 4.33

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/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits scfile=/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits outfile=/scratch/kocevski/507980/cmap_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits scfile=/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits outfile=/scratch/kocevski/507980/cmap_HighResolution_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.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/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/507980/ft2_4FGL_J1522.1+3144_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507980/Model_4FGL_J1522.1+3144_daily_bin505.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/507980/ft1_filtered_4FGL_J1522.1+3144_daily_bin505.fits......................!
real 29.91
user 27.89
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31431E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.933       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.522       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.352       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3670       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18915E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0938       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.764       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2737       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8482       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .33405       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=   2691.706     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2772 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    6.6741       -.11127E-05** at limit **
   2  Prefactor     .10000E-03    29.593       -.58397E-05** at limit **
   3  norm          .10000E-03    5.9772       -.40149E-07** at limit **
   4  Prefactor     27.942        67.921        .13551E-04   -.16319E-04
   5  norm          .10000E-03    4.6427       -.11064E-06** at limit **
   6  Prefactor     .10000E-03    10.954        .40420E-06** at limit **
   7  Prefactor     .10000E-03    13.431       -.17731E-06** at limit **
   8  Prefactor     19.518        18.114        .56209E-06   -.12444E-04
   9  norm          .10000E-03    .72751       -.96034E-08** at limit **
  10  Prefactor     .10000E-03    41.112        .67311E-05** at limit **
  11  Prefactor     .10000E-03    26.912        .24147E-05** at limit **
  12  Prefactor     .10000E-03    18.192        .49751E-05** at limit **
  13  Prefactor     30.368        31.719        .63513E-05   -.75990E-04
  14  norm          7.3679        2.8244        .44475E-06   -.24436E-03
  15  Prefactor     .10000E-03    8.3211        .16954E-06** at limit **
  16  Prefactor     39.416        53.833       -.31312E-04   -.16364E-04
  17  Prefactor     .10001E-03    28.864        .12700E-05** at limit **
  18  norm          7.8737        15.071       -.15252E-05   -.20284E-03
  19  Prefactor     4.0942        4.8426       -.35054E-05   -.91661E-04
  20  Prefactor     33.762        45.795       -.31074E-05   -.25805E-04
  21  Prefactor     .10000E-03    16.224       -.37968E-05** at limit **
  22  Prefactor     4.2738        4.5694        .82193E-07    .29817E-04
  23  Normalizat    1.8477        .32507       -.43873E-05    .13731E-03
  24  Prefactor     .33431        .24601        .80771E-05   -.43352E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3679
  norm       = 7.3679
  Prefactor  = 0.0001
  Prefactor  = 39.4161
  Prefactor  = 0.000100013
  norm       = 7.87367
  Prefactor  = 4.09421
  Prefactor  = 33.7624
  Prefactor  = 0.0001
  Prefactor  = 4.27383
  Normalizat = 1.84771
  Prefactor  = 0.334306
 **********
 **   18 **HESSE 
 **********

 FCN=   2691.706     FROM HESSE     STATUS=OK           399 CALLS     3171 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    39.415        .25747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.0073        .12387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.942        68.621        .75802E-04   -1.4650    
   5  norm          .10000E-03    4.6451        .10919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.981        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.000        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.518        18.110        .90650E-04   -1.4824    
   9  norm          .10000E-03    .73296        .43191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.368        32.019        .72725E-04   -1.4605    
  14  norm          7.3679        2.8310        .51133E-04   -1.5165    
  15  Prefactor     .10000E-03    8.3315        .14612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.416        53.884        .31909E-03   -1.4451    
  17  Prefactor     .10001E-03    144.46        .45928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8737        12.902        .14254E-03   -1.5147    
  19  Prefactor     4.0942        4.8391        .11941E-03   -1.5303    
  20  Prefactor     33.762        45.722        .68963E-04   -1.4545    
  21  Prefactor     .10000E-03    16.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2738        4.5716        .11173E-03   -1.5294    
  23  Normalizat    1.8477        .35565        .22356E-03   -.68425    
  24  Prefactor     .33431        .26395        .38190E-03   -1.2030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35155e-09
Minuit parameter uncertainties:
  1  0.00328264
  2  1.74522e-06
  3  9.04292e-06
  4  68.8155
  5  4.65616e-07
  6  1.08856e-05
  7  4.50141e-07
  8  18.1146
  9  9.91536e-07
  10  6.16336e-06
  11  5.49883e-05
  12  0.000105011
  13  32.0368
  14  2.83105
  15  8.86074e-05
  16  53.9511
  17  0.00272979
  18  12.9065
  19  4.83953
  20  45.7698
  21  9.22915e-06
  22  4.57197
  23  0.35615
  24  0.264911
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.368e+00  2.831e+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:  3.343e-01  2.649e-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.848e+00  3.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.64
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.40e-07 +/- 9.23e-08
Energy Flux (Fixed Index): 7.57e-05 +/- 2.91e-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) = 2691.42260096
delta logL = 0.283325874642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2691.41032524
delta logL = 0.29560159143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3668       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0648       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31312       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=   2691.410     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3493        2.9604        .36943E-02   -.86948E-05
   2  alpha         2.0645        .37466        .17597       -.16295E-04
   3  Normalizat    1.8958        .30975        .50142E-01   -.10011E-03
   4  Prefactor     .31317        .24189        .88888E-01   -.34591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.34932
  alpha      = 2.06447
  Normalizat = 1.89576
  Prefactor  = 0.313171
 **********
 **   18 **HESSE 
 **********

 FCN=   2691.410     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3493        3.0009        .53870E-04   -1.5166    
   2  alpha         2.0645        .39171        .75337E-02   -.17511    
   3  Normalizat    1.8958        .33100        .22164E-03   -.67190    
   4  Prefactor     .31317        .25539        .39400E-03   -1.2150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29116e-11
Minuit parameter uncertainties:
  1  3.00096
  2  0.393378
  3  0.331397
  4  0.256315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507980': 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) = 2691.41030824
delta logL = 0.295618598038

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.349e+00  3.001e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.064e+00  3.934e-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:  3.132e-01  2.563e-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.896e+00  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.23
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.06 +/- 0.39
Photon Flux (Free Index): 1.87e-07 +/- 1.01e-07
Energy Flux (Free Index): 8.71e-05 +/- 4.10e-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/507980/cmap_HighResolution_370224001_370483201_4FGL_J1522.1+3144_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-07', energy_flux2='8.71e-05', photon_flux_error='9.23e-08', dlogl='2.96e-01', energy_flux='7.57e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-12 02:19:30.712966', photon_index_error2='0.39', photon_index2='2.06', ts='23.64', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='1.85', time_epoch_completed='1631438370.71', return_code='0', job_id='507980', GAL2='0.31', EG2='1.90', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='1.01e-07', ts2='24.23', photon_index='2.37' WHERE bin_id='505' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:19:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 507980: <4FGL_J1522.1+3144_daily_bin505> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin505> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 02:10:38 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:10:40 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:10:40 2021
Terminated at Sun Sep 12 02:19:31 2021
Results reported at Sun Sep 12 02:19:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin505 230.545 31.7395 370224001 370483201 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 :                                   497.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            533 sec.

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

