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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin824
RA = 230.545, Dec = 31.7395
tmin = 452908801, tmax = 453168001
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='510064', job_status='RUN', time_executed='2021-09-12 02:19:50.771040', time_epoch_executed='1631438390.77' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510064/ft1_4FGL_J1522.1+3144_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510064/ft1_4FGL_J1522.1+3144_daily_bin824.fits outfile=/scratch/kocevski/510064/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin824.fits ra=230.545 dec=31.7395 rad=12.0 tmin=452908801.0 tmax=453168001.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.09
user 2.87
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510064/ft1_filtered_4FGL_J1522.1+3144_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/510064/ltcube_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.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/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits
.....................!
real 8.68
user 8.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510064/ft1_filtered_4FGL_J1522.1+3144_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/510064/ltcube_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.fits outfile=/scratch/kocevski/510064/expmap_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.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/510064/ltcube_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.fits
.....................!
real 140.52
user 136.81
sys 3.49

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/510064/ft1_filtered_4FGL_J1522.1+3144_daily_bin824.fits scfile=/scratch/kocevski/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits outfile=/scratch/kocevski/510064/cmap_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510064/ft1_filtered_4FGL_J1522.1+3144_daily_bin824.fits scfile=/scratch/kocevski/510064/ft2_4FGL_J1522.1+3144_daily_bin824.fits outfile=/scratch/kocevski/510064/cmap_HighResolution_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    62.972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.6688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37906E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
    18 'norm      '    .22234E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9511       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53544       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1783       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=   6729.790     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2765 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6019        4.8982        .33536E-06   -.42144E-04
   2  Prefactor     .10000E-03    20.333        .14305E-05** at limit **
   3  norm          62.968        10.623        .45385E-07    .17214E-04
   4  Prefactor     .10000E-03    18.336       -.16250E-05** at limit **
   5  norm          .10000E-03    3.2900       -.12227E-07** at limit **
   6  Prefactor     .10000E-03    5.9952        .13556E-06** at limit **
   7  Prefactor     10.842        7.5527        .22026E-06    .36969E-05
   8  Prefactor     .10000E-03    3.4809        .41942E-07** at limit **
   9  norm          1.9657        1.6507        .39011E-07    .10255E-03
  10  Prefactor     45.709        66.721       -.13320E-05    .44942E-06
  11  Prefactor     25.221        12.363        .70829E-07    .84489E-04
  12  Prefactor     .10000E-03    9.1992        .15142E-07** at limit **
  13  Prefactor     .10000E-03    5.9554       -.73024E-07** at limit **
  14  norm          6.6681        2.0224        .22902E-06    .29934E-02
  15  Prefactor     .10106E-03    8.8360       -.20553E-05** at limit **
  16  Prefactor     58.100        47.445       -.34259E-05   -.40662E-04
  17  Prefactor     12.620        18.243        .23708E-05    .61675E-03
  18  norm          .10032E-03    13.580       -.85299E-06** at limit **
  19  Prefactor     .10000E-03    .66283        .11214E-07** at limit **
  20  Prefactor     .10000E-03    13.751        .31870E-06** at limit **
  21  Prefactor     8.2644        17.204        .12244E-05    .75407E-04
  22  Prefactor     5.9535        3.9592        .12719E-05   -.25500E-03
  23  Normalizat    .53567        .19405       -.13938E-05    .26037E-03
  24  Prefactor     1.1781        .15556       -.48716E-07    .33092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60188
  Prefactor  = 0.0001
  norm       = 62.9685
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.842
  Prefactor  = 0.0001
  norm       = 1.96572
  Prefactor  = 45.7092
  Prefactor  = 25.2214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.66811
  Prefactor  = 0.000101061
  Prefactor  = 58.1002
  Prefactor  = 12.6199
  norm       = 0.000100324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26443
  Prefactor  = 5.95348
  Normalizat = 0.535669
  Prefactor  = 1.17813
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.790     FROM HESSE     STATUS=OK           401 CALLS     3166 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6019        4.8935        .24079E-03   -1.5385    
   2  Prefactor     .10000E-03    20.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          62.968        10.620        .50568E-04   -1.4119    
   4  Prefactor     .10000E-03    18.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2952        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.842        7.5543        .60838E-03   -1.5049    
   8  Prefactor     .10000E-03    3.4897        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9657        1.6366        .88055E-04   -1.5428    
  10  Prefactor     45.709        66.672        .59301E-04   -1.4355    
  11  Prefactor     25.221        12.368        .79757E-04   -1.4703    
  12  Prefactor     .10000E-03    9.2214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6681        1.8472        .54225E-04   -1.5191    
  15  Prefactor     .10106E-03    54.349        .37530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.100        45.853        .52619E-04   -1.4182    
  17  Prefactor     12.620        21.720        .11275E-03   -1.4997    
  18  norm          .10032E-03    17.771        .83127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .66564        .65208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2644        17.225        .13945E-03   -1.5133    
  22  Prefactor     5.9535        4.3498        .70009E-03   -1.5220    
  23  Normalizat    .53567        .21018        .35921E-03   -1.1079    
  24  Prefactor     1.1781        .17175        .20889E-03   -.87007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13157e-08
Minuit parameter uncertainties:
  1  4.89422
  2  0.00017946
  3  10.6206
  4  0.000182435
  5  3.97594e-07
  6  1.17034e-05
  7  7.55495
  8  3.44514e-06
  9  1.6366
  10  66.7813
  11  12.3689
  12  4.93624e-06
  13  3.01782e-06
  14  1.84727
  15  0.0152032
  16  45.8809
  17  21.7332
  18  0.00479801
  19  2.26061e-06
  20  3.55141e-05
  21  17.2354
  22  4.35006
  23  0.210491
  24  0.171828
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.668e+00  1.847e+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:  1.178e+00  1.718e-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:  5.357e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.35
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.18e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 6.85e-05 +/- 1.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) = 6729.67916735
delta logL = 0.111190965469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6729.67036614
delta logL = 0.119992169777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7862       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2306       1.0000          .0000       5.0000    
     3 'Normalizat'    .55927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1659       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=   6729.670     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7866        2.2548        .38506E-02    .78422E-04
   2  alpha         2.2306        .32422        .19767        .48745E-05
   3  Normalizat    .55927        .18670        .79522E-01    .36829E-04
   4  Prefactor     1.1659        .15320        .35492E-01   -.35407E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.78658
  alpha      = 2.23057
  Normalizat = 0.559271
  Prefactor  = 1.16594
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.670     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .23E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7866        1.8865        .56091E-04   -1.5187    
   2  alpha         2.2306        .28224        .83625E-02   -.10798    
   3  Normalizat    .55927        .20693        .35219E-03   -1.0974    
   4  Prefactor     1.1659        .16932        .20986E-03   -.87386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27719e-14
Minuit parameter uncertainties:
  1  1.88657
  2  0.282855
  3  0.207211
  4  0.169399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510064': 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) = 6729.67036587
delta logL = 0.119992441411

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.787e+00  1.887e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  2.829e-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:  1.166e+00  1.694e-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:  5.593e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.32
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.23 +/- 0.28
Photon Flux (Free Index): 1.96e-07 +/- 6.95e-08
Energy Flux (Free Index): 7.24e-05 +/- 2.23e-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/510064/cmap_HighResolution_452908801_453168001_4FGL_J1522.1+3144_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-07', energy_flux2='7.24e-05', photon_flux_error='6.02e-08', dlogl='1.20e-01', energy_flux='6.85e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-12 02:27:38.484101', photon_index_error2='0.28', photon_index2='2.23', ts='34.35', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='0.54', time_epoch_completed='1631438858.48', return_code='0', job_id='510064', GAL2='1.17', EG2='0.56', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.95e-08', ts2='34.32', photon_index='2.37' WHERE bin_id='824' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 510064: <4FGL_J1522.1+3144_daily_bin824> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin824 230.545 31.7395 452908801 453168001 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 :                                   465.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

