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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1091
RA = 230.545, Dec = 31.7395
tmin = 522115201, tmax = 522374401
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='511897', job_status='RUN', time_executed='2021-09-12 02:24:11.854261', time_epoch_executed='1631438651.85' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511897/ft1_4FGL_J1522.1+3144_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511897/ft1_4FGL_J1522.1+3144_daily_bin1091.fits outfile=/scratch/kocevski/511897/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1091.fits ra=230.545 dec=31.7395 rad=12.0 tmin=522115201.0 tmax=522374401.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.72
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511897/ft1_filtered_4FGL_J1522.1+3144_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/511897/ltcube_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.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/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits
.....................!
real 12.28
user 11.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511897/ft1_filtered_4FGL_J1522.1+3144_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/511897/ltcube_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.fits outfile=/scratch/kocevski/511897/expmap_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.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/511897/ltcube_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.fits
.....................!
real 192.72
user 187.48
sys 4.79

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/511897/ft1_filtered_4FGL_J1522.1+3144_daily_bin1091.fits scfile=/scratch/kocevski/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits outfile=/scratch/kocevski/511897/cmap_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511897/ft1_filtered_4FGL_J1522.1+3144_daily_bin1091.fits scfile=/scratch/kocevski/511897/ft2_4FGL_J1522.1+3144_daily_bin1091.fits outfile=/scratch/kocevski/511897/cmap_HighResolution_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6869       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.6707       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .55880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    39.292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94179       1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.698       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3331       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5406       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0173       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=   7499.094     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2761 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6869        5.2936       -.67598E-07    .65914E-05
   2  Prefactor     .10000E-03    15.342        .17530E-05** at limit **
   3  norm          8.6705        5.7250        .39322E-07    .17850E-04
   4  Prefactor     .10000E-03    43.147       -.27256E-05** at limit **
   5  norm          2.4937        5.0318        .27925E-05   -.93269E-04
   6  Prefactor     8.6195        17.564       -.35981E-08    .62536E-04
   7  Prefactor     8.9541        12.249        .26052E-06    .15142E-03
   8  Prefactor     .10000E-03    3.5834       -.16196E-07** at limit **
   9  norm          .55701        2.3254       -.14272E-08   -.29191E-03
  10  Prefactor     .10000E-03    47.471        .35920E-05** at limit **
  11  Prefactor     .10000E-03    6.8133       -.12460E-07** at limit **
  12  Prefactor     8.9047        26.408       -.12206E-05   -.34189E-04
  13  Prefactor     .10000E-03    16.242        .11293E-05** at limit **
  14  norm          16.434        2.4906        .17707E-07    .31146E-03
  15  Prefactor     .10000E-03    3.9771       -.53417E-07** at limit **
  16  Prefactor     .10000E-03    11.195       -.48957E-06** at limit **
  17  Prefactor     .10000E-03    17.860       -.17950E-05** at limit **
  18  norm          39.293        22.043        .35632E-06    .16665E-03
  19  Prefactor     .94195        2.7912        .36042E-06   -.35691E-04
  20  Prefactor     62.697        41.094        .14442E-06    .86027E-05
  21  Prefactor     3.3318        11.633        .39515E-05   -.38169E-04
  22  Prefactor     4.5407        4.0418        .33207E-06    .10835E-03
  23  Normalizat    1.0403        .20717        .26184E-06    .12336E-03
  24  Prefactor     1.0173        .15343       -.54702E-06    .19347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.68694
  Prefactor  = 0.0001
  norm       = 8.67053
  Prefactor  = 0.0001
  norm       = 2.49366
  Prefactor  = 8.61946
  Prefactor  = 8.95408
  Prefactor  = 0.0001
  norm       = 0.557005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.9047
  Prefactor  = 0.0001
  norm       = 16.4344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.293
  Prefactor  = 0.941951
  Prefactor  = 62.6973
  Prefactor  = 3.33183
  Prefactor  = 4.54073
  Normalizat = 1.04035
  Prefactor  = 1.01733
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.094     FROM HESSE     STATUS=OK           399 CALLS     3160 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6869        5.2922        .18588E-03   -1.5275    
   2  Prefactor     .10000E-03    15.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.6705        5.7239        .13613E-03   -1.5119    
   4  Prefactor     .10000E-03    43.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4937        5.0338        .12942E-02   -1.5392    
   6  Prefactor     8.6195        17.609        .13653E-03   -1.5121    
   7  Prefactor     8.9541        11.417        .13401E-03   -1.5109    
   8  Prefactor     .10000E-03    3.6040        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55701        2.1211        .19637E-03   -1.5559    
  10  Prefactor     .10000E-03    47.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9047        26.498        .13435E-03   -1.5111    
  13  Prefactor     .10000E-03    16.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.434        2.4993        .49766E-04   -1.4897    
  15  Prefactor     .10000E-03    3.9818        .16857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          39.293        22.077        .63943E-04   -1.4453    
  19  Prefactor     .94195        2.7739        .23145E-03   -1.5514    
  20  Prefactor     62.697        41.104        .50677E-04   -1.4123    
  21  Prefactor     3.3318        11.647        .11085E-02   -1.5343    
  22  Prefactor     4.5407        4.0408        .15729E-03   -1.5282    
  23  Normalizat    1.0403        .24345        .30402E-03   -.91691    
  24  Prefactor     1.0173        .17949        .24279E-03   -.92154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10756e-10
Minuit parameter uncertainties:
  1  5.29276
  2  7.82754e-05
  3  5.72431
  4  0.000200667
  5  5.03467
  6  17.6197
  7  11.42
  8  1.22639e-06
  9  2.12137
  10  0.000311793
  11  6.64091e-06
  12  26.5334
  13  0.000164762
  14  2.49931
  15  3.90707e-06
  16  2.07486e-05
  17  7.52328e-05
  18  22.0819
  19  2.77427
  20  41.1226
  21  11.6549
  22  4.04102
  23  0.243714
  24  0.1796
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.017e+00  1.796e-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.040e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 137.48
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.36e-07 +/- 8.15e-08
Energy Flux (Fixed Index): 1.69e-04 +/- 2.57e-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) = 7498.32493205
delta logL = 0.768640446198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7498.2719511
delta logL = 0.82162139813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.229       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1639       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98143       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=   7498.272     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.229        2.8473        .24123E-02    .32370E-04
   2  alpha         2.1639        .16475        .11602        .59294E-05
   3  Normalizat    1.1072        .19220        .66984E-01    .14796E-04
   4  Prefactor     .98143        .14883        .46035E-01    .93577E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.2288
  alpha      = 2.16389
  Normalizat = 1.10715
  Prefactor  = 0.981432
 **********
 **   18 **HESSE 
 **********

 FCN=   7498.272     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.229        2.6766        .52373E-04   -1.4878    
   2  alpha         2.1639        .15734        .50649E-03   -.13485    
   3  Normalizat    1.1072        .22587        .29634E-03   -.89523    
   4  Prefactor     .98143        .17392        .24658E-03   -.93351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77129e-14
Minuit parameter uncertainties:
  1  2.67659
  2  0.157443
  3  0.22607
  4  0.174016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511897': 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) = 7498.27195108
delta logL = 0.821621411991

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.723e+01  2.677e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.164e+00  1.574e-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.814e-01  1.740e-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.107e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 137.48
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.16 +/- 0.16
Photon Flux (Free Index): 4.73e-07 +/- 8.92e-08
Energy Flux (Free Index): 1.90e-04 +/- 3.57e-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/511897/cmap_HighResolution_522115201_522374401_4FGL_J1522.1+3144_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-07', energy_flux2='1.90e-04', photon_flux_error='8.15e-08', dlogl='8.22e-01', energy_flux='1.69e-04', photon_flux2='4.73e-07', job_status='DONE', time_completed='2021-09-12 02:36:55.914919', photon_index_error2='0.16', photon_index2='2.16', ts='137.48', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.04', time_epoch_completed='1631439415.91', return_code='0', job_id='511897', GAL2='0.98', EG2='1.11', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='8.92e-08', ts2='137.48', photon_index='2.37' WHERE bin_id='1091' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 511897: <4FGL_J1522.1+3144_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1091 230.545 31.7395 522115201 522374401 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 :                                   671.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            968 sec.

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

