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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1
RA = 230.545, Dec = 31.7395
tmin = 239587201, tmax = 239846401
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='506055', job_status='RUN', time_executed='2021-09-12 02:05:53.478381', time_epoch_executed='1631437553.48' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506055

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506055/ft1_4FGL_J1522.1+3144_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506055/ft1_4FGL_J1522.1+3144_daily_bin1.fits outfile=/scratch/kocevski/506055/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1.fits ra=230.545 dec=31.7395 rad=12.0 tmin=239587201.0 tmax=239846401.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.35
user 1.15
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506055/ft1_filtered_4FGL_J1522.1+3144_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/506055/ltcube_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.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/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits
.....................!
real 12.66
user 12.25
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506055/ft1_filtered_4FGL_J1522.1+3144_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/506055/ltcube_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.fits outfile=/scratch/kocevski/506055/expmap_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.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/506055/ltcube_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.fits
.....................!
real 192.53
user 186.43
sys 5.74

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/506055/ft1_filtered_4FGL_J1522.1+3144_daily_bin1.fits scfile=/scratch/kocevski/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits outfile=/scratch/kocevski/506055/cmap_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506055/ft1_filtered_4FGL_J1522.1+3144_daily_bin1.fits scfile=/scratch/kocevski/506055/ft2_4FGL_J1522.1+3144_daily_bin1.fits outfile=/scratch/kocevski/506055/cmap_HighResolution_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.144       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .29294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4288       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96281       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75335       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=   4871.884     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2684 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0732        .31231E-07** at limit **
   2  Prefactor     39.984        52.837       -.12172E-05    .11771E-05
   3  norm          3.0448        4.5420        .22565E-05   -.34093E-03
   4  Prefactor     .10000E-03    22.199        .37248E-05** at limit **
   5  norm          .10000E-03    2.9464        .53801E-07** at limit **
   6  Prefactor     .10000E-03    6.6824        .33418E-05** at limit **
   7  Prefactor     .10000E-03    2.1646       -.26644E-07** at limit **
   8  Prefactor     .10000E-03    2.8844       -.15930E-07** at limit **
   9  norm          .29288        .92084       -.37578E-06   -.13516E-02
  10  Prefactor     .10000E-03    97.493        .57151E-06** at limit **
  11  Prefactor     18.123        10.654       -.33350E-06    .62512E-05
  12  Prefactor     .10000E-03    22.147       -.40074E-05** at limit **
  13  Prefactor     .10000E-03    11.117        .20265E-05** at limit **
  14  norm          5.4486        1.6898        .82889E-07    .11446E-02
  15  Prefactor     .10000E-03    12.127       -.61556E-05** at limit **
  16  Prefactor     .10000E-03    12.817        .38509E-05** at limit **
  17  Prefactor     .10000E-03    7.2103       -.21213E-05** at limit **
  18  norm          .10000E-03    5.0545        .13379E-06** at limit **
  19  Prefactor     .10000E-03    .58759       -.61861E-07** at limit **
  20  Prefactor     .10000E-03    8.3586        .39056E-06** at limit **
  21  Prefactor     .10000E-03    6.3521       -.15402E-05** at limit **
  22  Prefactor     1.4288        3.7546       -.57923E-06   -.77031E-03
  23  Normalizat    .96260        .17411        .27689E-06    .10664E-03
  24  Prefactor     .75350        .13738       -.44193E-06    .11440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 39.9836
  norm       = 3.0448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.292878
  Prefactor  = 0.0001
  Prefactor  = 18.1229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.44856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42878
  Normalizat = 0.962599
  Prefactor  = 0.753499
 **********
 **   18 **HESSE 
 **********

 FCN=   4871.884     FROM HESSE     STATUS=OK           389 CALLS     3073 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1005        .11947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.984        52.845        .63264E-04   -1.4442    
   3  norm          3.0448        4.3884        .17004E-03   -1.5359    
   4  Prefactor     .10000E-03    22.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9483        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6588        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1667        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8907        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .29288        .93683        .11615E-03   -1.5600    
  10  Prefactor     .10000E-03    97.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.123        10.664        .94085E-04   -1.4856    
  12  Prefactor     .10000E-03    22.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4486        1.6976        .47424E-04   -1.5241    
  15  Prefactor     .10000E-03    12.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0621        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .59018        .52240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.3625        .17166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4288        3.8396        .21291E-03   -1.5469    
  23  Normalizat    .96260        .19970        .22890E-03   -.94294    
  24  Prefactor     .75350        .15842        .20848E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40425e-09
Minuit parameter uncertainties:
  1  1.864e-06
  2  52.9071
  3  4.38886
  4  8.90012e-06
  5  2.53255e-07
  6  5.42554e-08
  7  1.80394e-06
  8  1.04843e-06
  9  0.936881
  10  6.72345e-05
  11  10.6655
  12  2.15865e-05
  13  5.36238e-06
  14  1.6976
  15  1.72723e-05
  16  3.79129e-06
  17  1.71512e-06
  18  1.40621e-06
  19  3.62389e-07
  20  6.74441e-07
  21  3.01391e-06
  22  3.84029
  23  0.19985
  24  0.15851
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  5.449e+00  1.698e+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:  7.535e-01  1.585e-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.626e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.03
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 5.60e-05 +/- 1.74e-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) = 4868.58175404
delta logL = 3.30209099108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4868.57306218
delta logL = 3.31078285321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0260       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3742       1.0000          .0000       5.0000    
     3 'Normalizat'    .82835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82558       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=   4868.573     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0259        9.9657        .58321E-02    .14291E-02
   2  alpha         3.3743        3.8899        .13950        .88206E-04
   3  Normalizat    .82823        .10746        .43979E-01    .54495E-04
   4  Prefactor     .82561        .82913E-01    .44049E-01   -.36833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.02594
  alpha      = 3.37428
  Normalizat = 0.828226
  Prefactor  = 0.825611
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.573     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0259        1.4848        .28845E-04   -1.5360    
   2  alpha         3.3743        .43140        .61319E-03    .35726    
   3  Normalizat    .82823        .20330        .24329E-03   -.99030    
   4  Prefactor     .82561        .16221        .19982E-03   -.98791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03807e-11
Minuit parameter uncertainties:
  1  1.48482
  2  0.433881
  3  0.203486
  4  0.162309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506055': 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) = 4868.57306179
delta logL = 3.31078323954

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  3.026e+00  1.485e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.374e+00  4.339e-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:  8.256e-01  1.623e-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.282e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.95
Ra Dec: 230.545 31.739
Photon Index (Free Index): 3.37 +/- 0.43
Photon Flux (Free Index): 2.90e-07 +/- 8.02e-08
Energy Flux (Free Index): 5.12e-05 +/- 1.32e-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/506055/cmap_HighResolution_239587201_239846401_4FGL_J1522.1+3144_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='5.12e-05', photon_flux_error='5.54e-08', dlogl='3.31e+00', energy_flux='5.60e-05', photon_flux2='2.90e-07', job_status='DONE', time_completed='2021-09-12 02:14:47.000057', photon_index_error2='0.43', photon_index2='3.37', ts='26.03', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.96', time_epoch_completed='1631438087.0', return_code='0', job_id='506055', GAL2='0.83', EG2='0.83', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='8.02e-08', ts2='33.95', photon_index='2.37' WHERE bin_id='1' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:14:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 506055: <4FGL_J1522.1+3144_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1 230.545 31.7395 239587201 239846401 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 :                                   533.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            569 sec.

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

