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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin694
RA = 230.545, Dec = 31.7395
tmin = 419212801, tmax = 419472001
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='509807', job_status='RUN', time_executed='2021-09-12 02:15:44.753968', time_epoch_executed='1631438144.75' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509807/ft1_4FGL_J1522.1+3144_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509807/ft2_4FGL_J1522.1+3144_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509807/ft1_4FGL_J1522.1+3144_daily_bin694.fits outfile=/scratch/kocevski/509807/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin694.fits ra=230.545 dec=31.7395 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.46
user 5.16
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509807/ft1_filtered_4FGL_J1522.1+3144_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/509807/ft2_4FGL_J1522.1+3144_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/509807/ltcube_419212801_419472001_4FGL_J1522.1+3144_daily_bin694.fits outfile=/scratch/kocevski/509807/expmap_419212801_419472001_4FGL_J1522.1+3144_daily_bin694.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/509807/ltcube_419212801_419472001_4FGL_J1522.1+3144_daily_bin694.fits
.....................!
real 192.83
user 187.18
sys 5.25

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/509807/ft1_filtered_4FGL_J1522.1+3144_daily_bin694.fits scfile=/scratch/kocevski/509807/ft2_4FGL_J1522.1+3144_daily_bin694.fits outfile=/scratch/kocevski/509807/cmap_419212801_419472001_4FGL_J1522.1+3144_daily_bin694.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.58
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.922       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7322       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7370       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96905E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.6380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.994       1.0000         .10000E-03   10000.    
    18 'norm      '    .12477E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5460       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4341       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83214       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0050       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=   6314.077     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2866 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.801        11.067       -.40628E-05   -.16819E-03
   2  Prefactor     .10000E-03    215.24        .67006E-05** at limit **
   3  norm          8.9776        5.3880        .39563E-07   -.18718E-05
   4  Prefactor     18.970        40.523       -.11294E-04   -.40702E-04
   5  norm          7.8090        10.579        .51820E-05    .97159E-04
   6  Prefactor     10.978        12.696        .86680E-07    .19803E-05
   7  Prefactor     .10000E-03    5.0952        .29590E-07** at limit **
   8  Prefactor     1.7298        2.9245        .13554E-05   -.22852E-02
   9  norm          1.7375        2.2694        .27945E-07   -.11930E-03
  10  Prefactor     .10000E-03    72.539        .27915E-06** at limit **
  11  Prefactor     .10000E-03    2.6309        .59079E-09** at limit **
  12  Prefactor     .20720        19.771        .82982E-06   -.13167E-03
  13  Prefactor     .10000E-03    8.1788       -.20904E-07** at limit **
  14  norm          6.6385        2.5816       -.17873E-06    .14528E-05
  15  Prefactor     33.040        19.107        .63768E-06    .14979E-04
  16  Prefactor     .10000E-03    41.834        .25315E-06** at limit **
  17  Prefactor     20.004        22.669        .10753E-04    .20935E-03
  18  norm          .10003E-03    31.336       -.32467E-05** at limit **
  19  Prefactor     .10000E-03    .76916        .25958E-08** at limit **
  20  Prefactor     38.447        47.221       -.32591E-05   -.17340E-04
  21  Prefactor     7.5454        12.280        .98109E-06   -.54810E-06
  22  Prefactor     5.4353        3.8677       -.70741E-07   -.22417E-04
  23  Normalizat    .83153        .20528        .15855E-05   -.92551E-04
  24  Prefactor     1.0054        .14398       -.11288E-05    .74093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8006
  Prefactor  = 0.000100003
  norm       = 8.97764
  Prefactor  = 18.9696
  norm       = 7.80896
  Prefactor  = 10.9778
  Prefactor  = 0.0001
  Prefactor  = 1.72983
  norm       = 1.7375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.207201
  Prefactor  = 0.0001
  norm       = 6.6385
  Prefactor  = 33.0399
  Prefactor  = 0.0001
  Prefactor  = 20.0044
  norm       = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 38.4474
  Prefactor  = 7.54537
  Prefactor  = 5.43532
  Normalizat = 0.831534
  Prefactor  = 1.00538
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.077     FROM HESSE     STATUS=OK           409 CALLS     3275 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.801        11.058        .10412E-03   -1.4938    
   2  Prefactor     .10000E-03    218.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9776        5.3896        .13377E-03   -1.5109    
   4  Prefactor     18.970        40.774        .92074E-04   -1.4837    
   5  norm          7.8090        10.550        .14350E-03   -1.5149    
   6  Prefactor     10.978        12.690        .12092E-03   -1.5045    
   7  Prefactor     .10000E-03    5.1036        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7298        7.4919        .15947E-02   -1.5445    
   9  norm          1.7375        2.2547        .12917E-03   -1.5444    
  10  Prefactor     .10000E-03    72.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6365        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20720        22.371        .11406       -1.5617    
  13  Prefactor     .10000E-03    8.1798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6385        2.6012        .59813E-04   -1.5193    
  15  Prefactor     33.040        19.294        .69720E-04   -1.4558    
  16  Prefactor     .10000E-03    41.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.004        22.754        .89574E-04   -1.4813    
  18  norm          .10003E-03    32.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .77576        .68008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.447        47.252        .64626E-04   -1.4467    
  21  Prefactor     7.5454        12.295        .14599E-03   -1.5159    
  22  Prefactor     5.4353        3.8758        .12652E-03   -1.5242    
  23  Normalizat    .83153        .24273        .30382E-03   -.98909    
  24  Prefactor     1.0054        .17162        .21073E-03   -.92550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12269e-07
Minuit parameter uncertainties:
  1  11.06
  2  0.00149433
  3  5.38991
  4  40.8337
  5  10.553
  6  12.6928
  7  4.47527e-06
  8  7.20125
  9  2.25481
  10  7.21571e-05
  11  1.40937e-07
  12  4.30652
  13  1.24601e-06
  14  2.60128
  15  19.2978
  16  4.82742e-05
  17  22.7641
  18  0.00200451
  19  1.3413e-06
  20  47.298
  21  12.2987
  22  3.87597
  23  0.243049
  24  0.171711
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.638e+00  2.601e+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.005e+00  1.717e-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.315e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.29
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.17e-07 +/- 8.48e-08
Energy Flux (Fixed Index): 6.82e-05 +/- 2.67e-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) = 6313.43472451
delta logL = 0.642040951915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6313.42404368
delta logL = 0.65272177629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0613       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7633       1.0000          .0000       5.0000    
     3 'Normalizat'    .75412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       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=   6313.424     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      266 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0594        21.844        .40770E-02    .15627E-03
   2  alpha         2.7629        3.8502        .19277        .45627E-04
   3  Normalizat    .75420        .16078        .71570E-01    .81161E-05
   4  Prefactor     1.0430        .10552        .40336E-01   -.25647E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.0594
  alpha      = 2.76292
  Normalizat = 0.754203
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.424     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0594        2.0437        .50653E-04   -1.5216    
   2  alpha         2.7629        .35634        .81884E-02    .10536    
   3  Normalizat    .75420        .23143        .31674E-03   -1.0179    
   4  Prefactor     1.0430        .16951        .20721E-03   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31331e-10
Minuit parameter uncertainties:
  1  2.04375
  2  0.357573
  3  0.231728
  4  0.169598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509807': 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) = 6313.42404128
delta logL = 0.652724184364

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.059e+00  2.044e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.763e+00  3.576e-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.043e+00  1.696e-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:  7.542e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.91
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.76 +/- 0.36
Photon Flux (Free Index): 2.91e-07 +/- 9.80e-08
Energy Flux (Free Index): 6.69e-05 +/- 1.88e-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/509807/cmap_HighResolution_419212801_419472001_4FGL_J1522.1+3144_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-07', energy_flux2='6.69e-05', photon_flux_error='8.48e-08', dlogl='6.53e-01', energy_flux='6.82e-05', photon_flux2='2.91e-07', job_status='DONE', time_completed='2021-09-12 02:26:22.787036', photon_index_error2='0.36', photon_index2='2.76', ts='24.29', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.83', time_epoch_completed='1631438782.79', return_code='0', job_id='509807', GAL2='1.04', EG2='0.75', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='9.80e-08', ts2='26.91', photon_index='2.37' WHERE bin_id='694' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 509807: <4FGL_J1522.1+3144_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin694 230.545 31.7395 419212801 419472001 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 :                                   634.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

