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


Performing analysis on: 4FGL_J1522.6-2730_daily_bin1621
RA = 230.664, Dec = -27.5059
tmin = 659491201, tmax = 659750401
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='383003', job_status='RUN', time_executed='2021-12-08 02:07:56.453017', time_epoch_executed='1638958076.45' WHERE source_name='4FGL J1522.6-2730' and cadence='daily' and bin_id='1621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383003/ft1_4FGL_J1522.6-2730_daily_bin1621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383003/ft1_4FGL_J1522.6-2730_daily_bin1621.fits outfile=/scratch/kocevski/383003/ft1_filteredMKT_4FGL_J1522.6-2730_daily_bin1621.fits ra=230.664 dec=-27.5059 rad=12.0 tmin=659491201.0 tmax=659750401.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.57
user 2.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.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/383003/ft1_filteredMKT_4FGL_J1522.6-2730_daily_bin1621.fits evtable="EVENTS" outfile="/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits" evtable="EVENTS" scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits sctable="SC_DATA" outfile=/scratch/kocevski/383003/ltcube_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.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/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits
.....................!
real 14.79
user 14.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits sctable="SC_DATA" expcube=/scratch/kocevski/383003/ltcube_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits outfile=/scratch/kocevski/383003/expmap_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.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/383003/ltcube_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits
.....................!
real 192.02
user 185.97
sys 5.04

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
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 225 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1522.6-2730 @ 230.664 -27.5059

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits outfile=/scratch/kocevski/383003/cmap_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.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.664 yref=-27.5059 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits outfile=/scratch/kocevski/383003/cmap_HighResolution_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.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.664 yref=-27.5059 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383003/Model_4FGL_J1522.6-2730_daily_bin1621.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits.....................!
real 17.95
user 16.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits', '/scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits', expMap='/scratch/kocevski/383003/expmap_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits', expCube='/scratch/kocevski/383003/ltcube_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383003/Model_4FGL_J1522.6-2730_daily_bin1621.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1522.6-2730'

4FGL J1522.6-2730
   Spectrum: LogParabola
340         norm:  2.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
341        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
342         beta:  1.270e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
343           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/383003/ft1_filtered_4FGL_J1522.6-2730_daily_bin1621.fits
Spacecraft file(s): /scratch/kocevski/383003/ft2_4FGL_J1522.6-2730_daily_bin1621.fits
Exposure map: /scratch/kocevski/383003/expmap_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits
Exposure cube: /scratch/kocevski/383003/ltcube_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383003/Model_4FGL_J1522.6-2730_daily_bin1621.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) = 452.616936369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    186.14       1.0000         .10000E-03   10000.    
     4 'Prefactor '    316.52       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34900E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.553       1.0000         .10000E-03   10000.    
    10 'norm      '    .22143E-03   1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10010E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .30379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   449.0018     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     3048 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.755       -.49388E-06** at limit **
   2  Prefactor     .10000E-03    95.318       -.61017E-05** at limit **
   3  Prefactor     186.12        139.32        .23803E-05    .51611E-04
   4  Prefactor     316.18        439.91       -.65689E-06    .52521E-04
   5  Prefactor     .10417E-03    103.50        .43537E-05** at limit **
   6  Prefactor     .10000E-03    72.566        .78903E-07** at limit **
   7  norm          .10000E-03    4.2879       -.31158E-06** at limit **
   8  Prefactor     .10000E-03    57.334        .14373E-06** at limit **
   9  Prefactor     65.734        149.01        .56433E-06    .59846E-04
  10  norm          .10000E-03    131.36        .13482E-05** at limit **
  11  norm         10000.0        6360.2        .33268E-06** at limit **
  12  norm          .10000E-03    2.4390        .29262E-06** at limit **
  13  Prefactor     .10000E-03    89.171        .14833E-05** at limit **
  14  norm          .10000E-03    54.173        .92473E-06** at limit **
  15  Prefactor    10000.0        6708.2        .18663E-05** at limit **
  16  Prefactor    10000.0        6854.0        .10526E-05** at limit **
  17  norm         10000.0        8237.6        .83596E-06** at limit **
  18  Prefactor    10000.0        476.62       -.19423E-06** at limit **
  19  norm          .10000E-03    592.49       -.49097E-06** at limit **
  20  Normalizat    .10000E-01    .77417       -.29242E-04** at limit **
  21  Prefactor     .30405        .13096        .30661E-05    .16212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 186.124
  Prefactor  = 316.18
  Prefactor  = 0.000104172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.7338
  norm       = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.304047
 **********
 **   18 **HESSE 
 **********

 FCN=   449.0018     FROM HESSE     STATUS=OK           303 CALLS     3351 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.732        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    90.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     186.12        141.03        .14798E-03   -1.2971    
   4  Prefactor     316.18        435.73        .11424E-03   -1.2133    
   5  Prefactor     .10417E-03    464.27        .36634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.574        .17660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.0343        .85412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.336        .15692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.734        149.07        .24784E-03   -1.4085    
  10  norm          .10000E-03    131.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        6360.7        .20817E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4300        .32240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    88.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    54.067        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        6710.0        .19203E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6854.6        .20394E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        8238.3        .20562E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        476.65        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    592.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    1.0823        .10782E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .30405        .13387        .13973E-03   -1.2203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26123e-09
Minuit parameter uncertainties:
  1  7.07348e-05
  2  0.00113888
  3  141.292
  4  440.36
  5  0.0887211
  6  8.29121e-05
  7  2.59042e-05
  8  5.40316e-05
  9  149.925
  10  7.77959e-05
  11  0.00493047
  12  1.20089e-05
  13  0.000426178
  14  0.000220192
  15  0.0143731
  16  0.00845373
  17  0.0125935
  18  0.00021052
  19  0.00121935
  20  3.00347e-05
  21  0.134007
Done.

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

Extracting fit parameters...

4FGL J1522.6-2730
   Spectrum: LogParabola
340         norm:  1.000e-04  2.202e-04  1.000e-04  1.000e+04 ( 1.000e-12)
341        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
342         beta:  1.270e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
343           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  3.040e-01  1.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
760   Normalization:  1.000e-02  3.003e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.664 -27.506
Photon Flux Upper Limit: 2.89e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383003/likelihoodResults_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.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) = 449.001923175
delta logL = -9.0669012252e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 448.938200334
delta logL = 0.0636321720282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62415       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29539       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   448.9382     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      316 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62554        1.8885        .47084E-04    .25247E-04
   2  alpha         5.0000        3.8894        .54446E-01** at limit **
   3  Normalizat    .10000E-01    .82845        .98768E-02** at limit **
   4  Prefactor     .29534        .11700        .14015E-03    .42806E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625543
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.295344
 **********
 **   18 **HESSE 
 **********

 FCN=   448.9382     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62554        1.8543        .18834E-05   -1.5550    
   2  alpha         5.0000        3.8789        .21779E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .82870        .19754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29534        .11695        .28030E-04   -1.2254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76918e-10
Minuit parameter uncertainties:
  1  1.85446
  2  0.00014598
  3  8.26859e-07
  4  0.117045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383003': 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) = 448.938198448
delta logL = 0.0636340575103

Extracting fit parameters...

4FGL J1522.6-2730
   Spectrum: LogParabola
340         norm:  6.255e-01  1.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
341        alpha:  5.000e+00  1.460e-04  0.000e+00  5.000e+00 ( 1.000e+00)
342         beta:  1.270e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
343           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  2.953e-01  1.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
760   Normalization:  1.000e-02  8.269e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.664 -27.506

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/383003/cmap_HighResolution_659491201_659750401_4FGL_J1522.6-2730_daily_bin1621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-03', job_status='DONE', photon_flux_upper_limit='2.89e-06', time_completed='2021-12-08 02:14:04.286272', job_id='383003', GAL2='0.30', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1638958444.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.30', dlogl='6.36e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1621' AND source_name='4FGL J1522.6-2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:14:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 383003: <4FGL_J1522.6-2730_daily_bin1621> in cluster <slac> Done

Job <4FGL_J1522.6-2730_daily_bin1621> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 02:05:31 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:07:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:07:51 2021
Terminated at Wed Dec  8 02:14:05 2021
Results reported at Wed Dec  8 02:14:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.6-2730_daily_bin1621 230.664 -27.5059 659491201 659750401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1522.6-2730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   367.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             348.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   373 sec.
    Turnaround time :                            514 sec.

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

