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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1182
RA = 230.545, Dec = 31.7395
tmin = 545702401, tmax = 545961601
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='512028', job_status='RUN', time_executed='2021-09-12 02:21:18.648438', time_epoch_executed='1631438478.65' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512028/ft1_4FGL_J1522.1+3144_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512028/ft1_4FGL_J1522.1+3144_daily_bin1182.fits outfile=/scratch/kocevski/512028/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1182.fits ra=230.545 dec=31.7395 rad=12.0 tmin=545702401.0 tmax=545961601.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.02
user 3.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512028/ft1_filtered_4FGL_J1522.1+3144_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/512028/ltcube_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.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/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits
.....................!
real 11.98
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512028/ft1_filtered_4FGL_J1522.1+3144_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/512028/ltcube_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.fits outfile=/scratch/kocevski/512028/expmap_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.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/512028/ltcube_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.fits
.....................!
real 190.74
user 185.31
sys 4.97

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/512028/ft1_filtered_4FGL_J1522.1+3144_daily_bin1182.fits scfile=/scratch/kocevski/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits outfile=/scratch/kocevski/512028/cmap_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.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/512028/ft1_filtered_4FGL_J1522.1+3144_daily_bin1182.fits scfile=/scratch/kocevski/512028/ft2_4FGL_J1522.1+3144_daily_bin1182.fits outfile=/scratch/kocevski/512028/cmap_HighResolution_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.172       1.0000         .10000E-03   10000.    
     5 'norm      '    28.826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8191       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37342E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5681       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .38109       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=   1651.112     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2639 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.681       -.31707E-06** at limit **
   2  Prefactor     .10000E-03    105.01       -.24754E-06** at limit **
   3  norm          9.0776        6.9891       -.31979E-06    .32214E-04
   4  Prefactor     31.023        86.395       -.84334E-05   -.70524E-04
   5  norm          28.821        31.436       -.30345E-06    .12741E-04
   6  Prefactor     .10000E-03    34.099       -.15215E-05** at limit **
   7  Prefactor     .10000E-03    8.9684       -.11761E-06** at limit **
   8  Prefactor     3.8194        7.7806        .10135E-06    .44755E-04
   9  norm          .10000E-03    2.5125       -.10298E-06** at limit **
  10  Prefactor     .10000E-03    330.61        .50256E-06** at limit **
  11  Prefactor     .10000E-03    13.943        .46975E-06** at limit **
  12  Prefactor     .10000E-03    130.48        .68133E-06** at limit **
  13  Prefactor     .10000E-03    246.89        .74872E-06** at limit **
  14  norm          7.4375        4.8091       -.14478E-05   -.91535E-03
  15  Prefactor     .10000E-03    75.291        .77994E-06** at limit **
  16  Prefactor     .10000E-03    120.42        .10325E-05** at limit **
  17  Prefactor     .10000E-03    48.153        .41413E-06** at limit **
  18  norm          .10000E-03    30.964       -.20520E-06** at limit **
  19  Prefactor     .10000E-03    2.8709        .29654E-06** at limit **
  20  Prefactor     .10001E-03    362.61       -.18142E-05** at limit **
  21  Prefactor     .10000E-03    25.349        .78742E-06** at limit **
  22  Prefactor     .10000E-03    17.049        .27074E-07** at limit **
  23  Normalizat    1.5694        .47845        .16391E-04   -.15452E-03
  24  Prefactor     .38031        .28534       -.18010E-04   -.23547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.07757
  Prefactor  = 31.0225
  norm       = 28.8207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 7.43749
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.56938
  Prefactor  = 0.380308
 **********
 **   18 **HESSE 
 **********

 FCN=   1651.112     FROM HESSE     STATUS=OK           381 CALLS     3020 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.720        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    105.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0776        6.9860        .90135E-04   -1.5105    
   4  Prefactor     31.023        86.824        .71765E-04   -1.4593    
   5  norm          28.821        31.429        .74621E-04   -1.4634    
   6  Prefactor     .10000E-03    34.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9690        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8194        7.7628        .15540E-03   -1.5317    
   9  norm          .10000E-03    2.5130        .62911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    331.05        .21295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.002        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    130.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    247.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4375        4.8720        .67567E-04   -1.5162    
  15  Prefactor     .10000E-03    76.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    120.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    30.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8847        .67274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    363.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.056        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5694        .47930        .22977E-03   -.75847    
  24  Prefactor     .38031        .28634        .27669E-03   -1.1783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72794e-10
Minuit parameter uncertainties:
  1  2.98783e-05
  2  0.000209299
  3  6.98659
  4  87.181
  5  31.4475
  6  0.000237349
  7  9.2684e-06
  8  7.76489
  9  3.70135e-06
  10  0.000607864
  11  5.34195e-05
  12  0.000792529
  13  0.00119022
  14  4.87223
  15  0.000557953
  16  0.000946092
  17  0.000284617
  18  0.000115787
  19  1.66468e-05
  20  0.00348617
  21  0.000150269
  22  1.90375e-05
  23  0.48071
  24  0.287421
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  3.803e-01  2.874e-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.569e+00  4.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.43e-07 +/- 1.59e-07
Energy Flux (Fixed Index): 7.64e-05 +/- 5.01e-05

TS (Fixed Index): 3.52
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 5.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512028/likelihoodResults_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.txt

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) = 1651.05638727
delta logL = 0.0553861394887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1651.04905113
delta logL = 0.0627222761666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1043       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6221       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40116       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=   1651.049     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1039        4.9734        .63695E-04    .28027E-02
   2  alpha         2.6223        .73684        .96824E-02    .18686E-03
   3  Normalizat    1.5282        .46416        .23214E-03   -.50591E-04
   4  Prefactor     .40107        .28719        .27010E-03   -.55727E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10385
  alpha      = 2.62229
  Normalizat = 1.52816
  Prefactor  = 0.401069
 **********
 **   18 **HESSE 
 **********

 FCN=   1651.049     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1039        4.9138        .12739E-04   -1.5175    
   2  alpha         2.6223        .72792        .38729E-03    .48935E-01
   3  Normalizat    1.5282        .46465        .46429E-04   -.76990    
   4  Prefactor     .40107        .28733        .10804E-04   -1.1675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49875e-09
Minuit parameter uncertainties:
  1  4.91412
  2  0.738649
  3  0.465964
  4  0.288363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512028': 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) = 1651.04905097
delta logL = 0.0627224364441

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.104e+00  4.914e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.622e+00  7.386e-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:  4.011e-01  2.884e-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.528e+00  4.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.62 +/- 0.74
Photon Flux (Free Index): 2.95e-07 +/- 2.31e-07
Energy Flux (Free Index): 7.45e-05 +/- 4.76e-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/512028/cmap_HighResolution_545702401_545961601_4FGL_J1522.1+3144_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-04', comment='SUCCESS', photon_flux='2.43e-07', energy_flux2='7.45e-05', photon_flux_error='1.59e-07', dlogl='6.27e-02', energy_flux='7.64e-05', photon_flux2='2.95e-07', job_status='DONE', time_completed='2021-09-12 02:28:22.561387', photon_index_error2='0.74', photon_index2='2.62', ts='3.52', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='5.68e-07', energy_flux_error2='4.76e-05', EG='1.57', time_epoch_completed='1631438902.56', return_code='0', job_id='512028', GAL2='0.40', EG2='1.53', return_code2='0', energy_flux_error='5.01e-05', photon_flux_error2='2.31e-07', ts2='3.65', photon_index='2.37' WHERE bin_id='1182' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:28:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 512028: <4FGL_J1522.1+3144_daily_bin1182> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1182> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:20:59 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:21:01 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:21:01 2021
Terminated at Sun Sep 12 02:28:23 2021
Results reported at Sun Sep 12 02:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1182 230.545 31.7395 545702401 545961601 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 :                                   409.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   441 sec.
    Turnaround time :                            444 sec.

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

