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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin10
RA = 230.545, Dec = 31.7395
tmin = 241920001, tmax = 242179201
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='506070', job_status='RUN', time_executed='2021-09-12 02:08:24.486096', time_epoch_executed='1631437704.49' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506070

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506070/ft1_4FGL_J1522.1+3144_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506070/ft2_4FGL_J1522.1+3144_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506070/ft1_4FGL_J1522.1+3144_daily_bin10.fits outfile=/scratch/kocevski/506070/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin10.fits ra=230.545 dec=31.7395 rad=12.0 tmin=241920001.0 tmax=242179201.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.45
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506070/ft1_filtered_4FGL_J1522.1+3144_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/506070/ft2_4FGL_J1522.1+3144_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/506070/ltcube_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.fits outfile=/scratch/kocevski/506070/expmap_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.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/506070/ltcube_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.fits
.....................!
real 190.94
user 185.76
sys 4.80

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/506070/ft1_filtered_4FGL_J1522.1+3144_daily_bin10.fits scfile=/scratch/kocevski/506070/ft2_4FGL_J1522.1+3144_daily_bin10.fits outfile=/scratch/kocevski/506070/cmap_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.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.67
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506070/ft1_filtered_4FGL_J1522.1+3144_daily_bin10.fits scfile=/scratch/kocevski/506070/ft2_4FGL_J1522.1+3144_daily_bin10.fits outfile=/scratch/kocevski/506070/cmap_HighResolution_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5909       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.507       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0385       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.765       1.0000         .10000E-03   10000.    
    14 'norm      '    13.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11245E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12453E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26321       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96392       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10212.33     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2394 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5894        5.6867         .0000        .36600E-03
   2  Prefactor     14.507        32.107         .0000        .35575E-03
   3  norm          1.0824        2.5570         .0000        .13591E-02
   4  Prefactor     3.0329        23.676         .0000       -.14219E-03
   5  norm          .10000E-03    2.3151         .0000    ** at limit **
   6  Prefactor     .87358        15.004         .0000        .25379E-01
   7  Prefactor     5.8427        6.8778         .0000        .50909E-02
   8  Prefactor     .10022E-03    4.3909         .0000    ** at limit **
   9  norm          2.3841        1.5708         .0000        .62802E-03
  10  Prefactor     .10000E-03    24.078         .0000    ** at limit **
  11  Prefactor     .10000E-03    2.8352         .0000    ** at limit **
  12  Prefactor     .10000E-03    6.1969         .0000    ** at limit **
  13  Prefactor     18.758        15.540         .0000       -.90374E-03
  14  norm          13.156        1.9050         .0000       -.72847E-03
  15  Prefactor     6.8295        7.9853         .0000       -.12116E-03
  16  Prefactor     .10000E-03    16.220         .0000    ** at limit **
  17  Prefactor     .10000E-03    9.5833         .0000    ** at limit **
  18  norm          15.888        12.356         .0000       -.94183E-03
  19  Prefactor     .10000E-03    .92475         .0000    ** at limit **
  20  Prefactor     .10000E-03    73.881         .0000    ** at limit **
  21  Prefactor     .10000E-03    5.1950         .0000    ** at limit **
  22  Prefactor     .25623        1.2283         .0000        .11716E-02
  23  Normalizat    1.1641        .16086         .0000       -.61504E-04
  24  Prefactor     .96362        .12140         .0000       -.44391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.5894
  Prefactor  = 14.5065
  norm       = 1.08238
  Prefactor  = 3.03294
  norm       = 0.0001
  Prefactor  = 0.873576
  Prefactor  = 5.84273
  Prefactor  = 0.000100217
  norm       = 2.38414
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7583
  norm       = 13.1564
  Prefactor  = 6.82945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8876
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.256228
  Normalizat = 1.16407
  Prefactor  = 0.963619
 **********
 **   18 **HESSE 
 **********

 FCN=   10212.33     FROM HESSE     STATUS=OK           401 CALLS     2795 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5894        5.6867        .16990E-03   -1.5235    
   2  Prefactor     14.507        32.093        .10516E-03   -1.4946    
   3  norm          1.0824        2.5048        .24049E-03   -1.5500    
   4  Prefactor     3.0329        23.678        .23277E-03   -1.5360    
   5  norm          .10000E-03    2.3158        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .87358        15.348        .25430E-02   -1.5521    
   7  Prefactor     5.8427        6.8456        .83067E-03   -1.5224    
   8  Prefactor     .10022E-03    37.646        .40672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3841        1.5662        .91243E-04   -1.5399    
  10  Prefactor     .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8583        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.758        15.587        .92459E-04   -1.4841    
  14  norm          13.156        1.9089        .46981E-04   -1.4982    
  15  Prefactor     6.8295        7.9700        .15350E-03   -1.5185    
  16  Prefactor     .10000E-03    16.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.888        12.357        .10045E-03   -1.4911    
  19  Prefactor     .10000E-03    4.2800        .18447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .25623        4.7493        .21529E-02   -1.5607    
  23  Normalizat    1.1641        .18993        .27239E-03   -.87721    
  24  Prefactor     .96362        .14305        .23650E-03   -.93952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49941e-08
Minuit parameter uncertainties:
  1  5.68721
  2  32.1314
  3  2.50501
  4  16.9575
  5  1.95355e-05
  6  7.325
  7  6.84655
  8  0.00571444
  9  1.56619
  10  0.000247629
  11  1.15823e-05
  12  3.72357e-05
  13  15.5906
  14  1.90889
  15  7.97125
  16  0.000131398
  17  3.03374e-07
  18  12.3588
  19  1.84544e-05
  20  0.000753544
  21  1.57571e-05
  22  2.20604
  23  0.19004
  24  0.143103
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.316e+01  1.909e+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.636e-01  1.431e-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.164e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 168.75
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.29e-07 +/- 6.22e-08
Energy Flux (Fixed Index): 1.35e-04 +/- 1.96e-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) = 10211.5680928
delta logL = 0.765134958676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10211.5199029
delta logL = 0.813324803348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.841       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1884       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94238       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=   10211.52     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.842        2.1180        .26915E-02    .82056E-05
   2  alpha         2.1885        .15098        .12023        .17524E-04
   3  Normalizat    1.2058        .15273        .60742E-01    .15187E-04
   4  Prefactor     .94234        .12022        .45543E-01    .15822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8415
  alpha      = 2.18851
  Normalizat = 1.20578
  Prefactor  = 0.94234
 **********
 **   18 **HESSE 
 **********

 FCN=   10211.52     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .20E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.842        1.9336        .49323E-04   -1.4964    
   2  alpha         2.1885        .13972        .52482E-03   -.12492    
   3  Normalizat    1.2058        .17982        .26866E-03   -.86424    
   4  Prefactor     .94234        .14102        .23884E-03   -.94677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99316e-15
Minuit parameter uncertainties:
  1  1.93359
  2  0.139799
  3  0.179909
  4  0.141079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506070': 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) = 10211.5199022
delta logL = 0.813325509509

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.384e+01  1.934e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.189e+00  1.398e-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.423e-01  1.411e-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.206e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 171.55
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.19 +/- 0.14
Photon Flux (Free Index): 3.87e-07 +/- 6.33e-08
Energy Flux (Free Index): 1.51e-04 +/- 2.53e-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/506070/cmap_HighResolution_241920001_242179201_4FGL_J1522.1+3144_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-07', energy_flux2='1.51e-04', photon_flux_error='6.22e-08', dlogl='8.13e-01', energy_flux='1.35e-04', photon_flux2='3.87e-07', job_status='DONE', time_completed='2021-09-12 02:21:04.043908', photon_index_error2='0.14', photon_index2='2.19', ts='168.75', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='1.16', time_epoch_completed='1631438464.04', return_code='0', job_id='506070', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.33e-08', ts2='171.55', photon_index='2.37' WHERE bin_id='10' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 506070: <4FGL_J1522.1+3144_daily_bin10> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin10 230.545 31.7395 241920001 242179201 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

