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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin477
RA = 230.545, Dec = 31.7395
tmin = 362966401, tmax = 363225601
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='507938', job_status='RUN', time_executed='2021-09-12 02:10:47.607179', time_epoch_executed='1631437847.61' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507938

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507938/ft1_4FGL_J1522.1+3144_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507938/ft1_4FGL_J1522.1+3144_daily_bin477.fits outfile=/scratch/kocevski/507938/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin477.fits ra=230.545 dec=31.7395 rad=12.0 tmin=362966401.0 tmax=363225601.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 6.02
user 5.74
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/507938/ltcube_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.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/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits
.....................!
real 11.02
user 10.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/507938/ltcube_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.fits outfile=/scratch/kocevski/507938/expmap_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.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/507938/ltcube_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.fits
.....................!
real 191.10
user 185.22
sys 5.44

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/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits scfile=/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits outfile=/scratch/kocevski/507938/cmap_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits scfile=/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits outfile=/scratch/kocevski/507938/cmap_HighResolution_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.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/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/507938/ft2_4FGL_J1522.1+3144_daily_bin477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507938/Model_4FGL_J1522.1+3144_daily_bin477.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/507938/ft1_filtered_4FGL_J1522.1+3144_daily_bin477.fits.....................!
real 40.70
user 39.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.127       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14515E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2915       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1417       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67253       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=   4804.556     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2728 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.163        9.4910       -.26977E-07    .21198E-04
   2  Prefactor     79.129        63.172        .37409E-06    .25651E-04
   3  norm          7.2865        5.3896        .93077E-07    .27748E-04
   4  Prefactor     .10000E-03    19.805        .34792E-05** at limit **
   5  norm          .10000E-03    19.163       -.16977E-05** at limit **
   6  Prefactor     2.1828        21.915        .63262E-06   -.25228E-04
   7  Prefactor     .10000E-03    5.2154       -.50867E-07** at limit **
   8  Prefactor     .10000E-03    4.7383        .15306E-07** at limit **
   9  norm          1.7433        1.8552        .48644E-07   -.12144E-03
  10  Prefactor     .10000E-03    191.02       -.12431E-05** at limit **
  11  Prefactor     1.8059        8.9281        .78325E-06   -.12083E-03
  12  Prefactor     .10000E-03    20.032       -.85759E-06** at limit **
  13  Prefactor     .10000E-03    29.208       -.19841E-05** at limit **
  14  norm          4.1759        1.7829       -.14173E-06   -.20114E-04
  15  Prefactor     9.1463        9.5750        .12512E-05   -.53374E-03
  16  Prefactor     .10000E-03    9.7797        .25294E-07** at limit **
  17  Prefactor     .10000E-03    39.044        .11728E-05** at limit **
  18  norm          8.4401        9.9109       -.92169E-07   -.68410E-04
  19  Prefactor     1.5939        1.4913       -.23434E-07    .33383E-05
  20  Prefactor     .10000E-03    10.179       -.12227E-06** at limit **
  21  Prefactor     .10000E-03    13.244        .15754E-06** at limit **
  22  Prefactor     2.2914        2.6923        .34501E-07   -.29874E-04
  23  Normalizat    1.1417        .19403       -.26928E-06    .12699E-04
  24  Prefactor     .67255        .15120       -.10528E-06   -.42921E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1634
  Prefactor  = 79.1288
  norm       = 7.28646
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 2.18283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74333
  Prefactor  = 0.0001
  Prefactor  = 1.80589
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.17585
  Prefactor  = 9.1463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.44011
  Prefactor  = 1.59389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29145
  Normalizat = 1.14174
  Prefactor  = 0.67255
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.556     FROM HESSE     STATUS=OK           397 CALLS     3125 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.163        9.4961        .96674E-04   -1.4879    
   2  Prefactor     79.129        63.263        .22574E-03   -1.3927    
   3  norm          7.2865        5.3879        .13415E-03   -1.5168    
   4  Prefactor     .10000E-03    22.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1828        21.950        .27843E-03   -1.5412    
   7  Prefactor     .10000E-03    5.2384        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7520        .14735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7433        1.8415        .91187E-04   -1.5444    
  10  Prefactor     .10000E-03    193.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8059        9.1894        .31091E-03   -1.5439    
  12  Prefactor     .10000E-03    20.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1759        1.8326        .51847E-04   -1.5299    
  15  Prefactor     9.1463        10.790        .66262E-03   -1.5103    
  16  Prefactor     .10000E-03    9.7808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4401        9.9064        .13796E-03   -1.5127    
  19  Prefactor     1.5939        1.5022        .79583E-04   -1.5455    
  20  Prefactor     .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2914        2.6864        .11950E-03   -1.5405    
  23  Normalizat    1.1417        .22099        .22636E-03   -.88423    
  24  Prefactor     .67255        .17164        .23395E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70477e-10
Minuit parameter uncertainties:
  1  9.49696
  2  63.3169
  3  5.38823
  4  0.000554777
  5  0.000218104
  6  13.8501
  7  2.51382e-06
  8  9.7907e-07
  9  1.84152
  10  0.000543372
  11  8.14916
  12  0.000112128
  13  0.000325625
  14  1.83266
  15  10.7922
  16  2.81166e-06
  17  0.000264214
  18  9.90832
  19  1.5022
  20  1.25311e-05
  21  1.90413e-05
  22  2.68655
  23  0.221173
  24  0.17178
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  4.176e+00  1.833e+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:  6.725e-01  1.718e-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.142e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.31
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 1.88e-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) = 4804.53115863
delta logL = 0.0243816515022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4804.52688746
delta logL = 0.0286528259994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0402       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4712       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67799       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=   4804.527     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0402        27.046        .50153E-02    .12232E-02
   2  alpha         2.4713        3.6126        .22995        .22013E-04
   3  Normalizat    1.1316        .17254        .36840E-01    .48403E-05
   4  Prefactor     .67799        .12813        .42107E-01    .12704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.04021
  alpha      = 2.47126
  Normalizat = 1.13156
  Prefactor  = 0.67799
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.527     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0402        1.6919        .50071E-04   -1.5306    
   2  alpha         2.4713        .43099        .95806E-02   -.11496E-01
   3  Normalizat    1.1316        .21376        .22717E-03   -.88745    
   4  Prefactor     .67799        .17077        .23310E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02007e-10
Minuit parameter uncertainties:
  1  1.6919
  2  0.43315
  3  0.213927
  4  0.170906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507938': 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) = 4804.52688745
delta logL = 0.0286528273582

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  4.040e+00  1.692e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.471e+00  4.332e-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:  6.780e-01  1.709e-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.132e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.51
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.47 +/- 0.43
Photon Flux (Free Index): 1.45e-07 +/- 6.40e-08
Energy Flux (Free Index): 4.13e-05 +/- 1.70e-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/507938/cmap_HighResolution_362966401_363225601_4FGL_J1522.1+3144_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='4.13e-05', photon_flux_error='5.98e-08', dlogl='2.87e-02', energy_flux='4.29e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-12 02:20:04.273081', photon_index_error2='0.43', photon_index2='2.47', ts='16.31', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.14', time_epoch_completed='1631438404.27', return_code='0', job_id='507938', GAL2='0.68', EG2='1.13', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.40e-08', ts2='16.51', photon_index='2.37' WHERE bin_id='477' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 507938: <4FGL_J1522.1+3144_daily_bin477> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin477 230.545 31.7395 362966401 363225601 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 :                                   551.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

