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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin581
RA = 230.545, Dec = 31.7395
tmin = 389923201, tmax = 390182401
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='509624', job_status='RUN', time_executed='2021-09-12 02:15:35.480979', time_epoch_executed='1631438135.48' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509624/ft1_4FGL_J1522.1+3144_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509624/ft2_4FGL_J1522.1+3144_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509624/ft1_4FGL_J1522.1+3144_daily_bin581.fits outfile=/scratch/kocevski/509624/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin581.fits ra=230.545 dec=31.7395 rad=12.0 tmin=389923201.0 tmax=390182401.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 3.48
user 3.26
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509624/ft1_filtered_4FGL_J1522.1+3144_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/509624/ft2_4FGL_J1522.1+3144_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/509624/ltcube_389923201_390182401_4FGL_J1522.1+3144_daily_bin581.fits outfile=/scratch/kocevski/509624/expmap_389923201_390182401_4FGL_J1522.1+3144_daily_bin581.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/509624/ltcube_389923201_390182401_4FGL_J1522.1+3144_daily_bin581.fits
.....................!
real 191.71
user 186.10
sys 5.08

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.949       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1376       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.2556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2513       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0622       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87183       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=   6431.302     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2751 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5663       -.25331E-07** at limit **
   2  Prefactor     .10000E-03    51.896        .55470E-06** at limit **
   3  norm          2.3582        4.4663        .87303E-06   -.15802E-03
   4  Prefactor     41.942        47.017       -.65208E-05   -.16942E-04
   5  norm          .10000E-03    7.0875        .30315E-06** at limit **
   6  Prefactor     .10000E-03    9.3337        .56608E-06** at limit **
   7  Prefactor     8.8037        7.8922        .18441E-06   -.82076E-04
   8  Prefactor     1.1378        2.2531       -.61156E-06   -.24952E-03
   9  norm          .10000E-03    .50754        .47109E-07** at limit **
  10  Prefactor     65.553        91.874       -.94099E-05   -.10068E-05
  11  Prefactor     .10000E-03    3.2275       -.14904E-07** at limit **
  12  Prefactor     14.628        21.736       -.79738E-06    .47568E-05
  13  Prefactor     .10000E-03    5.7234       -.15558E-06** at limit **
  14  norm          9.2557        1.8870        .14892E-07   -.22193E-03
  15  Prefactor     .10000E-03    4.9503        .54154E-07** at limit **
  16  Prefactor     .10000E-03    9.6546       -.10274E-05** at limit **
  17  Prefactor     .10000E-03    12.712       -.49639E-05** at limit **
  18  norm          16.610        14.328        .36625E-06    .64747E-04
  19  Prefactor     .10007E-03    1.4093        .52416E-06** at limit **
  20  Prefactor     8.2623        27.208        .61760E-05    .29780E-05
  21  Prefactor     15.207        16.530       -.34807E-06   -.36262E-04
  22  Prefactor     3.0621        3.6755       -.75209E-07   -.11993E-04
  23  Normalizat    1.1344        .19831        .15790E-05   -.27373E-03
  24  Prefactor     .87180        .14726       -.60010E-06   -.11384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35817
  Prefactor  = 41.9418
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.80368
  Prefactor  = 1.13784
  norm       = 0.0001
  Prefactor  = 65.5526
  Prefactor  = 0.0001
  Prefactor  = 14.6276
  Prefactor  = 0.0001
  norm       = 9.25574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6104
  Prefactor  = 0.000100073
  Prefactor  = 8.26232
  Prefactor  = 15.2074
  Prefactor  = 3.06214
  Normalizat = 1.13437
  Prefactor  = 0.871803
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.302     FROM HESSE     STATUS=OK           399 CALLS     3150 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5691        .98015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3582        4.6800        .11753E-02   -1.5401    
   4  Prefactor     41.942        47.152        .61893E-04   -1.4412    
   5  norm          .10000E-03    7.2011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    89.264        .45458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8037        7.7276        .13508E-03   -1.5114    
   8  Prefactor     1.1378        10.874        .21825E-02   -1.5495    
   9  norm          .10000E-03    .51204        .55714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     65.553        91.824        .49565E-04   -1.4087    
  11  Prefactor     .10000E-03    3.2397        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.628        21.771        .10472E-03   -1.4943    
  13  Prefactor     .10000E-03    5.7259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.2557        1.8919        .47273E-04   -1.5099    
  15  Prefactor     .10000E-03    4.9712        .17406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.610        14.353        .98276E-04   -1.4893    
  19  Prefactor     .10007E-03    12.164        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2623        27.238        .13957E-03   -1.5133    
  21  Prefactor     15.207        16.544        .10272E-03   -1.4928    
  22  Prefactor     3.0621        3.6698        .16169E-03   -1.5358    
  23  Normalizat    1.1344        .23194        .26196E-03   -.88656    
  24  Prefactor     .87180        .17619        .23566E-03   -.97133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28015e-09
Minuit parameter uncertainties:
  1  1.57417e-08
  2  2.08956e-05
  3  4.68068
  4  47.194
  5  7.90986e-06
  6  0.00084268
  7  7.72847
  8  7.03646
  9  2.91424e-06
  10  92.0232
  11  2.06494e-06
  12  21.7825
  13  7.00852e-07
  14  1.89195
  15  2.53245e-06
  16  2.36879e-06
  17  1.52707e-06
  18  14.3556
  19  0.00187951
  20  27.2785
  21  16.5485
  22  3.67006
  23  0.232152
  24  0.176307
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.134e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.70
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.02e-07 +/- 6.17e-08
Energy Flux (Fixed Index): 9.51e-05 +/- 1.94e-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) = 6431.24037554
delta logL = 0.0621155606577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6431.22994454
delta logL = 0.0725465627029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5021       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2808       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86196       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=   6431.230     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5017        2.5542        .32501E-02    .70771E-05
   2  alpha         2.2808        .28438        .15290        .16319E-04
   3  Normalizat    1.1518        .18544        .58868E-01    .88662E-05
   4  Prefactor     .86195        .14639        .44518E-01    .11583E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.5017
  alpha      = 2.2808
  Normalizat = 1.15183
  Prefactor  = 0.861955
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.230     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .69E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5017        2.0305        .48385E-04   -1.5091    
   2  alpha         2.2808        .23217        .66022E-02   -.87794E-01
   3  Normalizat    1.1518        .21838        .26035E-03   -.88105    
   4  Prefactor     .86195        .17167        .23682E-03   -.97483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8919e-14
Minuit parameter uncertainties:
  1  2.03048
  2  0.232504
  3  0.218555
  4  0.171774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509624': 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) = 6431.22994452
delta logL = 0.0725465852929

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  9.502e+00  2.030e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.281e+00  2.325e-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.620e-01  1.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.152e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.47
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.28 +/- 0.23
Photon Flux (Free Index): 2.87e-07 +/- 7.10e-08
Energy Flux (Free Index): 9.96e-05 +/- 2.43e-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/509624/cmap_HighResolution_389923201_390182401_4FGL_J1522.1+3144_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-07', energy_flux2='9.96e-05', photon_flux_error='6.17e-08', dlogl='7.25e-02', energy_flux='9.51e-05', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-09-12 02:25:55.460065', photon_index_error2='0.23', photon_index2='2.28', ts='65.70', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.13', time_epoch_completed='1631438755.46', return_code='0', job_id='509624', GAL2='0.86', EG2='1.15', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.10e-08', ts2='65.47', photon_index='2.37' WHERE bin_id='581' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 509624: <4FGL_J1522.1+3144_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin581 230.545 31.7395 389923201 390182401 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 :                                   616.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            637 sec.

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

