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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1512
RA = 230.545, Dec = 31.7395
tmin = 631238401, tmax = 631497601
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='513648', job_status='RUN', time_executed='2021-09-12 02:26:06.358858', time_epoch_executed='1631438766.36' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513648/ft1_4FGL_J1522.1+3144_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513648/ft2_4FGL_J1522.1+3144_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513648/ft1_4FGL_J1522.1+3144_daily_bin1512.fits outfile=/scratch/kocevski/513648/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1512.fits ra=230.545 dec=31.7395 rad=12.0 tmin=631238401.0 tmax=631497601.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 2.70
user 2.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513648/ft1_filtered_4FGL_J1522.1+3144_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/513648/ft2_4FGL_J1522.1+3144_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/513648/ltcube_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.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/513648/ft2_4FGL_J1522.1+3144_daily_bin1512.fits
.....................!
real 12.32
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513648/ft1_filtered_4FGL_J1522.1+3144_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/513648/ft2_4FGL_J1522.1+3144_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/513648/ltcube_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.fits outfile=/scratch/kocevski/513648/expmap_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.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/513648/ltcube_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.fits
.....................!
real 191.34
user 186.58
sys 4.45

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513648/ft1_filtered_4FGL_J1522.1+3144_daily_bin1512.fits scfile=/scratch/kocevski/513648/ft2_4FGL_J1522.1+3144_daily_bin1512.fits outfile=/scratch/kocevski/513648/cmap_HighResolution_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4696       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.464       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
    14 'norm      '    .23484       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.482       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2967       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98957       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0646       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=   10012.35     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2818 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4679        4.9674        .11910E-05    .14021E-03
   2  Prefactor     43.464        33.772       -.41439E-06   -.56929E-05
   3  norm          .10000E-03    1.3349        .61907E-07** at limit **
   4  Prefactor     .10000E-03    17.120        .41880E-05** at limit **
   5  norm          9.1120        8.7865       -.39883E-07    .20782E-04
   6  Prefactor     .60089        5.1382       -.19135E-06   -.90974E-04
   7  Prefactor     .10000E-03    2.7399       -.28533E-07** at limit **
   8  Prefactor     .10000E-03    10.059        .38839E-05** at limit **
   9  norm          3.2329        1.2995       -.18218E-07    .44207E-04
  10  Prefactor     .10000E-03    12.282       -.68128E-05** at limit **
  11  Prefactor     1.8774        6.1656        .31249E-08   -.21969E-03
  12  Prefactor     9.1466        19.422       -.55813E-05   -.12812E-03
  13  Prefactor     10.897        16.876        .39723E-05    .11409E-03
  14  norm          .23504        .70788       -.22827E-06   -.76256E-03
  15  Prefactor     4.7043        3.8870        .99600E-06   -.26067E-02
  16  Prefactor     16.906        16.245       -.13259E-06    .31534E-05
  17  Prefactor     .10000E-03    30.188       -.22270E-05** at limit **
  18  norm          9.8209        9.8373       -.19609E-06    .67104E-04
  19  Prefactor     .10000E-03    .96265        .66440E-07** at limit **
  20  Prefactor     .10000E-03    7.6069       -.56940E-06** at limit **
  21  Prefactor     23.483        11.786       -.59869E-07   -.11467E-04
  22  Prefactor     4.2967        3.3034        .13131E-07   -.17618E-03
  23  Normalizat    .98977        .15182       -.34193E-06   -.10967E-05
  24  Prefactor     1.0644        .12064        .25049E-06   -.93263E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.46785
  Prefactor  = 43.4637
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11197
  Prefactor  = 0.600894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23285
  Prefactor  = 0.000100001
  Prefactor  = 1.87735
  Prefactor  = 9.14658
  Prefactor  = 10.8966
  norm       = 0.235036
  Prefactor  = 4.70431
  Prefactor  = 16.9059
  Prefactor  = 0.0001
  norm       = 9.82088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4833
  Prefactor  = 4.29671
  Normalizat = 0.989766
  Prefactor  = 1.06438
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.35     FROM HESSE     STATUS=OK           407 CALLS     3225 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4679        4.9562        .19046E-03   -1.5285    
   2  Prefactor     43.464        33.772        .60809E-04   -1.4388    
   3  norm          .10000E-03    1.3699        .22577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1120        8.7842        .13277E-03   -1.5104    
   6  Prefactor     .60089        34.886        .41345E-02   -1.5553    
   7  Prefactor     .10000E-03    2.7543        .16154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2329        1.2964        .68580E-04   -1.5348    
  10  Prefactor     .10000E-03    12.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8774        6.1838        .30394E-03   -1.5434    
  12  Prefactor     9.1466        19.445        .13243E-03   -1.5103    
  13  Prefactor     10.897        16.876        .12134E-03   -1.5048    
  14  norm          .23504        .92371        .11977E-02   -1.5611    
  15  Prefactor     4.7043        6.8044        .92744E-03   -1.5274    
  16  Prefactor     16.906        16.340        .97410E-04   -1.4885    
  17  Prefactor     .10000E-03    30.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8209        9.7393        .12790E-03   -1.5081    
  19  Prefactor     .10000E-03    1.0068        .19152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.483        11.791        .82661E-04   -1.4738    
  22  Prefactor     4.2967        3.3018        .15240E-03   -1.5293    
  23  Normalizat    .98977        .17470        .26238E-03   -.93374    
  24  Prefactor     1.0644        .13941        .21577E-03   -.90613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71634e-08
Minuit parameter uncertainties:
  1  4.95661
  2  33.7866
  3  1.55914e-07
  4  0.000157039
  5  8.78545
  6  9.16184
  7  8.13261e-07
  8  7.18253e-05
  9  1.2964
  10  0.000226959
  11  6.18588
  12  19.4581
  13  16.8833
  14  0.923764
  15  6.80554
  16  16.3444
  17  2.353e-06
  18  9.74091
  19  1.34123e-07
  20  1.62782e-05
  21  11.7924
  22  3.3019
  23  0.174805
  24  0.139458
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.350e-01  9.238e-01  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.064e+00  1.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.898e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513648/likelihoodResults_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.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) = 10012.0966557
delta logL = 0.255175809867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10012.0961162
delta logL = 0.255715281603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25072       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3677       1.0000          .0000       5.0000    
     3 'Normalizat'    .97015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0735       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=   10012.10     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25059        6.7600        .10207E-01    .36330E-02
   2  alpha         3.3675        3.7018        .44830        .59790E-04
   3  Normalizat    .97011        .29364E-01    .45792E-01    .24533E-04
   4  Prefactor     1.0734        .25166E-01    .38693E-01    .85348E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.250586
  alpha      = 3.36755
  Normalizat = 0.970106
  Prefactor  = 1.07343
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.10     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25059        .75217        .66453E-04   -1.5608    
   2  alpha         3.3675        1.8785        .36228E-01    .35439    
   3  Normalizat    .97011        .16324        .26470E-03   -.94039    
   4  Prefactor     1.0734        .13721        .21494E-03   -.90320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31937e-08
Minuit parameter uncertainties:
  1  0.752198
  2  2.17879
  3  0.16332
  4  0.137258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513648': 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) = 10012.0961145
delta logL = 0.2557169388

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.506e-01  7.522e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.368e+00  2.179e+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:  1.073e+00  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.701e-01  1.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 230.545 31.739

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513648/cmap_HighResolution_631238401_631497601_4FGL_J1522.1+3144_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-12 02:41:25.312285', job_id='513648', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1631439685.31', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.56e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1512' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 513648: <4FGL_J1522.1+3144_daily_bin1512> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1512> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:25:51 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:25:52 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:25:52 2021
Terminated at Sun Sep 12 02:41:25 2021
Results reported at Sun Sep 12 02:41:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1512 230.545 31.7395 631238401 631497601 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 :                                   911.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

