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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1251
RA = 230.545, Dec = 31.7395
tmin = 563587201, tmax = 563846401
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='513232', job_status='RUN', time_executed='2021-09-12 02:25:32.323919', time_epoch_executed='1631438732.32' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513232/ft1_4FGL_J1522.1+3144_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513232/ft1_4FGL_J1522.1+3144_daily_bin1251.fits outfile=/scratch/kocevski/513232/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1251.fits ra=230.545 dec=31.7395 rad=12.0 tmin=563587201.0 tmax=563846401.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 2.76
user 2.55
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513232/ft1_filtered_4FGL_J1522.1+3144_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/513232/ltcube_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.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/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits
.....................!
real 12.67
user 12.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513232/ft1_filtered_4FGL_J1522.1+3144_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/513232/ltcube_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.fits outfile=/scratch/kocevski/513232/expmap_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.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/513232/ltcube_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.fits
.....................!
real 190.72
user 184.75
sys 5.51

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/513232/ft1_filtered_4FGL_J1522.1+3144_daily_bin1251.fits scfile=/scratch/kocevski/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits outfile=/scratch/kocevski/513232/cmap_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513232/ft1_filtered_4FGL_J1522.1+3144_daily_bin1251.fits scfile=/scratch/kocevski/513232/ft2_4FGL_J1522.1+3144_daily_bin1251.fits outfile=/scratch/kocevski/513232/cmap_HighResolution_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.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.63
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83401E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.808       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12125E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10827E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7316       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4023       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78751       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10107.47     FROM MIGRAD    STATUS=CONVERGED    976 CALLS     3190 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5286        .12104E-02** at limit **
   2  Prefactor     .10000E-03    10.321        .18142E-02** at limit **
   3  norm          .10062E-03    3.9119        .51625E-01** at limit **
   4  Prefactor     .10000E-03    11.020        .18142E-02** at limit **
   5  norm          .10000E-03    13.139        .31383E-02** at limit **
   6  Prefactor     5.8579        7.1146        .82985E-03   -.10916E-03
   7  Prefactor     .10000E-03    8.0101        .33605E-02** at limit **
   8  Prefactor     .10000E-03    4.5774        .18142E-02** at limit **
   9  norm          1.2440        .97097        .84832E-04    .79042E-03
  10  Prefactor     59.898        49.795        .25940E-03    .14454E-03
  11  Prefactor     15.439        8.7615        .10194E-03   -.24090E-04
  12  Prefactor     .10000E-03    6.0871        .18142E-02** at limit **
  13  Prefactor     .10003E-03    64.140        .50303E-02** at limit **
  14  norm          1.4246        .84476        .65321E-04   -.21964E-03
  15  Prefactor     6.4070        7.2049        .15852E-03   -.32989E-04
  16  Prefactor     20.906        38.826        .87642E-04    .15047E-04
  17  Prefactor     .10000E-03    9.4213        .18142E-02** at limit **
  18  norm          .10000E-03    5.9116        .18142E-02** at limit **
  19  Prefactor     1.3212        1.5931        .13542E-03   -.73541E-04
  20  Prefactor     .10000E-03    7.2603        .18142E-02** at limit **
  21  Prefactor     6.7328        7.2931        .15465E-03   -.11762E-05
  22  Prefactor     .10000E-03    1.2437        .10818E-02** at limit **
  23  Normalizat    1.4023        .16895        .23642E-03    .53089E-04
  24  Prefactor     .78738        .13741        .25059E-03    .19363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100615
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 5.85793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24403
  Prefactor  = 59.8978
  Prefactor  = 15.4392
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 1.42458
  Prefactor  = 6.40701
  Prefactor  = 20.9055
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.32125
  Prefactor  = 0.0001
  Prefactor  = 6.73281
  Prefactor  = 0.0001
  Normalizat = 1.40228
  Prefactor  = 0.787377
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.47     FROM HESSE     STATUS=OK           383 CALLS     3573 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5287        .24208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10062E-03    3.6917        .53677E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.303        .62766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8579        7.1132        .33194E-04   -1.5224    
   7  Prefactor     .10000E-03    8.0692        .67210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2440        .97072        .33933E-05   -1.5485    
  10  Prefactor     59.898        49.790        .10376E-04   -1.4159    
  11  Prefactor     15.439        8.7612        .40774E-05   -1.4922    
  12  Prefactor     .10000E-03    6.0879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    66.108        .20121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4246        .84466        .26128E-05   -1.5469    
  15  Prefactor     6.4070        7.2030        .63410E-05   -1.5202    
  16  Prefactor     20.906        38.815        .35057E-05   -1.4793    
  17  Prefactor     .10000E-03    9.4243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3212        1.5930        .54168E-05   -1.5478    
  20  Prefactor     .10000E-03    7.2610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7328        7.2929        .61861E-05   -1.5189    
  22  Prefactor     .10000E-03    1.2441        .21637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4023        .16899        .94566E-05   -.80563    
  24  Prefactor     .78738        .13751        .10024E-04   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30321e-09
Minuit parameter uncertainties:
  1  2.01781e-06
  2  8.30735e-06
  3  0.0030142
  4  1.45186e-05
  5  0.000428582
  6  7.1142
  7  4.89766e-05
  8  3.76369e-06
  9  0.970734
  10  49.8243
  11  8.7619
  12  6.58348e-06
  13  0.00291864
  14  0.844668
  15  7.20397
  16  38.862
  17  1.98315e-05
  18  1.72358e-05
  19  1.59305
  20  1.00537e-06
  21  7.29387
  22  1.48837e-06
  23  0.169061
  24  0.137569
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.425e+00  8.447e-01  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.874e-01  1.376e-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.402e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 8.68e-06

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) = 10107.4583221
delta logL = 0.0125832399353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10107.4577102
delta logL = 0.0131951512776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4093       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2726       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78509       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10107.46     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      265 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4093        .81611        .66057E-04    .51838E-03
   2  alpha         2.2726        .58884        .18662E-01    .72995E-05
   3  Normalizat    1.4069        .16682        .23611E-03    .67409E-05
   4  Prefactor     .78526        .13567        .25090E-03    .14047E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40929
  alpha      = 2.27261
  Normalizat = 1.40692
  Prefactor  = 0.785256
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.46     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4093        .82072        .26423E-05   -1.5471    
   2  alpha         2.2726        .59193        .74646E-03   -.91080E-01
   3  Normalizat    1.4069        .16696        .94445E-05   -.80429    
   4  Prefactor     .78526        .13577        .10036E-04   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21922e-11
Minuit parameter uncertainties:
  1  0.820725
  2  0.597654
  3  0.167025
  4  0.135824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513232': 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) = 10107.4577093
delta logL = 0.0131960391336

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.409e+00  8.207e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.273e+00  5.977e-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.853e-01  1.358e-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.407e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.27 +/- 0.60
Photon Flux (Free Index): 4.22e-08 +/- 3.54e-08
Energy Flux (Free Index): 1.48e-05 +/- 8.59e-06

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/513232/cmap_HighResolution_563587201_563846401_4FGL_J1522.1+3144_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.48e-05', photon_flux_error='2.75e-08', dlogl='1.32e-02', energy_flux='1.46e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-12 02:39:36.126805', photon_index_error2='0.60', photon_index2='2.27', ts='7.57', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='8.59e-06', EG='1.40', time_epoch_completed='1631439576.13', return_code='0', job_id='513232', GAL2='0.79', EG2='1.41', return_code2='0', energy_flux_error='8.68e-06', photon_flux_error2='3.54e-08', ts2='7.61', photon_index='2.37' WHERE bin_id='1251' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:39:36 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1251 230.545 31.7395 563587201 563846401 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 :                                   836.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

