/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 8 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin158
RA = 230.545, Dec = 31.7395
tmin = 280281601, tmax = 280540801
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='506303', job_status='RUN', time_executed='2021-09-12 02:05:57.685768', time_epoch_executed='1631437557.69' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506303/ft1_4FGL_J1522.1+3144_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506303/ft2_4FGL_J1522.1+3144_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506303/ft1_4FGL_J1522.1+3144_daily_bin158.fits outfile=/scratch/kocevski/506303/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin158.fits ra=230.545 dec=31.7395 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.30
user 4.04
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506303/ft1_filtered_4FGL_J1522.1+3144_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/506303/ft2_4FGL_J1522.1+3144_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/506303/ltcube_280281601_280540801_4FGL_J1522.1+3144_daily_bin158.fits outfile=/scratch/kocevski/506303/expmap_280281601_280540801_4FGL_J1522.1+3144_daily_bin158.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/506303/ltcube_280281601_280540801_4FGL_J1522.1+3144_daily_bin158.fits
.....................!
real 192.34
user 187.47
sys 4.50

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/506303/ft1_filtered_4FGL_J1522.1+3144_daily_bin158.fits scfile=/scratch/kocevski/506303/ft2_4FGL_J1522.1+3144_daily_bin158.fits outfile=/scratch/kocevski/506303/cmap_280281601_280540801_4FGL_J1522.1+3144_daily_bin158.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506303/ft1_filtered_4FGL_J1522.1+3144_daily_bin158.fits scfile=/scratch/kocevski/506303/ft2_4FGL_J1522.1+3144_daily_bin158.fits outfile=/scratch/kocevski/506303/cmap_HighResolution_280281601_280540801_4FGL_J1522.1+3144_daily_bin158.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.455       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.430       1.0000         .10000E-03   10000.    
     9 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3375       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    30.475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5187       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4854       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.921       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13545E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80920       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=   7682.664     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2333 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.342        8.8894       -.21148E-06   -.14652E-04
   2  Prefactor     48.459        43.360        .37849E-05    .83079E-04
   3  norm          6.8550        4.3113       -.70704E-06   -.24524E-03
   4  Prefactor     .10000E-03    23.480        .97786E-05** at limit **
   5  norm          4.1843        4.4171        .10916E-06    .82421E-04
   6  Prefactor     .10000E-03    5.3419       -.63930E-06** at limit **
   7  Prefactor     3.5427        4.1615        .99188E-06   -.18959E-02
   8  Prefactor     25.431        10.442       -.35652E-07   -.19479E-04
   9  norm          .10000E-03    .90853       -.22976E-06** at limit **
  10  Prefactor     .10000E-03    25.060       -.10246E-04** at limit **
  11  Prefactor     2.3382        8.3355        .96853E-07   -.93194E-04
  12  Prefactor     15.317        15.488        .52700E-06    .28636E-04
  13  Prefactor     .10000E-03    5.5175        .43355E-06** at limit **
  14  norm          30.477        2.8141        .24479E-08    .32979E-04
  15  Prefactor     .10000E-03    4.8752        .41551E-07** at limit **
  16  Prefactor     .10000E-03    9.8702       -.33619E-06** at limit **
  17  Prefactor     4.5165        10.733        .39513E-06   -.53038E-03
  18  norm          .10000E-03    5.5309        .46720E-06** at limit **
  19  Prefactor     1.4857        1.8089        .45110E-07   -.99125E-04
  20  Prefactor     3.3064        11.086        .37074E-07   -.30416E-04
  21  Prefactor     24.922        13.482        .18165E-06    .16415E-04
  22  Prefactor     .10000E-03    1.6654        .14282E-06** at limit **
  23  Normalizat    1.1040        .18487        .52761E-07   -.56105E-04
  24  Prefactor     .80939        .14589       -.34205E-06   -.38964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.3417
  Prefactor  = 48.4592
  norm       = 6.85503
  Prefactor  = 0.000100001
  norm       = 4.18427
  Prefactor  = 0.0001
  Prefactor  = 3.54275
  Prefactor  = 25.4313
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.3382
  Prefactor  = 15.3171
  Prefactor  = 0.0001
  norm       = 30.4769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51651
  norm       = 0.0001
  Prefactor  = 1.48568
  Prefactor  = 3.30642
  Prefactor  = 24.9216
  Prefactor  = 0.000100001
  Normalizat = 1.10399
  Prefactor  = 0.80939
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.664     FROM HESSE     STATUS=OK           403 CALLS     2736 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.342        8.9036        .73966E-04   -1.4624    
   2  Prefactor     48.459        43.485        .57606E-04   -1.4315    
   3  norm          6.8550        4.3190        .14033E-03   -1.5184    
   4  Prefactor     .10000E-03    23.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1843        4.4240        .18486E-03   -1.5299    
   6  Prefactor     .10000E-03    5.3690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5427        6.7611        .10735E-02   -1.5332    
   8  Prefactor     25.431        10.442        .79438E-04   -1.4699    
   9  norm          .10000E-03    1.7819        .15910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3382        8.3371        .26819E-03   -1.5402    
  12  Prefactor     15.317        15.506        .10234E-03   -1.4925    
  13  Prefactor     .10000E-03    5.5261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          30.477        2.8185        .42377E-04   -1.4603    
  15  Prefactor     .10000E-03    4.8854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5165        11.256        .94696E-03   -1.5283    
  18  norm          .10000E-03    5.5394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4857        1.7900        .12553E-03   -1.5464    
  20  Prefactor     3.3064        11.069        .22265E-03   -1.5344    
  21  Prefactor     24.922        13.482        .80244E-04   -1.4709    
  22  Prefactor     .10000E-03    8.3253        .21780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1040        .21537        .28050E-03   -.89624    
  24  Prefactor     .80939        .17060        .26252E-03   -.99383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69404e-09
Minuit parameter uncertainties:
  1  8.90401
  2  43.5134
  3  4.31918
  4  0.000374032
  5  4.42437
  6  1.20635e-05
  7  6.76256
  8  10.4426
  9  3.33682e-06
  10  0.000430908
  11  8.34125
  12  15.5103
  13  5.01048e-06
  14  2.81847
  15  9.08342e-07
  16  8.7418e-06
  17  11.261
  18  1.00415e-05
  19  1.79005
  20  11.0759
  21  13.4839
  22  0.000139193
  23  0.215542
  24  0.170709
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  3.048e+01  2.818e+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:  8.094e-01  1.707e-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.104e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 431.79
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.94e-07 +/- 9.19e-08
Energy Flux (Fixed Index): 3.13e-04 +/- 2.90e-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) = 7681.42371193
delta logL = 1.24050088212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7681.09974704
delta logL = 1.5644657671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.032       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1914       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77013       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=   7681.100     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.034        3.5471        .17430E-02   -.25740E-03
   2  alpha         2.1914        .10517        .69484E-01    .23585E-04
   3  Normalizat    1.1704        .18050        .62017E-01    .99436E-05
   4  Prefactor     .77017        .14466        .43327E-01    .18329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.0335
  alpha      = 2.19137
  Normalizat = 1.17043
  Prefactor  = 0.770169
 **********
 **   18 **HESSE 
 **********

 FCN=   7681.100     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.034        3.2975        .44766E-04   -1.4558    
   2  alpha         2.1914        .98479E-01    .30633E-03   -.12377    
   3  Normalizat    1.1704        .21160        .27430E-03   -.87522    
   4  Prefactor     .77017        .16908        .26832E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67815e-12
Minuit parameter uncertainties:
  1  3.29753
  2  0.0985049
  3  0.211752
  4  0.169191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506303': 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) = 7681.09974694
delta logL = 1.56446587488

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  3.303e+01  3.298e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.191e+00  9.850e-02  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.702e-01  1.692e-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.170e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 427.12
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.19 +/- 0.10
Photon Flux (Free Index): 9.26e-07 +/- 9.54e-08
Energy Flux (Free Index): 3.59e-04 +/- 4.56e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-07', energy_flux2='3.59e-04', photon_flux_error='9.19e-08', dlogl='1.56e+00', energy_flux='3.13e-04', photon_flux2='9.26e-07', job_status='DONE', time_completed='2021-09-12 02:17:02.043326', photon_index_error2='0.10', photon_index2='2.19', ts='431.79', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='4.56e-05', EG='1.10', time_epoch_completed='1631438222.04', return_code='0', job_id='506303', GAL2='0.77', EG2='1.17', return_code2='0', energy_flux_error='2.90e-05', photon_flux_error2='9.54e-08', ts2='427.12', photon_index='2.37' WHERE bin_id='158' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:17:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 506303: <4FGL_J1522.1+3144_daily_bin158> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin158> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:05:40 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:05:41 2021
Terminated at Sun Sep 12 02:17:02 2021
Results reported at Sun Sep 12 02:17:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin158 230.545 31.7395 280281601 280540801 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

