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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin418
RA = 230.545, Dec = 31.7395
tmin = 347673601, tmax = 347932801
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='507848', job_status='RUN', time_executed='2021-09-12 02:10:45.928146', time_epoch_executed='1631437845.93' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507848/ft1_4FGL_J1522.1+3144_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507848/ft2_4FGL_J1522.1+3144_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507848/ft1_4FGL_J1522.1+3144_daily_bin418.fits outfile=/scratch/kocevski/507848/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin418.fits ra=230.545 dec=31.7395 rad=12.0 tmin=347673601.0 tmax=347932801.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.50
user 3.19
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507848/ft1_filtered_4FGL_J1522.1+3144_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/507848/ft2_4FGL_J1522.1+3144_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/507848/ltcube_347673601_347932801_4FGL_J1522.1+3144_daily_bin418.fits outfile=/scratch/kocevski/507848/expmap_347673601_347932801_4FGL_J1522.1+3144_daily_bin418.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/507848/ltcube_347673601_347932801_4FGL_J1522.1+3144_daily_bin418.fits
.....................!
real 190.42
user 185.48
sys 4.62

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/507848/ft1_filtered_4FGL_J1522.1+3144_daily_bin418.fits scfile=/scratch/kocevski/507848/ft2_4FGL_J1522.1+3144_daily_bin418.fits outfile=/scratch/kocevski/507848/cmap_347673601_347932801_4FGL_J1522.1+3144_daily_bin418.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.877       1.0000         .10000E-03   10000.    
     3 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3771       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21209E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.608       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67753E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2342       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0297       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95444       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97347       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=   7995.521     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2809 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.607        8.1566        .71129E-07   -.22692E-04
   2  Prefactor     14.880        37.844        .40861E-05    .10775E-05
   3  norm          .10000E-03    1.8248       -.23986E-06** at limit **
   4  Prefactor     .10000E-03    75.258       -.50074E-05** at limit **
   5  norm          .10000E-03    3.5723        .30191E-06** at limit **
   6  Prefactor     2.3745        24.900        .53446E-06   -.95513E-04
   7  Prefactor     .10000E-03    2.8556       -.80576E-06** at limit **
   8  Prefactor     .10000E-03    4.9460        .11194E-06** at limit **
   9  norm          3.2484        1.5793       -.14827E-06    .29625E-03
  10  Prefactor     79.704        73.112        .10349E-04    .31622E-04
  11  Prefactor     .10000E-03    6.1644        .24455E-05** at limit **
  12  Prefactor     7.1798        15.411       -.22842E-05   -.16286E-03
  13  Prefactor     .10000E-03    21.757        .96465E-05** at limit **
  14  norm          17.157        2.8670       -.12441E-06    .48485E-03
  15  Prefactor     10.606        15.361        .78665E-06    .92434E-05
  16  Prefactor     .10000E-03    14.677        .10423E-04** at limit **
  17  Prefactor     .10000E-03    16.886       -.18426E-04** at limit **
  18  norm          10.467        14.443       -.20996E-05    .24993E-03
  19  Prefactor     .77171E-01    1.1083       -.66746E-06    .72046E-03
  20  Prefactor     .10000E-03    5.5621       -.33267E-06** at limit **
  21  Prefactor     5.2341        7.0027        .10569E-06   -.82901E-05
  22  Prefactor     7.0301        4.7632       -.87453E-06   -.28973E-03
  23  Normalizat    .95437        .18386        .11494E-05    .19690E-03
  24  Prefactor     .97349        .13739       -.16646E-06    .30039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6069
  Prefactor  = 14.8798
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.37452
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.2484
  Prefactor  = 79.7042
  Prefactor  = 0.0001
  Prefactor  = 7.17984
  Prefactor  = 0.0001
  norm       = 17.1572
  Prefactor  = 10.6062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4666
  Prefactor  = 0.0771711
  Prefactor  = 0.0001
  Prefactor  = 5.23411
  Prefactor  = 7.03013
  Normalizat = 0.954366
  Prefactor  = 0.973489
 **********
 **   18 **HESSE 
 **********

 FCN=   7995.521     FROM HESSE     STATUS=OK           403 CALLS     3212 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.607        8.1623        .11283E-03   -1.4998    
   2  Prefactor     14.880        37.832        .10384E-03   -1.4936    
   3  norm          .10000E-03    5.5128        .23501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    76.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5776        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3745        24.763        .26571E-03   -1.5400    
   7  Prefactor     .10000E-03    6.9290        .28995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2484        1.5652        .73702E-04   -1.5347    
  10  Prefactor     79.704        73.184        .44988E-04   -1.3920    
  11  Prefactor     .10000E-03    6.2215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1798        15.441        .14972E-03   -1.5172    
  13  Prefactor     .10000E-03    22.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.157        2.8797        .48129E-04   -1.4879    
  15  Prefactor     10.606        15.362        .12302E-03   -1.5057    
  16  Prefactor     .10000E-03    14.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.467        14.373        .12387E-03   -1.5061    
  19  Prefactor     .77171E-01    14.535        .17696E-02   -1.5652    
  20  Prefactor     .10000E-03    5.5642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2341        6.9997        .17570E-03   -1.5250    
  22  Prefactor     7.0301        4.7788        .15130E-03   -1.5178    
  23  Normalizat    .95437        .21695        .29528E-03   -.94575    
  24  Prefactor     .97349        .16258        .23330E-03   -.93619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15756e-09
Minuit parameter uncertainties:
  1  8.16297
  2  37.8928
  3  8.01572e-05
  4  9.76062e-05
  5  3.25574e-06
  6  15.3442
  7  0.000208426
  8  5.2087e-06
  9  1.56518
  10  73.2669
  11  1.21666e-05
  12  15.4499
  13  3.49248e-05
  14  2.87968
  15  15.3681
  16  2.57844e-06
  17  7.63718e-05
  18  14.3778
  19  2.11734
  20  4.35449e-08
  21  7.00079
  22  4.77904
  23  0.217147
  24  0.162663
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.716e+01  2.880e+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.735e-01  1.627e-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:  9.544e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 147.78
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.60e-07 +/- 9.39e-08
Energy Flux (Fixed Index): 1.76e-04 +/- 2.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) = 7995.41876747
delta logL = 0.102192252682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7995.37786815
delta logL = 0.143091569848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.682       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4517       1.0000          .0000       5.0000    
     3 'Normalizat'    .92811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98714       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=   7995.378     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.683        3.1303        .24515E-02    .11222E-03
   2  alpha         2.4516        .19025        .10464        .39624E-04
   3  Normalizat    .92809        .17669        .67513E-01    .19601E-04
   4  Prefactor     .98715        .13762        .46106E-01    .64124E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6827
  alpha      = 2.45163
  Normalizat = 0.928088
  Prefactor  = 0.987146
 **********
 **   18 **HESSE 
 **********

 FCN=   7995.378     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.683        2.5034        .46816E-04   -1.4891    
   2  alpha         2.4516        .15376        .45892E-03   -.19349E-01
   3  Normalizat    .92809        .20889        .29866E-03   -.95480    
   4  Prefactor     .98715        .16205        .23183E-03   -.93159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85596e-13
Minuit parameter uncertainties:
  1  2.50343
  2  0.153861
  3  0.209074
  4  0.16213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507848': 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) = 7995.37786806
delta logL = 0.143091661047

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.668e+01  2.503e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.452e+00  1.539e-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.871e-01  1.621e-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:  9.281e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 150.83
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.45 +/- 0.15
Photon Flux (Free Index): 5.86e-07 +/- 9.42e-08
Energy Flux (Free Index): 1.71e-04 +/- 2.55e-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/507848/cmap_HighResolution_347673601_347932801_4FGL_J1522.1+3144_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.60e-07', energy_flux2='1.71e-04', photon_flux_error='9.39e-08', dlogl='1.43e-01', energy_flux='1.76e-04', photon_flux2='5.86e-07', job_status='DONE', time_completed='2021-09-12 02:22:32.590790', photon_index_error2='0.15', photon_index2='2.45', ts='147.78', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.95', time_epoch_completed='1631438552.59', return_code='0', job_id='507848', GAL2='0.99', EG2='0.93', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='9.42e-08', ts2='150.83', photon_index='2.37' WHERE bin_id='418' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 507848: <4FGL_J1522.1+3144_daily_bin418> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin418 230.545 31.7395 347673601 347932801 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 :                                   696.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             361.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            724 sec.

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

