/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 214 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin18
RA = 230.545, Dec = 31.7395
tmin = 243993601, tmax = 244252801
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='506082', job_status='RUN', time_executed='2021-09-12 02:09:06.531414', time_epoch_executed='1631437746.53' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506082/ft1_4FGL_J1522.1+3144_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506082/ft2_4FGL_J1522.1+3144_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506082/ft1_4FGL_J1522.1+3144_daily_bin18.fits outfile=/scratch/kocevski/506082/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin18.fits ra=230.545 dec=31.7395 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.42
user 1.21
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506082/ft1_filtered_4FGL_J1522.1+3144_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/506082/ft2_4FGL_J1522.1+3144_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/506082/ltcube_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.fits outfile=/scratch/kocevski/506082/expmap_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.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/506082/ltcube_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.fits
.....................!
real 191.93
user 186.90
sys 4.60

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/506082/ft1_filtered_4FGL_J1522.1+3144_daily_bin18.fits scfile=/scratch/kocevski/506082/ft2_4FGL_J1522.1+3144_daily_bin18.fits outfile=/scratch/kocevski/506082/cmap_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=230.545 yref=31.7395 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506082/ft1_filtered_4FGL_J1522.1+3144_daily_bin18.fits scfile=/scratch/kocevski/506082/ft2_4FGL_J1522.1+3144_daily_bin18.fits outfile=/scratch/kocevski/506082/cmap_HighResolution_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.618       1.0000         .10000E-03   10000.    
     5 'norm      '    12.662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.047       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0000       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11889E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5169       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91588       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=   5043.550     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2684 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9200        .39434E-07** at limit **
   2  Prefactor     .10000E-03    27.479       -.73585E-07** at limit **
   3  norm          .10000E-03    2.6284       -.16178E-08** at limit **
   4  Prefactor     69.662        50.467        .16493E-05    .69393E-04
   5  norm          12.664        9.8766       -.28266E-07   -.21396E-04
   6  Prefactor     .10000E-03    15.100        .60527E-06** at limit **
   7  Prefactor     34.141        12.705        .28037E-06   -.44333E-04
   8  Prefactor     .10000E-03    3.8097       -.10591E-06** at limit **
   9  norm          .10000E-03    .70765        .75567E-07** at limit **
  10  Prefactor     59.984        52.401        .29655E-06    .13318E-04
  11  Prefactor     3.3688        7.8584        .51211E-06    .82682E-04
  12  Prefactor     19.784        19.180        .19046E-06    .93076E-05
  13  Prefactor     19.056        21.583        .47687E-06    .24600E-04
  14  norm          5.0011        1.7916        .47510E-07   -.22174E-03
  15  Prefactor     .10000E-03    6.5526       -.84621E-06** at limit **
  16  Prefactor     1.7991        67.770       -.11977E-05   -.20927E-04
  17  Prefactor     .10000E-03    23.524        .11226E-05** at limit **
  18  norm          19.727        17.570        .88783E-06    .86399E-04
  19  Prefactor     2.6467        2.3831       -.30304E-07   -.87766E-04
  20  Prefactor     .10000E-03    9.0040        .11191E-08** at limit **
  21  Prefactor     .10000E-03    5.3694       -.10520E-06** at limit **
  22  Prefactor     2.5183        3.6846        .43242E-06    .12331E-03
  23  Normalizat    .90267        .24513       -.67477E-05    .15176E-05
  24  Prefactor     .91663        .18414        .46156E-05   -.89584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.6618
  norm       = 12.6639
  Prefactor  = 0.0001
  Prefactor  = 34.1413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.9839
  Prefactor  = 3.36878
  Prefactor  = 19.7835
  Prefactor  = 19.0562
  norm       = 5.00107
  Prefactor  = 0.0001
  Prefactor  = 1.79911
  Prefactor  = 0.0001
  norm       = 19.7269
  Prefactor  = 2.64672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51831
  Normalizat = 0.902672
  Prefactor  = 0.916633
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.550     FROM HESSE     STATUS=OK           399 CALLS     3083 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6514        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.662        50.712        .48109E-04   -1.4037    
   5  norm          12.664        9.8749        .11257E-03   -1.4996    
   6  Prefactor     .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.141        12.660        .68595E-04   -1.4539    
   8  Prefactor     .10000E-03    3.8330        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .71634        .58216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.984        52.412        .25904E-03   -1.4157    
  11  Prefactor     3.3688        7.8814        .22041E-03   -1.5341    
  12  Prefactor     19.784        19.170        .90058E-04   -1.4818    
  13  Prefactor     19.056        21.574        .91772E-04   -1.4835    
  14  norm          5.0011        1.7920        .53117E-04   -1.5261    
  15  Prefactor     .10000E-03    6.6043        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7991        69.279        .30826E-03   -1.5440    
  17  Prefactor     .10000E-03    23.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.727        17.556        .90197E-04   -1.4819    
  19  Prefactor     2.6467        2.3838        .99718E-04   -1.5383    
  20  Prefactor     .10000E-03    9.0073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3804        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5183        3.6783        .15828E-03   -1.5391    
  23  Normalizat    .90267        .24595        .26849E-03   -.96366    
  24  Prefactor     .91663        .18488        .21638E-03   -.95562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28628e-10
Minuit parameter uncertainties:
  1  3.52144e-05
  2  2.03891e-06
  3  8.39839e-07
  4  50.7433
  5  9.87617
  6  5.76635e-05
  7  12.661
  8  4.23923e-06
  9  2.72477e-06
  10  52.4522
  11  7.88387
  12  19.1762
  13  21.5832
  14  1.79203
  15  4.4851e-05
  16  22.3558
  17  0.000131465
  18  17.5609
  19  2.38386
  20  4.20948e-06
  21  2.64944e-06
  22  3.67858
  23  0.246257
  24  0.185007
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  5.001e+00  1.792e+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:  9.166e-01  1.850e-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:  9.027e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.27
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 5.84e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 1.84e-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) = 5042.97716106
delta logL = 0.572547006016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.97675318
delta logL = 0.572954885862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1514       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7980       1.0000          .0000       5.0000    
     3 'Normalizat'    .84612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94766       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=   5042.977     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      231 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1511        18.978        .49456E-02    .14565E-03
   2  alpha         2.7981        3.8939        .18864        .38466E-04
   3  Normalizat    .84581        .13331        .44209E-01    .15305E-04
   4  Prefactor     .94789        .10462        .45610E-01    .56620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.15111
  alpha      = 2.7981
  Normalizat = 0.845815
  Prefactor  = 0.947887
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.977     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1511        1.8468        .44334E-04   -1.5300    
   2  alpha         2.7981        .42750        .81015E-02    .11952    
   3  Normalizat    .84581        .22985        .27603E-03   -.98391    
   4  Prefactor     .94789        .18266        .21316E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3659e-12
Minuit parameter uncertainties:
  1  1.84684
  2  0.429645
  3  0.230116
  4  0.182783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506082': 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) = 5042.97675222
delta logL = 0.572955845873

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  4.151e+00  1.847e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.798e+00  4.296e-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:  9.479e-01  1.828e-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:  8.458e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.58
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.80 +/- 0.43
Photon Flux (Free Index): 2.07e-07 +/- 7.50e-08
Energy Flux (Free Index): 4.66e-05 +/- 1.59e-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/506082/cmap_HighResolution_243993601_244252801_4FGL_J1522.1+3144_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='4.66e-05', photon_flux_error='5.84e-08', dlogl='5.73e-01', energy_flux='5.14e-05', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-09-12 02:18:16.992612', photon_index_error2='0.43', photon_index2='2.80', ts='18.27', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.90', time_epoch_completed='1631438296.99', return_code='0', job_id='506082', GAL2='0.95', EG2='0.85', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.50e-08', ts2='19.58', photon_index='2.37' WHERE bin_id='18' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:18:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 506082: <4FGL_J1522.1+3144_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin18 230.545 31.7395 243993601 244252801 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 :                                   548.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

