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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1040
RA = 230.545, Dec = 31.7395
tmin = 508896001, tmax = 509155201
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='511817', job_status='RUN', time_executed='2021-09-12 02:24:50.079474', time_epoch_executed='1631438690.08' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511817/ft1_4FGL_J1522.1+3144_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511817/ft1_4FGL_J1522.1+3144_daily_bin1040.fits outfile=/scratch/kocevski/511817/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1040.fits ra=230.545 dec=31.7395 rad=12.0 tmin=508896001.0 tmax=509155201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.72
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511817/ft1_filtered_4FGL_J1522.1+3144_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/511817/ltcube_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.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/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits
.....................!
real 11.95
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511817/ft1_filtered_4FGL_J1522.1+3144_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/511817/ltcube_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.fits outfile=/scratch/kocevski/511817/expmap_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.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/511817/ltcube_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.fits
.....................!
real 190.06
user 185.38
sys 4.32

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/511817/ft1_filtered_4FGL_J1522.1+3144_daily_bin1040.fits scfile=/scratch/kocevski/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits outfile=/scratch/kocevski/511817/cmap_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.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/511817/ft1_filtered_4FGL_J1522.1+3144_daily_bin1040.fits scfile=/scratch/kocevski/511817/ft2_4FGL_J1522.1+3144_daily_bin1040.fits outfile=/scratch/kocevski/511817/cmap_HighResolution_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6550       1.0000         .10000E-03   10000.    
     5 'norm      '    6.7594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    102.01       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0733       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.1536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3207       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0283       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=   6603.682     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2695 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7303        .48274E-07** at limit **
   2  Prefactor     .10000E-03    16.340       -.33164E-06** at limit **
   3  norm          1.5941        5.2052        .15643E-05   -.10356E-03
   4  Prefactor     9.6422        52.484       -.43790E-05   -.79889E-04
   5  norm          6.7596        6.6649       -.43022E-07   -.57344E-05
   6  Prefactor     18.119        16.909        .33926E-06    .68796E-04
   7  Prefactor     .10000E-03    2.8618       -.96185E-07** at limit **
   8  Prefactor     .10000E-03    18.002        .78386E-06** at limit **
   9  norm          .59654        1.5916        .69065E-06   -.16530E-03
  10  Prefactor     102.02        77.836        .38086E-06    .54805E-04
  11  Prefactor     7.0214        8.2933        .17598E-06   -.32064E-04
  12  Prefactor     .10000E-03    8.8935       -.50398E-07** at limit **
  13  Prefactor     .10000E-03    21.977       -.23849E-06** at limit **
  14  norm          2.7086        1.4295       -.15056E-07   -.21239E-03
  15  Prefactor     9.0742        9.3684        .62905E-07   -.47761E-04
  16  Prefactor     11.807        27.847       -.74408E-09   -.14504E-04
  17  Prefactor     .10000E-03    7.0893        .25249E-06** at limit **
  18  norm          8.1538        10.159        .11519E-05   -.12234E-03
  19  Prefactor     .10000E-03    1.7738        .20723E-06** at limit **
  20  Prefactor     .10000E-03    6.8019       -.27845E-06** at limit **
  21  Prefactor     4.0352        10.043        .34108E-06   -.15979E-04
  22  Prefactor     4.3209        3.6212        .12990E-06   -.83544E-05
  23  Normalizat    1.0910        .19422       -.23648E-06   -.13086E-03
  24  Prefactor     1.0285        .15113       -.48028E-06   -.11551E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59405
  Prefactor  = 9.64216
  norm       = 6.75963
  Prefactor  = 18.1192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.596543
  Prefactor  = 102.024
  Prefactor  = 7.02135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.70862
  Prefactor  = 9.07423
  Prefactor  = 11.8069
  Prefactor  = 0.0001
  norm       = 8.15379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03516
  Prefactor  = 4.32086
  Normalizat = 1.09102
  Prefactor  = 1.02846
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.682     FROM HESSE     STATUS=OK           403 CALLS     3098 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7697        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5941        5.2521        .32264E-03   -1.5455    
   4  Prefactor     9.6422        57.537        .12897E-03   -1.5087    
   5  norm          6.7596        6.6650        .15433E-03   -1.5188    
   6  Prefactor     18.119        17.058        .94106E-04   -1.4856    
   7  Prefactor     .10000E-03    2.8702        .13425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .59654        1.5913        .15529E-03   -1.5554    
  10  Prefactor     102.02        78.322        .39807E-04   -1.3684    
  11  Prefactor     7.0214        8.2925        .15140E-03   -1.5178    
  12  Prefactor     .10000E-03    8.9080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7086        1.4266        .63537E-04   -1.5379    
  15  Prefactor     9.0742        9.3497        .13306E-03   -1.5105    
  16  Prefactor     11.807        27.808        .11658E-03   -1.5021    
  17  Prefactor     .10000E-03    7.0986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1538        10.212        .70203E-03   -1.5137    
  19  Prefactor     .10000E-03    3.1474        .20713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0352        10.041        .20073E-03   -1.5306    
  22  Prefactor     4.3209        3.6184        .13677E-03   -1.5292    
  23  Normalizat    1.0910        .22929        .26998E-03   -.90041    
  24  Prefactor     1.0285        .17765        .22528E-03   -.91787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42597e-10
Minuit parameter uncertainties:
  1  1.72165e-06
  2  4.78698e-05
  3  5.25362
  4  47.1755
  5  6.66575
  6  17.0623
  7  9.28013e-06
  8  8.56405e-05
  9  1.59141
  10  78.4014
  11  8.29384
  12  1.04641e-05
  13  6.15391e-05
  14  1.42657
  15  9.35121
  16  27.8381
  17  1.8148e-05
  18  10.2138
  19  4.73865e-06
  20  2.58781e-05
  21  10.0448
  22  3.61857
  23  0.229501
  24  0.177755
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.709e+00  1.427e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.028e+00  1.778e-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.091e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.33
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.47e-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) = 6602.50073066
delta logL = 1.18144058559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6602.45503928
delta logL = 1.22713196421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2968       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0112       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=   6602.455     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2967        1.2250        .67703E-02   -.13623E-04
   2  alpha         1.6989        .31981        .25741       -.42364E-04
   3  Normalizat    1.1307        .18038        .60131E-01    .10444E-04
   4  Prefactor     1.0112        .14695        .43157E-01    .77094E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29673
  alpha      = 1.69886
  Normalizat = 1.13069
  Prefactor  = 1.0112
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.455     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2967        1.4651        .62655E-04   -1.5405    
   2  alpha         1.6989        .41152        .10563E-01   -.32621    
   3  Normalizat    1.1307        .21089        .26595E-03   -.88773    
   4  Prefactor     1.0112        .17162        .22704E-03   -.92357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45804e-12
Minuit parameter uncertainties:
  1  1.46514
  2  0.413624
  3  0.21105
  4  0.171712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511817': 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) = 6602.45503926
delta logL = 1.22713198241

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.297e+00  1.465e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.699e+00  4.136e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.011e+00  1.717e-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.131e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.84
Ra Dec: 230.545 31.739
Photon Index (Free Index): 1.70 +/- 0.41
Photon Flux (Free Index): 4.77e-08 +/- 3.51e-08
Energy Flux (Free Index): 4.51e-05 +/- 3.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/511817/cmap_HighResolution_508896001_509155201_4FGL_J1522.1+3144_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='4.51e-05', photon_flux_error='4.65e-08', dlogl='1.23e+00', energy_flux='2.78e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-12 02:36:24.013659', photon_index_error2='0.41', photon_index2='1.70', ts='10.33', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.10e-05', EG='1.09', time_epoch_completed='1631439384.01', return_code='0', job_id='511817', GAL2='1.01', EG2='1.13', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.51e-08', ts2='12.84', photon_index='2.37' WHERE bin_id='1040' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 511817: <4FGL_J1522.1+3144_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1040 230.545 31.7395 508896001 509155201 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 :                                   620.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             221.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

