/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 187 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin47
RA = 230.545, Dec = 31.7395
tmin = 251510401, tmax = 251769601
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='506127', job_status='RUN', time_executed='2021-09-12 02:08:44.335497', time_epoch_executed='1631437724.34' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506127/ft1_4FGL_J1522.1+3144_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506127/ft1_4FGL_J1522.1+3144_daily_bin47.fits outfile=/scratch/kocevski/506127/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin47.fits ra=230.545 dec=31.7395 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.46
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506127/ft1_filtered_4FGL_J1522.1+3144_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/506127/ltcube_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.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/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits
.....................!
real 12.49
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506127/ft1_filtered_4FGL_J1522.1+3144_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/506127/ltcube_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.fits outfile=/scratch/kocevski/506127/expmap_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.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/506127/ltcube_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.fits
.....................!
real 190.36
user 185.17
sys 4.63

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/506127/ft1_filtered_4FGL_J1522.1+3144_daily_bin47.fits scfile=/scratch/kocevski/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits outfile=/scratch/kocevski/506127/cmap_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506127/ft1_filtered_4FGL_J1522.1+3144_daily_bin47.fits scfile=/scratch/kocevski/506127/ft2_4FGL_J1522.1+3144_daily_bin47.fits outfile=/scratch/kocevski/506127/cmap_HighResolution_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.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.58
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.320       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.064       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5032       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.212       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1327       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.614       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56558E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.5644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7207       1.0000         .10000E-03   10000.    
    18 'norm      '    22.571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0512       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1842       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=   9675.219     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2716 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88101        3.3474        .63093E-06   -.33760E-04
   2  Prefactor     11.323        19.272       -.23545E-06    .10985E-04
   3  norm          .10000E-03    1.8348       -.22060E-07** at limit **
   4  Prefactor     57.077        35.937       -.10850E-05    .75556E-04
   5  norm          .10000E-03    2.4831        .27811E-07** at limit **
   6  Prefactor     .10000E-03    3.2641        .91115E-07** at limit **
   7  Prefactor     .10000E-03    2.5025       -.46249E-07** at limit **
   8  Prefactor     5.5012        8.2250       -.16732E-06    .15378E-04
   9  norm          .10000E-03    .58000        .46287E-07** at limit **
  10  Prefactor     43.222        55.537       -.13879E-05    .19929E-04
  11  Prefactor     3.1307        6.4290        .36739E-05   -.20210E-03
  12  Prefactor     61.604        24.979        .12308E-05    .91605E-04
  13  Prefactor     .10001E-03    46.148       -.48634E-05** at limit **
  14  norm          9.5649        1.6146       -.77611E-08    .84205E-05
  15  Prefactor     .10000E-03    2.9420       -.94921E-08** at limit **
  16  Prefactor     .10000E-03    7.0744        .26849E-06** at limit **
  17  Prefactor     3.7100        27.562        .53986E-05    .36065E-04
  18  norm          22.580        19.333       -.19928E-05   -.68218E-04
  19  Prefactor     3.0510        2.0509       -.47381E-08   -.10341E-04
  20  Prefactor     .10000E-03    4.5609       -.10820E-06** at limit **
  21  Prefactor     .10000E-03    7.1840       -.32249E-06** at limit **
  22  Prefactor     .10000E-03    1.2911        .14692E-06** at limit **
  23  Normalizat    .85712        .16714       -.46736E-06    .28796E-04
  24  Prefactor     1.1845        .12990        .79378E-07    .10219E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.881008
  Prefactor  = 11.3226
  norm       = 0.0001
  Prefactor  = 57.0765
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50116
  norm       = 0.0001
  Prefactor  = 43.222
  Prefactor  = 3.1307
  Prefactor  = 61.604
  Prefactor  = 0.000100008
  norm       = 9.56491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71001
  norm       = 22.5799
  Prefactor  = 3.05098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857116
  Prefactor  = 1.18446
 **********
 **   18 **HESSE 
 **********

 FCN=   9675.219     FROM HESSE     STATUS=OK           395 CALLS     3111 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88101        3.2956        .33940E-03   -1.5520    
   2  Prefactor     11.323        19.261        .11907E-03   -1.5035    
   3  norm          .10000E-03    1.9205        .26018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.077        36.005        .53105E-04   -1.4196    
   5  norm          .10000E-03    2.4911        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2681        .17355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5154        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5012        8.2207        .17127E-03   -1.5239    
   9  norm          .10000E-03    .59684        .14592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.222        55.457        .60986E-04   -1.4392    
  11  Prefactor     3.1307        6.4644        .11452E-02   -1.5354    
  12  Prefactor     61.604        25.123        .51118E-04   -1.4137    
  13  Prefactor     .10001E-03    48.460        .42190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.5649        1.6169        .48561E-04   -1.5089    
  15  Prefactor     .10000E-03    2.9502        .16462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7100        27.021        .20935E-03   -1.5323    
  18  norm          22.580        19.156        .84310E-04   -1.4757    
  19  Prefactor     3.0510        2.0454        .11059E-03   -1.5359    
  20  Prefactor     .10000E-03    4.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8094        .21669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85712        .19091        .30504E-03   -.97984    
  24  Prefactor     1.1845        .14932        .21816E-03   -.86811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9127e-10
Minuit parameter uncertainties:
  1  3.29624
  2  19.272
  3  4.07909e-07
  4  36.0185
  5  6.43354e-07
  6  2.31755e-06
  7  3.64171e-07
  8  8.22234
  9  1.01128e-06
  10  55.5228
  11  6.46583
  12  25.1278
  13  0.00124832
  14  1.61692
  15  2.58684e-06
  16  1.01136e-05
  17  20.0372
  18  19.1614
  19  2.04546
  20  6.69132e-07
  21  5.36159e-07
  22  2.66387e-06
  23  0.191062
  24  0.149373
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  9.565e+00  1.617e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.184e+00  1.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.571e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 90.72
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 9.83e-05 +/- 1.66e-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) = 9675.18974546
delta logL = 0.0297448515321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9675.18293985
delta logL = 0.0365504583642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3793       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4208       1.0000          .0000       5.0000    
     3 'Normalizat'    .84746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1898       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=   9675.183     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3787        2.7411        .32714E-02    .55935E-04
   2  alpha         2.4208        .29297        .14271        .43420E-04
   3  Normalizat    .84750        .15914        .69278E-01    .32496E-04
   4  Prefactor     1.1898        .12970        .34876E-01    .19089E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.37872
  alpha      = 2.42081
  Normalizat = 0.847499
  Prefactor  = 1.18981
 **********
 **   18 **HESSE 
 **********

 FCN=   9675.183     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .92E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3787        1.7399        .47804E-04   -1.5095    
   2  alpha         2.4208        .18935        .62004E-03   -.31681E-01
   3  Normalizat    .84750        .18064        .30652E-03   -.98330    
   4  Prefactor     1.1898        .14691        .21774E-03   -.86646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15578e-17
Minuit parameter uncertainties:
  1  1.73994
  2  0.189533
  3  0.180769
  4  0.146961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506127': 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) = 9675.18293976
delta logL = 0.0365505490972

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  9.379e+00  1.740e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.421e+00  1.895e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.190e+00  1.470e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.475e-01  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 90.43
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.42 +/- 0.19
Photon Flux (Free Index): 3.20e-07 +/- 6.17e-08
Energy Flux (Free Index): 9.59e-05 +/- 1.81e-05

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/506127/cmap_HighResolution_251510401_251769601_4FGL_J1522.1+3144_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='9.59e-05', photon_flux_error='5.27e-08', dlogl='3.66e-02', energy_flux='9.83e-05', photon_flux2='3.20e-07', job_status='DONE', time_completed='2021-09-12 02:21:44.751409', photon_index_error2='0.19', photon_index2='2.42', ts='90.72', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.86', time_epoch_completed='1631438504.75', return_code='0', job_id='506127', GAL2='1.19', EG2='0.85', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.17e-08', ts2='90.43', photon_index='2.37' WHERE bin_id='47' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 506127: <4FGL_J1522.1+3144_daily_bin47> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin47> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:05:25 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:05:27 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:05:27 2021
Terminated at Sun Sep 12 02:21:45 2021
Results reported at Sun Sep 12 02:21:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin47 230.545 31.7395 251510401 251769601 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 :                                   770.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

