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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin700
RA = 230.545, Dec = 31.7395
tmin = 420768001, tmax = 421027201
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='509815', job_status='RUN', time_executed='2021-09-12 02:15:44.079109', time_epoch_executed='1631438144.08' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509815/ft1_4FGL_J1522.1+3144_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509815/ft2_4FGL_J1522.1+3144_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509815/ft1_4FGL_J1522.1+3144_daily_bin700.fits outfile=/scratch/kocevski/509815/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin700.fits ra=230.545 dec=31.7395 rad=12.0 tmin=420768001.0 tmax=421027201.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.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509815/ft1_filtered_4FGL_J1522.1+3144_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/509815/ft2_4FGL_J1522.1+3144_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/509815/ltcube_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.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/509815/ft2_4FGL_J1522.1+3144_daily_bin700.fits
.....................!
real 12.47
user 12.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509815/ft1_filtered_4FGL_J1522.1+3144_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/509815/ft2_4FGL_J1522.1+3144_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/509815/ltcube_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.fits outfile=/scratch/kocevski/509815/expmap_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.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/509815/ltcube_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.fits
.....................!
real 193.88
user 188.09
sys 5.44

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509815/ft1_filtered_4FGL_J1522.1+3144_daily_bin700.fits scfile=/scratch/kocevski/509815/ft2_4FGL_J1522.1+3144_daily_bin700.fits outfile=/scratch/kocevski/509815/cmap_HighResolution_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.379       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7062       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17758E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8674       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.902       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5620       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2912       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4784       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .55166       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=   6579.140     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2714 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2647        .10868E-07** at limit **
   2  Prefactor     .10000E-03    25.422       -.45036E-06** at limit **
   3  norm          .40205        2.1440        .16974E-05    .30621E-04
   4  Prefactor     .10000E-03    89.980       -.14613E-05** at limit **
   5  norm          2.8889        4.3111        .55579E-07   -.40127E-04
   6  Prefactor     .10000E-03    4.7762        .30801E-08** at limit **
   7  Prefactor     .10000E-03    4.4212        .66243E-08** at limit **
   8  Prefactor     16.268        8.8947       -.13706E-07   -.77567E-04
   9  norm          1.8133        1.4872        .79305E-07   -.35787E-04
  10  Prefactor     .10000E-03    68.274        .61734E-06** at limit **
  11  Prefactor     14.270        9.7275        .50391E-07   -.35883E-04
  12  Prefactor     .10000E-03    24.780        .50229E-06** at limit **
  13  Prefactor     26.387        21.819        .94945E-06   -.16415E-04
  14  norm          5.7061        2.0064        .15679E-07   -.47882E-04
  15  Prefactor     12.928        13.052        .63069E-07   -.19524E-04
  16  Prefactor     44.143        33.178       -.15835E-08   -.24919E-05
  17  Prefactor     .10000E-03    55.308        .27091E-06** at limit **
  18  norm          11.544        20.130        .68655E-06   -.86910E-05
  19  Prefactor     2.8674        3.0529        .19907E-06   -.19731E-04
  20  Prefactor     14.900        24.723        .14207E-06   -.88045E-05
  21  Prefactor     6.5640        15.126        .35727E-06   -.15277E-05
  22  Prefactor     1.2916        2.8782        .67025E-06   -.11339E-04
  23  Normalizat    1.4786        .18897       -.59789E-06   -.12373E-04
  24  Prefactor     .55145        .14031       -.15472E-06   -.45986E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.402049
  Prefactor  = 0.000100001
  norm       = 2.88889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2678
  norm       = 1.81333
  Prefactor  = 0.000100001
  Prefactor  = 14.2697
  Prefactor  = 0.0001
  Prefactor  = 26.3868
  norm       = 5.70613
  Prefactor  = 12.9279
  Prefactor  = 44.1429
  Prefactor  = 0.0001
  norm       = 11.5436
  Prefactor  = 2.86739
  Prefactor  = 14.8995
  Prefactor  = 6.56403
  Prefactor  = 1.29157
  Normalizat = 1.47859
  Prefactor  = 0.551454
 **********
 **   18 **HESSE 
 **********

 FCN=   6579.140     FROM HESSE     STATUS=OK           399 CALLS     3113 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2922        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40205        2.1483        .23650E-03   -1.5581    
   4  Prefactor     .10000E-03    91.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8889        4.2990        .20088E-03   -1.5368    
   6  Prefactor     .10000E-03    4.7827        .17312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4391        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.268        8.9003        .99303E-04   -1.4901    
   9  norm          1.8133        1.4919        .85414E-04   -1.5439    
  10  Prefactor     .10000E-03    68.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.270        9.7265        .10603E-03   -1.4952    
  12  Prefactor     .10000E-03    24.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.387        21.846        .77997E-04   -1.4680    
  14  norm          5.7061        2.0185        .56424E-04   -1.5230    
  15  Prefactor     12.928        13.125        .11140E-03   -1.4989    
  16  Prefactor     44.143        33.163        .60342E-04   -1.4378    
  17  Prefactor     .10000E-03    55.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.544        20.047        .11794E-03   -1.5028    
  19  Prefactor     2.8674        3.0400        .13752E-03   -1.5369    
  20  Prefactor     14.900        24.732        .10376E-03   -1.4936    
  21  Prefactor     6.5640        15.135        .15666E-03   -1.5196    
  22  Prefactor     1.2916        2.8530        .19839E-03   -1.5481    
  23  Normalizat    1.4786        .21955        .23576E-03   -.78382    
  24  Prefactor     .55145        .16178        .28102E-03   -1.0967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80568e-11
Minuit parameter uncertainties:
  1  2.53708e-06
  2  0.000226239
  3  1.85862
  4  0.000568256
  5  4.29948
  6  1.47477e-06
  7  3.15701e-08
  8  8.90107
  9  1.49198
  10  0.000377276
  11  9.72753
  12  0.000132936
  13  21.8526
  14  2.01853
  15  13.1284
  16  33.1772
  17  3.89977e-05
  18  20.0589
  19  3.0402
  20  24.7486
  21  15.1443
  22  2.85327
  23  0.219692
  24  0.161918
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  5.706e+00  2.019e+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:  5.515e-01  1.619e-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.479e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.92
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 6.58e-08
Energy Flux (Fixed Index): 5.86e-05 +/- 2.07e-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) = 6578.2370084
delta logL = 0.902915210262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.22626404
delta logL = 0.913659574891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5141       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9286       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52245       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=   6578.226     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5140        1.7978        .42775E-02    .22524E-04
   2  alpha         1.9286        .27426        .21115       -.36868E-04
   3  Normalizat    1.5386        .18054        .52549E-01   -.97283E-06
   4  Prefactor     .52245        .13698        .65095E-01    .32843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.51397
  alpha      = 1.9286
  Normalizat = 1.53864
  Prefactor  = 0.522448
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.226     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5140        1.9418        .59681E-04   -1.5238    
   2  alpha         1.9286        .31345        .88189E-02   -.23060    
   3  Normalizat    1.5386        .20762        .23232E-03   -.76698    
   4  Prefactor     .52245        .15610        .28808E-03   -1.1096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83611e-13
Minuit parameter uncertainties:
  1  1.94185
  2  0.314325
  3  0.207737
  4  0.156227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509815': 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) = 6578.22626403
delta logL = 0.913659584325

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  5.514e+00  1.942e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.929e+00  3.143e-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:  5.224e-01  1.562e-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.539e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.16
Ra Dec: 230.545 31.739
Photon Index (Free Index): 1.93 +/- 0.31
Photon Flux (Free Index): 1.28e-07 +/- 5.89e-08
Energy Flux (Free Index): 7.52e-05 +/- 3.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/509815/cmap_HighResolution_420768001_421027201_4FGL_J1522.1+3144_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='7.52e-05', photon_flux_error='6.58e-08', dlogl='9.14e-01', energy_flux='5.86e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-12 02:26:12.823415', photon_index_error2='0.31', photon_index2='1.93', ts='29.92', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='3.10e-05', EG='1.48', time_epoch_completed='1631438772.82', return_code='0', job_id='509815', GAL2='0.52', EG2='1.54', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='5.89e-08', ts2='32.16', photon_index='2.37' WHERE bin_id='700' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 509815: <4FGL_J1522.1+3144_daily_bin700> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin700> 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) <bullet0289>, 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:13 2021
Results reported at Sun Sep 12 02:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin700 230.545 31.7395 420768001 421027201 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 :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            641 sec.

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

