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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1142
RA = 230.545, Dec = 31.7395
tmin = 535334401, tmax = 535593601
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='511979', job_status='RUN', time_executed='2021-09-12 02:21:14.338354', time_epoch_executed='1631438474.34' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511979/ft1_4FGL_J1522.1+3144_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511979/ft2_4FGL_J1522.1+3144_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511979/ft1_4FGL_J1522.1+3144_daily_bin1142.fits outfile=/scratch/kocevski/511979/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1142.fits ra=230.545 dec=31.7395 rad=12.0 tmin=535334401.0 tmax=535593601.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.15
user 4.87
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511979/ft1_filtered_4FGL_J1522.1+3144_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/511979/ft2_4FGL_J1522.1+3144_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/511979/ltcube_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.fits outfile=/scratch/kocevski/511979/expmap_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.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/511979/ltcube_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.fits
.....................!
real 191.99
user 186.90
sys 4.67

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/511979/ft1_filtered_4FGL_J1522.1+3144_daily_bin1142.fits scfile=/scratch/kocevski/511979/ft2_4FGL_J1522.1+3144_daily_bin1142.fits outfile=/scratch/kocevski/511979/cmap_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511979/ft1_filtered_4FGL_J1522.1+3144_daily_bin1142.fits scfile=/scratch/kocevski/511979/ft2_4FGL_J1522.1+3144_daily_bin1142.fits outfile=/scratch/kocevski/511979/cmap_HighResolution_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.148       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1241       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99632       1.0000         .10000E-03   10000.    
    18 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24226E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3226       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93388       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=   6012.580     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3169 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3656       -.23089E-08** at limit **
   2  Prefactor     .10000E-03    19.095       -.20558E-07** at limit **
   3  norm          6.0883        4.8769        .25752E-07   -.29726E-05
   4  Prefactor     43.148        32.532       -.28795E-05   -.50548E-03
   5  norm          2.7693        4.3081        .23993E-05   -.65853E-03
   6  Prefactor     .10000E-03    4.2623       -.36065E-07** at limit **
   7  Prefactor     1.6016        9.8101        .10464E-05   -.93792E-04
   8  Prefactor     11.305        9.9213        .25094E-06    .16034E-03
   9  norm          1.2414        2.4692        .36974E-07   -.15679E-03
  10  Prefactor     .10000E-03    69.049        .24945E-05** at limit **
  11  Prefactor     .10027E-03    6.3893       -.10887E-05** at limit **
  12  Prefactor     .10001E-03    40.502       -.27471E-05** at limit **
  13  Prefactor     .10001E-03    42.581        .43049E-05** at limit **
  14  norm          1.1239        1.1892        .59726E-07    .29514E-03
  15  Prefactor     .10000E-03    13.491       -.17596E-06** at limit **
  16  Prefactor     27.641        41.385       -.27391E-05   -.19555E-03
  17  Prefactor     1.0007        12.612       -.22181E-05    .27454E-03
  18  norm          .10000E-03    8.8127       -.26255E-07** at limit **
  19  Prefactor     .10000E-03    1.3717        .30903E-10** at limit **
  20  Prefactor     .10004E-03    11.414       -.81567E-06** at limit **
  21  Prefactor     .10012E-03    21.041        .11917E-06** at limit **
  22  Prefactor     .10000E-03    2.3955        .52806E-07** at limit **
  23  Normalizat    1.3229        .20397        .53210E-06    .18142E-03
  24  Prefactor     .93374        .15923       -.46741E-06    .22898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.08831
  Prefactor  = 43.148
  norm       = 2.76925
  Prefactor  = 0.0001
  Prefactor  = 1.60157
  Prefactor  = 11.3049
  norm       = 1.24143
  Prefactor  = 0.000100004
  Prefactor  = 0.000100267
  Prefactor  = 0.000100005
  Prefactor  = 0.000100009
  norm       = 1.12393
  Prefactor  = 0.0001
  Prefactor  = 27.641
  Prefactor  = 1.00071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 0.000100121
  Prefactor  = 0.0001
  Normalizat = 1.32286
  Prefactor  = 0.933741
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.580     FROM HESSE     STATUS=OK           405 CALLS     3574 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3768        .11646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0883        4.8763        .14849E-03   -1.5214    
   4  Prefactor     43.148        34.205        .61031E-04   -1.4393    
   5  norm          2.7693        4.6030        .10506E-02   -1.5375    
   6  Prefactor     .10000E-03    4.2680        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6016        9.1303        .33589E-03   -1.5455    
   8  Prefactor     11.305        9.9280        .11915E-03   -1.5035    
   9  norm          1.2414        2.3665        .14326E-03   -1.5485    
  10  Prefactor     .10000E-03    69.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10027E-03    61.569        .36686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    41.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    44.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1239        1.1668        .81928E-04   -1.5496    
  15  Prefactor     .10000E-03    13.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.641        42.177        .76184E-04   -1.4656    
  17  Prefactor     1.0007        50.786        .50975E-02   -1.5508    
  18  norm          .10000E-03    8.8408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3923        .88620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    72.015        .50813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10012E-03    29.904        .92135E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4261        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3229        .23840        .25579E-03   -.82887    
  24  Prefactor     .93374        .18788        .23782E-03   -.94972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50649e-09
Minuit parameter uncertainties:
  1  7.06115e-07
  2  6.93223e-06
  3  4.87661
  4  34.2204
  5  4.60357
  6  1.2655e-06
  7  7.64948
  8  9.9294
  9  2.36666
  10  0.00103448
  11  0.00812213
  12  0.000946465
  13  0.00127775
  14  1.16679
  15  6.09343e-05
  16  42.2228
  17  14.2701
  18  1.96582e-05
  19  3.85421e-06
  20  0.00341423
  21  0.00380903
  22  5.87375e-07
  23  0.2386
  24  0.188012
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.124e+00  1.167e+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.337e-01  1.880e-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.323e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.20e-05

TS (Fixed Index): 1.86
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511979/likelihoodResults_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.txt

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) = 6012.40531371
delta logL = 0.175185568125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.40466017
delta logL = 0.1758391112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0801       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0311       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95211       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=   6012.405     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0800        17.460        .11595E-01   -.79633E-03
   2  alpha         3.0312        3.4732        .42391        .16015E-05
   3  Normalizat    1.2848        .58210E-01    .58546E-01    .12807E-04
   4  Prefactor     .95211        .45697E-01    .45666E-01    .68946E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07995
  alpha      = 3.03124
  Normalizat = 1.2848
  Prefactor  = 0.952109
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.405     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0800        1.2257        .65097E-04   -1.5500    
   2  alpha         3.0312        1.1682        .21430E-01    .21413    
   3  Normalizat    1.2848        .23763        .25891E-03   -.84021    
   4  Prefactor     .95211        .18452        .23580E-03   -.94343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74561e-10
Minuit parameter uncertainties:
  1  1.22577
  2  1.21804
  3  0.23783
  4  0.184637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511979': 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) = 6012.40466015
delta logL = 0.175839126679

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.080e+00  1.226e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.031e+00  1.218e+00  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.521e-01  1.846e-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.285e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 230.545 31.739
Photon Index (Free Index): 3.03 +/- 1.22
Photon Flux (Free Index): 6.94e-08 +/- 7.26e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.18e-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/511979/cmap_HighResolution_535334401_535593601_4FGL_J1522.1+3144_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='1.39e-05', photon_flux_error='3.80e-08', dlogl='1.76e-01', energy_flux='1.15e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-09-12 02:33:10.997485', photon_index_error2='1.22', photon_index2='3.03', ts='1.86', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.18e-05', EG='1.32', time_epoch_completed='1631439191.0', return_code='0', job_id='511979', GAL2='0.95', EG2='1.28', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='7.26e-08', ts2='2.25', photon_index='2.37' WHERE bin_id='1142' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:33:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 511979: <4FGL_J1522.1+3144_daily_bin1142> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:20:55 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:20:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:20:56 2021
Terminated at Sun Sep 12 02:33:11 2021
Results reported at Sun Sep 12 02:33:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1142 230.545 31.7395 535334401 535593601 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 :                                   699.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

