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


Performing analysis on: 4FGL_J0022.5+0608_daily_bin1591
RA = 5.6376, Dec = 6.1343
tmin = 651715201, tmax = 651974401
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='546695', job_status='RUN', time_executed='2021-08-30 00:04:58.059153', time_epoch_executed='1630307098.06' WHERE source_name='4FGL J0022.5+0608' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546695/ft1_4FGL_J0022.5+0608_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546695/ft1_4FGL_J0022.5+0608_daily_bin1591.fits outfile=/scratch/kocevski/546695/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1591.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=651715201.0 tmax=651974401.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 8.93
user 3.27
sys 5.58

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.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/546695/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1591.fits evtable="EVENTS" outfile="/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.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 6.01
user 0.35
sys 5.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/546695/ltcube_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.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/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits
.....................!
real 18.36
user 11.98
sys 6.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/546695/ltcube_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits outfile=/scratch/kocevski/546695/expmap_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.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/546695/ltcube_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits
.....................!
real 199.09
user 187.14
sys 11.11

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits outfile=/scratch/kocevski/546695/cmap_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.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=5.6376 yref=6.1343 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 5.93
user 0.40
sys 5.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits outfile=/scratch/kocevski/546695/cmap_HighResolution_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.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=5.6376 yref=6.1343 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 5.87
user 0.40
sys 5.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546695/Model_4FGL_J0022.5+0608_daily_bin1591.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/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits.....................!
real 74.99
user 65.30
sys 8.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits', '/scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits', expMap='/scratch/kocevski/546695/expmap_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits', expCube='/scratch/kocevski/546695/ltcube_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546695/Model_4FGL_J0022.5+0608_daily_bin1591.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546695/ft1_filtered_4FGL_J0022.5+0608_daily_bin1591.fits
Spacecraft file(s): /scratch/kocevski/546695/ft2_4FGL_J0022.5+0608_daily_bin1591.fits
Exposure map: /scratch/kocevski/546695/expmap_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits
Exposure cube: /scratch/kocevski/546695/ltcube_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546695/Model_4FGL_J0022.5+0608_daily_bin1591.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) = 6461.89009028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .80406       1.0000         .10000E-03   10000.    
     5 'norm      '    18.444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.259       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2765       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1528       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8520       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96803       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6461.871     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1710 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.495        16.283       -.75981E-06    .30221E-04
   2  Prefactor     .10000E-03    2.2231       -.64866E-06** at limit **
   3  norm          .10000E-03    .92206        .22866E-06** at limit **
   4  norm          .80437        3.0753       -.17921E-05   -.14083E-02
   5  norm          18.443        6.2559       -.28841E-06    .33262E-04
   6  Prefactor     .10000E-03    6.1513       -.72331E-07** at limit **
   7  norm          22.258        11.719       -.96762E-06   -.51584E-03
   8  norm          5.8219        5.7204       -.13050E-07    .14541E-03
   9  Prefactor     .10000E-03    10.276        .82977E-06** at limit **
  10  Prefactor     .10000E-03    4.5860       -.25701E-05** at limit **
  11  Prefactor     1.2755        2.0882        .31360E-06   -.21861E-03
  12  norm          .10000E-03    4.6862        .31145E-05** at limit **
  13  Prefactor     53.420        94.978       -.76618E-04    .65089E-05
  14  Prefactor     .10000E-03    27.421       -.19086E-06** at limit **
  15  Prefactor     9.1494        27.632       -.90544E-05   -.58435E-05
  16  Prefactor     9.8517        11.817       -.48186E-06    .15023E-04
  17  Normalizat    .96815        .19332        .60838E-05   -.22040E-04
  18  Prefactor     .91287        .13347        .63544E-06    .31134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4954
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.804373
  norm       = 18.4434
  Prefactor  = 0.0001
  norm       = 22.2578
  norm       = 5.82191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27546
  norm       = 0.0001
  Prefactor  = 53.4201
  Prefactor  = 0.0001
  Prefactor  = 9.14939
  Prefactor  = 9.85171
  Normalizat = 0.968155
  Prefactor  = 0.912869
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.871     FROM HESSE     STATUS=OK           244 CALLS     1954 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.495        16.288        .73770E-04   -1.4621    
   2  Prefactor     .10000E-03    2.2239        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .93130        .75282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80437        3.0996        .26750E-03   -1.5529    
   5  norm          18.443        6.2582        .93261E-04   -1.4849    
   6  Prefactor     .10000E-03    6.1867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.258        11.745        .42449E-03   -1.4764    
   8  norm          5.8219        5.7255        .16645E-03   -1.5225    
   9  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6534        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2755        2.0478        .14190E-03   -1.5482    
  12  norm          .10000E-03    4.6885        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.420        94.540        .54848E-04   -1.4245    
  14  Prefactor     .10000E-03    27.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1494        27.669        .13247E-03   -1.5103    
  16  Prefactor     9.8517        11.817        .12767E-03   -1.5080    
  17  Normalizat    .96815        .22395        .29225E-03   -.94105    
  18  Prefactor     .91287        .15539        .21490E-03   -.95693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82776e-09
Minuit parameter uncertainties:
  1  16.2904
  2  2.44599e-06
  3  3.34505e-06
  4  3.10024
  5  6.25846
  6  2.06437e-05
  7  11.7463
  8  5.726
  9  7.15769e-05
  10  3.46361e-05
  11  2.04789
  12  6.792e-06
  13  94.8073
  14  1.31943e-05
  15  27.7076
  16  11.8199
  17  0.22417
  18  0.155464
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.844e+01  6.258e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.129e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  9.682e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.43
Ra Dec: 5.638 6.134
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 4.38e-08
Energy Flux (Fixed Index): 6.83e-05 +/- 2.32e-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) = 6461.80124857
delta logL = 0.0701703300947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6461.77701673
delta logL = 0.0944021697997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.509       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1979       1.0000          .0000       5.0000    
     3 'Normalizat'    .95416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+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=   6461.777     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.508        6.5073        .95715E-04    .95021E-06
   2  alpha         2.1981        .30034        .78414E-02    .15891E-03
   3  Normalizat    .95418        .21731        .29405E-03   -.95497E-05
   4  Prefactor     .91851        .15485        .21429E-03    .24616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5083
  alpha      = 2.19808
  Normalizat = 0.954178
  Prefactor  = 0.918509
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.777     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.508        6.4456        .38286E-05   -1.4871    
   2  alpha         2.1981        .29740        .15683E-02   -.12106    
   3  Normalizat    .95418        .21745        .11762E-04   -.94582    
   4  Prefactor     .91851        .15496        .85718E-05   -.95497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81899e-12
Minuit parameter uncertainties:
  1  6.4459
  2  0.298121
  3  0.21765
  4  0.155037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546695': 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) = 6461.77701647
delta logL = 0.0944024234177

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.751e+01  6.446e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.198e+00  2.981e-01  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.185e-01  1.550e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  9.542e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.55
Ra Dec: 5.638 6.134
Photon Index (Free Index): 2.20 +/- 0.30
Photon Flux (Free Index): 1.43e-07 +/- 5.72e-08
Energy Flux (Free Index): 6.13e-05 +/- 2.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/546695/cmap_HighResolution_651715201_651974401_4FGL_J0022.5+0608_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='6.13e-05', photon_flux_error='4.38e-08', dlogl='9.44e-02', energy_flux='6.83e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-30 00:14:57.705627', photon_index_error2='0.30', photon_index2='2.20', ts='21.43', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='0.97', time_epoch_completed='1630307697.71', return_code='0', job_id='546695', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='5.72e-08', ts2='21.55', photon_index='2.07' WHERE bin_id='1591' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 00:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 546695: <4FGL_J0022.5+0608_daily_bin1591> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1591> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 00:00:51 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 00:00:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 00:00:52 2021
Terminated at Mon Aug 30 00:14:59 2021
Results reported at Mon Aug 30 00:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1591 5.6376 6.1343 651715201 651974401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0022.5+0608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

