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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1192
RA = 35.6696, Dec = 43.0357
tmin = 548294401, tmax = 548553601
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='342473', job_status='RUN', time_executed='2021-08-15 19:23:40.224824', time_epoch_executed='1629080620.22' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342473/ft1_4FGL_J0222.6+4302_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342473/ft1_4FGL_J0222.6+4302_daily_bin1192.fits outfile=/scratch/kocevski/342473/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1192.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=548294401.0 tmax=548553601.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 11.80
user 3.68
sys 8.01

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.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/342473/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.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 8.33
user 0.36
sys 7.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/342473/ltcube_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.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/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits
.....................!
real 22.81
user 13.73
sys 8.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/342473/ltcube_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits outfile=/scratch/kocevski/342473/expmap_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.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/342473/ltcube_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits
.....................!
real 200.08
user 185.28
sys 14.14

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 181 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits outfile=/scratch/kocevski/342473/cmap_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.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=35.6696 yref=43.0357 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 7.46
user 0.39
sys 7.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits outfile=/scratch/kocevski/342473/cmap_HighResolution_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.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=35.6696 yref=43.0357 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 8.26
user 0.42
sys 7.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342473/Model_4FGL_J0222.6+4302_daily_bin1192.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits...........!
real 25.28
user 13.65
sys 11.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits', '/scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits', expMap='/scratch/kocevski/342473/expmap_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits', expCube='/scratch/kocevski/342473/ltcube_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342473/Model_4FGL_J0222.6+4302_daily_bin1192.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/342473/ft1_filtered_4FGL_J0222.6+4302_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/342473/ft2_4FGL_J0222.6+4302_daily_bin1192.fits
Exposure map: /scratch/kocevski/342473/expmap_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits
Exposure cube: /scratch/kocevski/342473/ltcube_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342473/Model_4FGL_J0222.6+4302_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 159.593971883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 155.433120564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1034.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .11167E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17305E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    133.45       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    112.04       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12066E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10776E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8680       1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13736E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .78206       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15233E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5285       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0689       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4130       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8253       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4658       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5453       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .12483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   155.4295     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      422 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3758        1.0031         .0000         .0000    
   2  Prefactor     1034.1        1.0000        .39860E-07   -.13667E-01
   3  norm          .10000E-03    .20571        .67976E-06** at limit **
   4  norm          .10018E-03    .20745        .79676E-05** at limit **
   5  Prefactor     133.04        .99848       -.64915E-06    .23993E-02
   6  Prefactor     7.0680        1.0206       -.36626E-05    .32579E-02
   7  Prefactor     112.22        1.0008        .24145E-07    .86355E-02
   8  Prefactor     .10309E-03    .69780E-01   -.40642E-04** at limit **
   9  Prefactor     .10991E-03    .20626        .22421E-04** at limit **
  10  norm          .10000E-03    .20571       -.31444E-05** at limit **
  11  Prefactor     .10000E-03    .20571        .20776E-05** at limit **
  12  norm          3.8622        1.0078       -.49308E-06    .76296E-05
  13  norm          .10000E-03    .20571        .21683E-05** at limit **
  14  Prefactor     3.4443        1.0109         .0000         .0000    
  15  Prefactor     .10000E-03    .20571        .76893E-05** at limit **
  16  norm          .10000E-03    .38271       -.47381E-05** at limit **
  17  Prefactor     .29283E-03    .20698       -.28111E-05** at limit **
  18  norm          5.5285        1.0041         .0000         .0000    
  19  Prefactor     1.0689        1.2157         .0000         .0000    
  20  norm          3.4130        1.0111         .0000         .0000    
  21  Prefactor     1.8253        1.0435         .0000         .0000    
  22  Prefactor     3.4658        1.0108         .0000         .0000    
  23  norm          4.5453        1.0062         .0000         .0000    
  24  Normalizat    .10000E-01    .25505       -.77516E-05** at limit **
  25  Prefactor     .12526        .37198        .16303E-05    .70553E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37579
  Prefactor  = 1034.12
  norm       = 0.0001
  norm       = 0.000100184
  Prefactor  = 133.04
  Prefactor  = 7.06795
  Prefactor  = 112.224
  Prefactor  = 0.000103092
  Prefactor  = 0.000109914
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.8622
  norm       = 0.0001
  Prefactor  = 3.44432
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000292829
  norm       = 5.52851
  Prefactor  = 1.06895
  norm       = 3.41296
  Prefactor  = 1.82527
  Prefactor  = 3.46582
  norm       = 4.54534
  Normalizat = 0.01
  Prefactor  = 0.125262
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   155.4295     FROM HESSE     STATUS=FAILED        11 CALLS      433 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     518.62        512.20         .0000       -1.5203    
   2  Prefactor     1034.1        1.0000        .39860E-07   -.91601    
   3  norm          .10000E-03    .20571        .67976E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10018E-03    .20745        .79676E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     133.04        .99848       -.64915E-06   -1.3396    
   6  Prefactor     7.0680        1.0206       -.36626E-05   -1.5176    
   7  Prefactor     112.22        1.0008        .24145E-07   -1.3585    
   8  Prefactor     .10309E-03    .69780E-01   -.40642E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10991E-03    .20626        .22421E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.31444E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571        .20776E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8622        1.0078       -.49308E-06   -1.5315    
  13  norm          .10000E-03    .20571        .21683E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4443        1.0109         .0000       -1.5337    
  15  Prefactor     .10000E-03    .20571        .76893E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .38271       -.47381E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29283E-03    .20698       -.28111E-05   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5285        1.0041         .0000       -1.5238    
  19  Prefactor     1.0689        1.2157         .0000       -1.5501    
  20  norm          3.4130        1.0111         .0000       -1.5338    
  21  Prefactor     1.8253        1.0435         .0000       -1.5438    
  22  Prefactor     3.4658        1.0108         .0000       -1.5336    
  23  norm          4.5453        1.0062         .0000       -1.5282    
  24  Normalizat    .10000E-01    .25505       -.77516E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .12526        .37198        .16303E-05   -1.3465    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.83039e-10
Minuit parameter uncertainties:
  1  1.00311
  2  1.00004
  3  5.85535e-07
  4  0.000390262
  5  0.998479
  6  1.02061
  7  1.00084
  8  0.000928971
  9  0.00286002
  10  5.59617e-07
  11  1.77336e-06
  12  1.00785
  13  1.2352e-06
  14  1.01094
  15  1.6286e-06
  16  8.21829e-06
  17  0.0126351
  18  1.00415
  19  1.21575
  20  1.01115
  21  1.04355
  22  1.0108
  23  1.00618
  24  1.49402e-07
  25  0.379293
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 155.429486774

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  1.235e-06  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.253e-01  3.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.000e-02  1.494e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 1.25e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342473/likelihoodResults_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.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): 102
logL (Free Index) = 155.429727246
delta logL = -0.000240471384615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 155.429486764
delta logL = 1.03341619706e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8807       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   155.4295     FROM MIGRAD    STATUS=FAILED        92 CALLS      236 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1794.0        .53946E-02** at limit **
   2  alpha         1.4750        4.0705        .17149        .78702E-08
   3  Normalizat    .10000E-01    .65234E-01    .21263E-02** at limit **
   4  Prefactor     .12526        .92534E-01    .22193E-03   -.21451E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   155.4295     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      415 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1794.0        .57163E-03** at limit **
   2  alpha         1.4750        4.0705        .98630E-06    .78702E-08
   3  Normalizat    .10000E-01    .65234E-01    .20162E-02** at limit **
   4  Prefactor     .12526        .92534E-01    .44060E-07   -.21451E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   155.4295     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      447 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    22.988        .57038E-03** at limit **
   2  alpha         1.4829        2.9260        .68597E-01    .73222E-07
   3  Normalizat    .10000E-01    .30590        .42525E-03** at limit **
   4  Prefactor     .12526        .20033        .88772E-05   -.21451E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 1.48286
  Normalizat = 0.01
  Prefactor  = 0.125262
 **********
 **   18 **HESSE 
 **********

 FCN=   155.4295     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    21.861        .11408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4829        3.6383        .27439E-02   -.41901    
   3  Normalizat    .10000E-01    .30589        .85050E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12526        .20030        .17754E-05   -1.3465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46594e-10
Minuit parameter uncertainties:
  1  0.00071511
  2  523.991
  3  3.85166e-07
  4  0.201404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342473': 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) = 155.429486465
delta logL = 3.08874405164e-07

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  7.151e-04  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.483e+00  5.240e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.253e-01  2.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.000e-02  3.852e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.670 43.036

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/342473/cmap_HighResolution_548294401_548553601_4FGL_J0222.6+4302_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.25e-05', time_completed='2021-08-15 19:31:25.653718', job_id='342473', GAL2='0.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629081085.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.13', dlogl='3.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1192' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:31:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 342473: <4FGL_J0222.6+4302_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1192> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 19:20:32 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:21:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 19:21:18 2021
Terminated at Sun Aug 15 19:31:27 2021
Results reported at Sun Aug 15 19:31:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1192 35.6696 43.0357 548294401 548553601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.6+4302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   563.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            655 sec.

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

