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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1211
RA = 230.545, Dec = 31.7395
tmin = 553219201, tmax = 553478401
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='512064', job_status='RUN', time_executed='2021-09-12 02:21:21.630899', time_epoch_executed='1631438481.63' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512064/ft1_4FGL_J1522.1+3144_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512064/ft2_4FGL_J1522.1+3144_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512064/ft1_4FGL_J1522.1+3144_daily_bin1211.fits outfile=/scratch/kocevski/512064/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1211.fits ra=230.545 dec=31.7395 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.73
user 2.50
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512064/ft1_filtered_4FGL_J1522.1+3144_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/512064/ft2_4FGL_J1522.1+3144_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/512064/ltcube_553219201_553478401_4FGL_J1522.1+3144_daily_bin1211.fits outfile=/scratch/kocevski/512064/expmap_553219201_553478401_4FGL_J1522.1+3144_daily_bin1211.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/512064/ltcube_553219201_553478401_4FGL_J1522.1+3144_daily_bin1211.fits
.....................!
real 191.51
user 185.63
sys 5.51

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/512064/ft1_filtered_4FGL_J1522.1+3144_daily_bin1211.fits scfile=/scratch/kocevski/512064/ft2_4FGL_J1522.1+3144_daily_bin1211.fits outfile=/scratch/kocevski/512064/cmap_553219201_553478401_4FGL_J1522.1+3144_daily_bin1211.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 1.05
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.251       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.918       1.0000         .10000E-03   10000.    
     5 'norm      '    10.767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71178       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.614       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17869       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12196E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4345       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87562       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=   10440.21     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2773 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6417        3.5830       -.72747E-06   -.11964E-02
   2  Prefactor     27.244        26.975       -.46997E-05    .11447E-04
   3  norm          3.1722        2.7406        .26799E-06    .37801E-04
   4  Prefactor     59.897        27.582       -.12692E-04    .37846E-04
   5  norm          10.765        6.8052       -.89438E-07    .20330E-04
   6  Prefactor     .10000E-03    3.9498       -.23132E-06** at limit **
   7  Prefactor     2.2654        2.5324       -.84224E-07    .73789E-04
   8  Prefactor     .71398        4.3448       -.18366E-05   -.22006E-03
   9  norm          .10000E-03    .33557       -.20791E-06** at limit **
  10  Prefactor     82.629        49.524        .15251E-04    .74362E-04
  11  Prefactor     9.4063        6.3557       -.37813E-06   -.25436E-05
  12  Prefactor     .10000E-03    8.1787       -.63385E-06** at limit **
  13  Prefactor     .10000E-03    3.8326        .49463E-06** at limit **
  14  norm          1.5836        1.0755       -.14668E-06   -.39597E-03
  15  Prefactor     9.3360        9.2627       -.30513E-06   -.87742E-05
  16  Prefactor     .10000E-03    18.243       -.49361E-05** at limit **
  17  Prefactor     .10000E-03    17.084        .14280E-05** at limit **
  18  norm          .29743E-01    5.7012       -.16433E-05   -.39906E-04
  19  Prefactor     .10008E-03    .71735        .41089E-08** at limit **
  20  Prefactor     .10000E-03    5.7381        .24130E-06** at limit **
  21  Prefactor     .10000E-03    6.8122       -.13430E-06** at limit **
  22  Prefactor     1.4339        2.3334       -.62852E-06   -.13504E-02
  23  Normalizat    1.1607        .14014        .18900E-05    .40276E-03
  24  Prefactor     .87547        .11204       -.97552E-07    .61195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6417
  Prefactor  = 27.2445
  norm       = 3.17224
  Prefactor  = 59.8967
  norm       = 10.7654
  Prefactor  = 0.0001
  Prefactor  = 2.26544
  Prefactor  = 0.713983
  norm       = 0.0001
  Prefactor  = 82.6286
  Prefactor  = 9.40626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58356
  Prefactor  = 9.33599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0297433
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43388
  Normalizat = 1.16067
  Prefactor  = 0.875466
 **********
 **   18 **HESSE 
 **********

 FCN=   10440.21     FROM HESSE     STATUS=OK           411 CALLS     3184 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6417        3.5764        .27532E-03   -1.5452    
   2  Prefactor     27.244        26.916        .76743E-04   -1.4664    
   3  norm          3.1722        2.7419        .15265E-03   -1.5352    
   4  Prefactor     59.897        27.584        .51833E-04   -1.4159    
   5  norm          10.765        6.7979        .12210E-03   -1.5052    
   6  Prefactor     .10000E-03    3.9689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2654        2.5302        .16708E-03   -1.5407    
   8  Prefactor     .71398        13.514        .40748E-02   -1.5539    
   9  norm          .10000E-03    .35183        .11548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.629        49.425        .44192E-04   -1.3887    
  11  Prefactor     9.4063        6.3546        .13065E-03   -1.5094    
  12  Prefactor     .10000E-03    8.2478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5836        1.0607        .69042E-04   -1.5456    
  15  Prefactor     9.3360        9.1823        .13113E-03   -1.5097    
  16  Prefactor     .10000E-03    18.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .29743E-01    7.8754        .77022E-01   -1.5674    
  19  Prefactor     .10008E-03    25.158        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4339        2.3247        .19278E-03   -1.5468    
  23  Normalizat    1.1607        .16559        .24248E-03   -.87827    
  24  Prefactor     .87547        .13206        .22912E-03   -.97004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22033e-08
Minuit parameter uncertainties:
  1  3.57683
  2  26.9277
  3  2.74205
  4  27.5902
  5  6.79839
  6  1.4063e-05
  7  2.53032
  8  6.21364
  9  9.71069e-06
  10  49.45
  11  6.35508
  12  3.55099e-05
  13  1.11561e-05
  14  1.06068
  15  9.18368
  16  3.86145e-06
  17  7.88436e-05
  18  0.966468
  19  0.00282376
  20  7.02594e-06
  21  1.16578e-05
  22  2.3248
  23  0.165663
  24  0.13211
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.584e+00  1.061e+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.755e-01  1.321e-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.161e+00  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.42
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.09e-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) = 10439.9263145
delta logL = 0.279029580941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10439.9253841
delta logL = 0.279959979433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6039       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9230       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89735       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10439.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6035        .93903        .54179E-04    .75666E-03
   2  alpha         2.9234        .77169        .16328E-01    .35396E-04
   3  Normalizat    1.1143        .16764        .24649E-03    .81544E-04
   4  Prefactor     .89732        .13323        .22650E-03   -.17778E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60352
  alpha      = 2.92337
  Normalizat = 1.11428
  Prefactor  = 0.897315
 **********
 **   18 **HESSE 
 **********

 FCN=   10439.93     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6035        .87611        .21672E-05   -1.5455    
   2  alpha         2.9234        .71945        .65310E-03    .17017    
   3  Normalizat    1.1143        .16708        .98597E-05   -.89295    
   4  Prefactor     .89732        .13301        .90600E-05   -.96235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43253e-10
Minuit parameter uncertainties:
  1  0.876112
  2  0.730088
  3  0.167162
  4  0.133057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512064': 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) = 10439.9253838
delta logL = 0.279960249609

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.604e+00  8.761e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.923e+00  7.301e-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.973e-01  1.331e-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.114e+00  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.18
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.92 +/- 0.73
Photon Flux (Free Index): 9.14e-08 +/- 6.01e-08
Energy Flux (Free Index): 1.92e-05 +/- 8.87e-06

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/512064/cmap_HighResolution_553219201_553478401_4FGL_J1522.1+3144_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.92e-05', photon_flux_error='3.46e-08', dlogl='2.80e-01', energy_flux='1.63e-05', photon_flux2='9.14e-08', job_status='DONE', time_completed='2021-09-12 02:35:18.366854', photon_index_error2='0.73', photon_index2='2.92', ts='7.42', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='8.87e-06', EG='1.16', time_epoch_completed='1631439318.37', return_code='0', job_id='512064', GAL2='0.90', EG2='1.11', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='6.01e-08', ts2='8.18', photon_index='2.37' WHERE bin_id='1211' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:35:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 512064: <4FGL_J1522.1+3144_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1211 230.545 31.7395 553219201 553478401 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 :                                   827.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

