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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1465
RA = 230.545, Dec = 31.7395
tmin = 619056001, tmax = 619315201
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='513580', job_status='RUN', time_executed='2021-09-12 02:26:00.340145', time_epoch_executed='1631438760.34' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513580/ft1_4FGL_J1522.1+3144_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513580/ft2_4FGL_J1522.1+3144_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513580/ft1_4FGL_J1522.1+3144_daily_bin1465.fits outfile=/scratch/kocevski/513580/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1465.fits ra=230.545 dec=31.7395 rad=12.0 tmin=619056001.0 tmax=619315201.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.59
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513580/ft1_filtered_4FGL_J1522.1+3144_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/513580/ft2_4FGL_J1522.1+3144_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/513580/ltcube_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.fits outfile=/scratch/kocevski/513580/expmap_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.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/513580/ltcube_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.fits
.....................!
real 191.18
user 185.81
sys 5.05

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/513580/ft1_filtered_4FGL_J1522.1+3144_daily_bin1465.fits scfile=/scratch/kocevski/513580/ft2_4FGL_J1522.1+3144_daily_bin1465.fits outfile=/scratch/kocevski/513580/cmap_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513580/ft1_filtered_4FGL_J1522.1+3144_daily_bin1465.fits scfile=/scratch/kocevski/513580/ft2_4FGL_J1522.1+3144_daily_bin1465.fits outfile=/scratch/kocevski/513580/cmap_HighResolution_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2207       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8381       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.242       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3109       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4384       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83510       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=   6678.860     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2306 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9043        7.7980       -.33440E-06   -.11386E-03
   2  Prefactor     .10000E-03    48.947       -.22830E-04** at limit **
   3  norm          .10000E-03    1.9172        .33261E-07** at limit **
   4  Prefactor     .10000E-03    32.172        .13907E-04** at limit **
   5  norm          .10000E-03    3.9891        .65785E-07** at limit **
   6  Prefactor     .10000E-03    7.5858        .12219E-05** at limit **
   7  Prefactor     9.9152        7.1108       -.55374E-07    .76726E-05
   8  Prefactor     .10000E-03    7.6591       -.37693E-05** at limit **
   9  norm          .10000E-03    .89111       -.70315E-07** at limit **
  10  Prefactor     .10000E-03    35.736        .23384E-04** at limit **
  11  Prefactor     .11400        4.7227       -.10402E-05    .92701E-04
  12  Prefactor     .10000E-03    7.5785        .22488E-05** at limit **
  13  Prefactor     .10000E-03    26.904       -.18866E-04** at limit **
  14  norm          1.2207        .94434       -.36457E-07   -.28868E-03
  15  Prefactor     .10000E-03    2.4454        .40080E-07** at limit **
  16  Prefactor     .10000E-03    9.5487       -.62683E-06** at limit **
  17  Prefactor     .10000E-03    10.351        .22598E-05** at limit **
  18  norm          7.8380        9.5550        .49709E-07   -.22360E-04
  19  Prefactor     .10000E-03    .64688        .32899E-07** at limit **
  20  Prefactor     .10000E-03    9.5103       -.88142E-06** at limit **
  21  Prefactor     29.240        17.002       -.48849E-06    .75117E-06
  22  Prefactor     1.3110        3.3068       -.10029E-05   -.10826E-02
  23  Normalizat    1.4384        .18164        .46959E-06    .23103E-03
  24  Prefactor     .83509        .14469        .38825E-07    .20650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.90431
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.91524
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.113998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.83804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2403
  Prefactor  = 1.31103
  Normalizat = 1.43844
  Prefactor  = 0.835088
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.860     FROM HESSE     STATUS=OK           399 CALLS     2705 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9043        7.8265        .16525E-03   -1.5222    
   2  Prefactor     .10000E-03    48.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9286        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0077        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9152        7.0254        .12725E-03   -1.5078    
   8  Prefactor     .10000E-03    7.7338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4051        .14632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11400        5.1188        .57298E-01   -1.5640    
  12  Prefactor     .10000E-03    7.5908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2207        .93561        .67067E-04   -1.5487    
  15  Prefactor     .10000E-03    2.4501        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8380        9.5568        .14322E-03   -1.5148    
  19  Prefactor     .10000E-03    .65037        .64175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.240        17.008        .74090E-04   -1.4626    
  22  Prefactor     1.3110        3.3350        .22921E-03   -1.5479    
  23  Normalizat    1.4384        .21054        .23695E-03   -.79523    
  24  Prefactor     .83509        .16823        .24586E-03   -.98448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65258e-09
Minuit parameter uncertainties:
  1  7.82789
  2  4.07644e-05
  3  7.55875e-07
  4  3.45523e-05
  5  4.83348e-08
  6  3.28003e-06
  7  7.02596
  8  7.73438e-06
  9  1.563e-06
  10  9.91845e-06
  11  1.52726
  12  1.02014e-05
  13  0.000180894
  14  0.935617
  15  1.2629e-08
  16  2.27184e-07
  17  4.56033e-06
  18  9.55862
  19  7.68809e-08
  20  6.17525e-07
  21  17.0112
  22  3.3355
  23  0.210663
  24  0.168339
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.221e+00  9.356e-01  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.351e-01  1.683e-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.438e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 9.61e-06

TS (Fixed Index): 3.63
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513580/likelihoodResults_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.txt

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) = 6678.83857562
delta logL = 0.0214978982549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6678.83786885
delta logL = 0.0222046624949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2285       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83173       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=   6678.838     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      192 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2293        35.662        .10149E-01    .22270E-03
   2  alpha         2.2101        3.0406        .41509       -.12383E-04
   3  Normalizat    1.4449        .11128        .53492E-01    .46827E-04
   4  Prefactor     .83175        .97379E-01    .44129E-01    .60496E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22934
  alpha      = 2.2101
  Normalizat = 1.44491
  Prefactor  = 0.831749
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.838     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2293        .95769        .68558E-04   -1.5486    
   2  alpha         2.2101        .73304        .19198E-01   -.11622    
   3  Normalizat    1.4449        .20531        .23651E-03   -.79338    
   4  Prefactor     .83175        .16679        .24629E-03   -.98568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19849e-12
Minuit parameter uncertainties:
  1  0.957698
  2  0.74413
  3  0.20543
  4  0.166891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513580': 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) = 6678.83786768
delta logL = 0.0222058350073

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.229e+00  9.577e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.210e+00  7.441e-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.317e-01  1.669e-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.445e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.21 +/- 0.74
Photon Flux (Free Index): 3.50e-08 +/- 3.51e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/513580/cmap_HighResolution_619056001_619315201_4FGL_J1522.1+3144_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.32e-05', photon_flux_error='3.05e-08', dlogl='2.22e-02', energy_flux='1.25e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-09-12 02:37:16.646016', photon_index_error2='0.74', photon_index2='2.21', ts='3.63', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.12e-05', EG='1.44', time_epoch_completed='1631439436.65', return_code='0', job_id='513580', GAL2='0.83', EG2='1.44', return_code2='0', energy_flux_error='9.61e-06', photon_flux_error2='3.51e-08', ts2='3.67', photon_index='2.37' WHERE bin_id='1465' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:37:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 513580: <4FGL_J1522.1+3144_daily_bin1465> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1465> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:25:46 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:25:47 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:25:47 2021
Terminated at Sun Sep 12 02:37:16 2021
Results reported at Sun Sep 12 02:37:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1465 230.545 31.7395 619056001 619315201 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 :                                   670.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            690 sec.

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

