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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin887
RA = 230.545, Dec = 31.7395
tmin = 469238401, tmax = 469497601
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='511575', job_status='RUN', time_executed='2021-09-12 02:20:38.218210', time_epoch_executed='1631438438.22' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511575

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511575/ft1_4FGL_J1522.1+3144_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511575/ft2_4FGL_J1522.1+3144_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511575/ft1_4FGL_J1522.1+3144_daily_bin887.fits outfile=/scratch/kocevski/511575/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin887.fits ra=230.545 dec=31.7395 rad=12.0 tmin=469238401.0 tmax=469497601.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.44
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511575/ft1_filtered_4FGL_J1522.1+3144_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/511575/ft2_4FGL_J1522.1+3144_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/511575/ltcube_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.fits outfile=/scratch/kocevski/511575/expmap_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.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/511575/ltcube_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.fits
.....................!
real 190.12
user 184.89
sys 4.86

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/511575/ft1_filtered_4FGL_J1522.1+3144_daily_bin887.fits scfile=/scratch/kocevski/511575/ft2_4FGL_J1522.1+3144_daily_bin887.fits outfile=/scratch/kocevski/511575/cmap_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511575/ft1_filtered_4FGL_J1522.1+3144_daily_bin887.fits scfile=/scratch/kocevski/511575/ft2_4FGL_J1522.1+3144_daily_bin887.fits outfile=/scratch/kocevski/511575/cmap_HighResolution_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.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/511575/ft1_filtered_4FGL_J1522.1+3144_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/511575/ft2_4FGL_J1522.1+3144_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511575/Model_4FGL_J1522.1+3144_daily_bin887.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/511575/ft1_filtered_4FGL_J1522.1+3144_daily_bin887.fits.....................!
real 47.85
user 46.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84024       1.0000         .10000E-03   10000.    
     9 'norm      '    10.766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5928       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.448       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19258E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3998       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6489       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93740       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=   6050.650     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2385 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8847       -.32103E-07** at limit **
   2  Prefactor     .10000E-03    124.16       -.27520E-05** at limit **
   3  norm          15.624        6.3593        .99530E-07    .10530E-03
   4  Prefactor     .10000E-03    29.518       -.65584E-06** at limit **
   5  norm          4.7597        5.1119       -.37001E-06   -.18680E-03
   6  Prefactor     .10000E-03    5.6543        .82016E-08** at limit **
   7  Prefactor     .10000E-03    2.1628        .44002E-07** at limit **
   8  Prefactor     .84019        11.274        .45339E-05   -.19554E-03
   9  norm          10.766        2.5111        .29698E-07   -.14365E-04
  10  Prefactor     .10000E-03    29.648       -.79312E-06** at limit **
  11  Prefactor     10.076        8.0100        .64088E-07   -.95319E-04
  12  Prefactor     9.5921        12.214        .10845E-07   -.21431E-04
  13  Prefactor     .10000E-03    3.9466        .21210E-07** at limit **
  14  norm          7.1796        1.7422        .13735E-06   -.10517E-02
  15  Prefactor     .10000E-03    18.616        .31463E-05** at limit **
  16  Prefactor     10.748        35.206       -.15579E-05   -.14256E-03
  17  Prefactor     .10000E-03    18.276       -.29379E-05** at limit **
  18  norm          16.445        13.053       -.20922E-06    .33921E-04
  19  Prefactor     .10076E-03    1.0566        .27202E-06** at limit **
  20  Prefactor     .10000E-03    12.557        .20280E-06** at limit **
  21  Prefactor     2.3997        13.182        .94104E-06   -.30906E-04
  22  Prefactor     5.6490        3.7891        .89651E-06   -.49951E-03
  23  Normalizat    .86747        .18411       -.46917E-06   -.15402E-03
  24  Prefactor     .93744        .15029       -.29725E-06   -.18024E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.624
  Prefactor  = 0.0001
  norm       = 4.75973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.840192
  norm       = 10.7659
  Prefactor  = 0.0001
  Prefactor  = 10.0765
  Prefactor  = 9.59212
  Prefactor  = 0.0001
  norm       = 7.17962
  Prefactor  = 0.000100003
  Prefactor  = 10.7481
  Prefactor  = 0.000100002
  norm       = 16.4447
  Prefactor  = 0.000100757
  Prefactor  = 0.0001
  Prefactor  = 2.39972
  Prefactor  = 5.64896
  Normalizat = 0.867467
  Prefactor  = 0.937439
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.650     FROM HESSE     STATUS=OK           403 CALLS     2788 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8987        .12899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    125.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.624        6.3635        .10133E-03   -1.4917    
   4  Prefactor     .10000E-03    29.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7597        5.1293        .17848E-03   -1.5272    
   6  Prefactor     .10000E-03    5.6664        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1648        .11170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84019        11.931        .50356E-03   -1.5525    
   9  norm          10.766        2.5256        .56252E-04   -1.5052    
  10  Prefactor     .10000E-03    29.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.076        8.0088        .12623E-03   -1.5073    
  12  Prefactor     9.5921        12.213        .12939E-03   -1.5088    
  13  Prefactor     .10000E-03    3.9484        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1796        1.7329        .47252E-04   -1.5172    
  15  Prefactor     .10000E-03    20.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.748        36.072        .12206E-03   -1.5052    
  17  Prefactor     .10000E-03    18.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.445        13.027        .98755E-04   -1.4897    
  19  Prefactor     .10076E-03    1.8110        .28906E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3997        13.212        .26433E-03   -1.5398    
  22  Prefactor     5.6490        3.8420        .60458E-03   -1.5233    
  23  Normalizat    .86747        .21312        .27205E-03   -.97613    
  24  Prefactor     .93744        .17408        .21981E-03   -.94845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00517e-09
Minuit parameter uncertainties:
  1  3.93599e-07
  2  0.00100522
  3  6.36375
  4  0.000127744
  5  5.1298
  6  1.31995e-06
  7  2.24306e-06
  8  6.33329
  9  2.52563
  10  0.000150667
  11  8.00969
  12  12.2163
  13  1.82386e-06
  14  1.73296
  15  0.000478554
  16  36.1456
  17  0.000413274
  18  13.0296
  19  0.00234108
  20  2.35123e-05
  21  11.2652
  22  3.84221
  23  0.213326
  24  0.174182
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.180e+00  1.733e+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:  9.374e-01  1.742e-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.675e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.52
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 5.65e-08
Energy Flux (Fixed Index): 7.38e-05 +/- 1.78e-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) = 6050.59149106
delta logL = 0.0584899675287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6050.56606577
delta logL = 0.0839152613571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8311       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4834       1.0000          .0000       5.0000    
     3 'Normalizat'    .84984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94791       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=   6050.566     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8320        12.874        .38378E-02    .64435E-04
   2  alpha         2.4833        1.7183        .15874        .36545E-04
   3  Normalizat    .84984        .22949        .44257E-01    .15873E-04
   4  Prefactor     .94791        .18529        .45613E-01   -.46363E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.83195
  alpha      = 2.48332
  Normalizat = 0.849836
  Prefactor  = 0.947905
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.566     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8320        1.8762        .45436E-04   -1.5185    
   2  alpha         2.4833        .28093        .68667E-03   -.66728E-02
   3  Normalizat    .84984        .20915        .27443E-03   -.98246    
   4  Prefactor     .94791        .17236        .21873E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54821e-13
Minuit parameter uncertainties:
  1  1.87617
  2  0.281521
  3  0.209349
  4  0.172461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511575': 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) = 6050.56606566
delta logL = 0.0839153763982

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.832e+00  1.876e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.483e+00  2.815e-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:  9.479e-01  1.725e-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.498e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.46
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.48 +/- 0.28
Photon Flux (Free Index): 2.47e-07 +/- 6.61e-08
Energy Flux (Free Index): 6.99e-05 +/- 1.86e-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/511575/cmap_HighResolution_469238401_469497601_4FGL_J1522.1+3144_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='6.99e-05', photon_flux_error='5.65e-08', dlogl='8.39e-02', energy_flux='7.38e-05', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-12 02:30:20.798835', photon_index_error2='0.28', photon_index2='2.48', ts='48.52', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.87', time_epoch_completed='1631439020.8', return_code='0', job_id='511575', GAL2='0.95', EG2='0.85', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.61e-08', ts2='48.46', photon_index='2.37' WHERE bin_id='887' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:30:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 511575: <4FGL_J1522.1+3144_daily_bin887> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin887 230.545 31.7395 469238401 469497601 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 :                                   580.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             386.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            600 sec.

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

