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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1116
RA = 230.545, Dec = 31.7395
tmin = 528595201, tmax = 528854401
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='511938', job_status='RUN', time_executed='2021-09-12 02:23:52.967665', time_epoch_executed='1631438632.97' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511938/ft1_4FGL_J1522.1+3144_daily_bin1116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511938/ft2_4FGL_J1522.1+3144_daily_bin1116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511938/ft1_4FGL_J1522.1+3144_daily_bin1116.fits outfile=/scratch/kocevski/511938/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1116.fits ra=230.545 dec=31.7395 rad=12.0 tmin=528595201.0 tmax=528854401.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.46
user 3.22
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511938/ft1_filtered_4FGL_J1522.1+3144_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/511938/ft2_4FGL_J1522.1+3144_daily_bin1116.fits sctable="SC_DATA" expcube=/scratch/kocevski/511938/ltcube_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.fits outfile=/scratch/kocevski/511938/expmap_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.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/511938/ltcube_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.fits
.....................!
real 192.13
user 185.45
sys 5.41

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/511938/ft1_filtered_4FGL_J1522.1+3144_daily_bin1116.fits scfile=/scratch/kocevski/511938/ft2_4FGL_J1522.1+3144_daily_bin1116.fits outfile=/scratch/kocevski/511938/cmap_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511938/ft1_filtered_4FGL_J1522.1+3144_daily_bin1116.fits scfile=/scratch/kocevski/511938/ft2_4FGL_J1522.1+3144_daily_bin1116.fits outfile=/scratch/kocevski/511938/cmap_HighResolution_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.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.52
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.919       1.0000         .10000E-03   10000.    
     5 'norm      '    .69046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86424       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2875       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4775       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65674       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=   6242.414     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2365 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0357        .15709E-07** at limit **
   2  Prefactor     .10000E-03    58.787       -.66515E-06** at limit **
   3  norm          2.6206        3.2646        .40996E-07   -.10931E-03
   4  Prefactor     11.916        32.687       -.34905E-06   -.29172E-04
   5  norm          .10002E-03    4.9099       -.59553E-06** at limit **
   6  Prefactor     .10000E-03    7.0531        .26130E-07** at limit **
   7  Prefactor     .10000E-03    2.5147        .10303E-07** at limit **
   8  Prefactor     .86407        6.4554        .28731E-05   -.13872E-03
   9  norm          .10000E-03    .54778        .37300E-07** at limit **
  10  Prefactor     .10000E-03    26.497        .15644E-05** at limit **
  11  Prefactor     .10000E-03    3.5484        .17360E-07** at limit **
  12  Prefactor     .10000E-03    18.854       -.18937E-05** at limit **
  13  Prefactor     .10000E-03    10.996       -.22367E-06** at limit **
  14  norm          4.2452        1.3976        .66308E-08   -.42990E-04
  15  Prefactor     .10000E-03    4.0838       -.19945E-07** at limit **
  16  Prefactor     2.2860        65.533        .95048E-06   -.86512E-05
  17  Prefactor     .10000E-03    16.586       -.18271E-06** at limit **
  18  norm          5.1872        11.740        .22074E-06   -.56934E-05
  19  Prefactor     .10000E-03    1.1513        .55672E-07** at limit **
  20  Prefactor     .10000E-03    14.998        .10128E-05** at limit **
  21  Prefactor     .10000E-03    15.516        .33285E-06** at limit **
  22  Prefactor     .10000E-03    1.1899        .19068E-07** at limit **
  23  Normalizat    1.4775        .17641       -.33123E-07   -.34602E-04
  24  Prefactor     .65680        .14062       -.39976E-06   -.20582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62057
  Prefactor  = 11.9159
  norm       = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.864066
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.24518
  Prefactor  = 0.0001
  Prefactor  = 2.286
  Prefactor  = 0.0001
  norm       = 5.18718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.47747
  Prefactor  = 0.656796
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.414     FROM HESSE     STATUS=OK           395 CALLS     2760 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0638        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6206        3.2569        .15504E-03   -1.5384    
   4  Prefactor     11.916        32.963        .11603E-03   -1.5017    
   5  norm          .10002E-03    25.860        .33359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5217        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .86407        6.6975        .39514E-03   -1.5522    
   9  norm          .10000E-03    .80795        .11316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5633        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2452        1.3995        .50796E-04   -1.5296    
  15  Prefactor     .10000E-03    4.1014        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2860        65.602        .27142E-03   -1.5406    
  17  Prefactor     .10000E-03    16.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1872        11.724        .17647E-03   -1.5252    
  19  Prefactor     .10000E-03    1.8258        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.2038        .84159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4775        .20438        .21641E-03   -.78413    
  24  Prefactor     .65680        .16274        .25247E-03   -1.0525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99286e-10
Minuit parameter uncertainties:
  1  1.99522e-06
  2  0.000228844
  3  3.25714
  4  33.0129
  5  0.00148142
  6  5.53295e-06
  7  6.86051e-07
  8  4.81172
  9  6.72693e-07
  10  0.000368401
  11  9.91086e-07
  12  0.000351139
  13  2.08781e-05
  14  1.39954
  15  4.9054e-07
  16  24.5213
  17  3.24304e-05
  18  11.7292
  19  1.89778e-07
  20  0.000170434
  21  3.86339e-05
  22  4.9824e-07
  23  0.204493
  24  0.162862
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  6.568e-01  1.629e-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.477e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.39
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 1.44e-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) = 6242.19173344
delta logL = 0.22262057361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6242.18739071
delta logL = 0.226963305079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3477       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1079       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63860       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=   6242.187     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3473        2.0133        .48294E-02    .14449E-03
   2  alpha         2.1086        .45765        .25993        .31708E-05
   3  Normalizat    1.5115        .17508        .48542E-01    .68196E-04
   4  Prefactor     .63846        .14051        .41578E-01    .45227E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.34732
  alpha      = 2.10858
  Normalizat = 1.51149
  Prefactor  = 0.638462
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.187     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3473        1.5104        .54485E-04   -1.5291    
   2  alpha         2.1086        .38189        .10359E-01   -.15721    
   3  Normalizat    1.5115        .20442        .21459E-03   -.77456    
   4  Prefactor     .63846        .16220        .25571E-03   -1.0599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57948e-12
Minuit parameter uncertainties:
  1  1.5104
  2  0.383434
  3  0.20453
  4  0.162323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511938': 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) = 6242.18738805
delta logL = 0.226965966702

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  6.385e-01  1.623e-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.511e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.80
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.11 +/- 0.38
Photon Flux (Free Index): 1.14e-07 +/- 5.38e-08
Energy Flux (Free Index): 4.98e-05 +/- 2.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/511938/cmap_HighResolution_528595201_528854401_4FGL_J1522.1+3144_daily_bin1116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='4.98e-05', photon_flux_error='4.56e-08', dlogl='2.27e-01', energy_flux='4.36e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-12 02:34:33.973175', photon_index_error2='0.38', photon_index2='2.11', ts='24.39', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.48', time_epoch_completed='1631439273.97', return_code='0', job_id='511938', GAL2='0.64', EG2='1.51', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.38e-08', ts2='24.80', photon_index='2.37' WHERE bin_id='1116' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 511938: <4FGL_J1522.1+3144_daily_bin1116> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1116 230.545 31.7395 528595201 528854401 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 :                                   589.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

