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


Performing analysis on: 4FGL_J0222.6+4302_monthly_bin118
RA = 35.6696, Dec = 43.0357
tmin = 542851201, tmax = 545443201
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='913937', job_status='RUN', time_executed='2021-10-10 10:30:28.954816', time_epoch_executed='1633887028.95' WHERE source_name='4FGL J0222.6+4302' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913937

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913937/ft1_4FGL_J0222.6+4302_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913937/ft1_4FGL_J0222.6+4302_monthly_bin118.fits outfile=/scratch/kocevski/913937/ft1_filteredMKT_4FGL_J0222.6+4302_monthly_bin118.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.65
user 18.13
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.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/913937/ft1_filteredMKT_4FGL_J0222.6+4302_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.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.64
user 0.42
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/913937/ltcube_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.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/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits
.....................!
real 40.44
user 39.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/913937/ltcube_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits outfile=/scratch/kocevski/913937/expmap_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.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/913937/ltcube_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits
.....................!
real 191.92
user 185.56
sys 5.24

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/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits outfile=/scratch/kocevski/913937/cmap_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.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 0.61
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits outfile=/scratch/kocevski/913937/cmap_HighResolution_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.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 0.63
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913937/Model_4FGL_J0222.6+4302_monthly_bin118.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/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits.....................!
real 33.64
user 32.20
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits', '/scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits', expMap='/scratch/kocevski/913937/expmap_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits', expCube='/scratch/kocevski/913937/ltcube_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913937/Model_4FGL_J0222.6+4302_monthly_bin118.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/913937/ft1_filtered_4FGL_J0222.6+4302_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/913937/ft2_4FGL_J0222.6+4302_monthly_bin118.fits
Exposure map: /scratch/kocevski/913937/expmap_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits
Exposure cube: /scratch/kocevski/913937/ltcube_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913937/Model_4FGL_J0222.6+4302_monthly_bin118.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) = 1669.96674902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    251.14       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11071E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .56621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12731E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.096       1.0000         .10000E-03   10000.    
    18 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    190.78       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3228       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95336       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93477       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.

 FCN=   1669.962     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3462 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     251.06        176.35       -.30602E-06   -.33091E-04
   2  Prefactor     .10000E-03    54.054       -.58397E-07** at limit **
   3  norm          .10000E-03    2.6112        .46727E-07** at limit **
   4  norm          .10000E-03    2.1068       -.49564E-06** at limit **
   5  Prefactor     60.362        53.111       -.36732E-06    .48666E-04
   6  Prefactor     .10000E-03    4.1998        .51510E-07** at limit **
   7  Prefactor     .10000E-03    29.658       -.13486E-06** at limit **
   8  Prefactor     .10000E-03    87.606        .31694E-06** at limit **
   9  Prefactor     .10000E-03    9.8366        .16356E-07** at limit **
  10  norm          19.518        14.052        .20213E-05    .61972E-03
  11  Prefactor     .10000E-03    28.825        .23896E-06** at limit **
  12  norm          .10000E-03    3.5008       -.23850E-05** at limit **
  13  norm          .56608        .73549        .47538E-08   -.15810E-03
  14  Prefactor     .10000E-03    279.80       -.63477E-07** at limit **
  15  Prefactor     .10000E-03    45.436       -.28028E-05** at limit **
  16  norm          29.758        24.240       -.71229E-08    .48510E-04
  17  Prefactor     60.966        160.54        .61201E-06    .12139E-04
  18  norm          .10000E-03    69.244       -.96404E-07** at limit **
  19  Prefactor     16.123        11.713        .13915E-07   -.14242E-04
  20  norm          .10000E-03    6.3051        .54025E-07** at limit **
  21  Prefactor     .10000E-03    16.651       -.15982E-07** at limit **
  22  Prefactor     190.66        249.90       -.18590E-05   -.15292E-04
  23  norm          8.3223        2.9417        .91889E-07   -.46294E-03
  24  Normalizat    .95261        .66698        .60766E-05    .29512E-04
  25  Prefactor     .93504        .20774       -.17296E-05    .24249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 251.06
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 60.3617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5176
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.566079
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 29.7582
  Prefactor  = 60.966
  norm       = 0.0001
  Prefactor  = 16.1225
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 190.657
  norm       = 8.32233
  Normalizat = 0.952605
  Prefactor  = 0.935035
 **********
 **   18 **HESSE 
 **********

 FCN=   1669.962     FROM HESSE     STATUS=OK           411 CALLS     3873 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     251.06        175.78        .12782E-03   -1.2526    
   2  Prefactor     .10000E-03    54.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6134        .64487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1244        .11468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     60.362        53.338        .51643E-04   -1.4153    
   6  Prefactor     .10000E-03    4.2017        .81783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    87.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8370        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.518        15.013        .90747E-04   -1.4824    
  11  Prefactor     .10000E-03    28.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.4673        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .56608        .71671        .38588E-04   -1.5557    
  14  Prefactor     .10000E-03    279.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          29.758        24.239        .73434E-04   -1.4616    
  17  Prefactor     60.966        161.30        .25667E-03   -1.4145    
  18  norm          .10000E-03    69.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.123        11.755        .99731E-04   -1.4905    
  20  norm          .10000E-03    6.3150        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.670        .16288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     190.66        251.61        .14620E-03   -1.2938    
  23  norm          8.3223        2.9631        .35757E-04   -1.5131    
  24  Normalizat    .95261        .71421        .50933E-03   -.94636    
  25  Prefactor     .93504        .22532        .17340E-03   -.94927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10056e-09
Minuit parameter uncertainties:
  1  176.149
  2  2.31815e-05
  3  7.01767e-06
  4  4.92255e-05
  5  53.3798
  6  1.27845e-05
  7  9.01875e-05
  8  0.000154684
  9  8.76238e-06
  10  15.0158
  11  1.69568e-05
  12  0.000162616
  13  0.716726
  14  0.000217838
  15  0.000929562
  16  24.2471
  17  162.481
  18  0.000240776
  19  11.7562
  20  9.09827e-06
  21  1.29399e-05
  22  253.053
  23  2.96312
  24  0.721526
  25  0.225547
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  5.661e-01  7.167e-01  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:  9.350e-01  2.255e-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:  9.526e-01  7.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 7.75e-08
Energy Flux (Fixed Index): 5.07e-05 +/- 6.42e-05

TS (Fixed Index): 1.36
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 3.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913937/likelihoodResults_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.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) = 1669.91050682
delta logL = 0.0514504673681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1669.89846273
delta logL = 0.0634945573292

Fit tolerance = 1e-08

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

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

 FCN=   1669.898     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46366        18.490        .70233E-02   -.44049E-03
   2  alpha         2.3431        2.8978        .23969       -.12013E-05
   3  Normalizat    .90610        .27437        .11738       -.86925E-04
   4  Prefactor     .94370        .73542E-01    .45560E-01   -.28696E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.463663
  alpha      = 2.34314
  Normalizat = 0.906105
  Prefactor  = 0.943695
 **********
 **   18 **HESSE 
 **********

 FCN=   1669.898     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46366        .77428        .31605E-04   -1.5572    
   2  alpha         2.3431        1.3260        .12217E-01   -.62784E-01
   3  Normalizat    .90610        .63825        .52059E-03   -.96246    
   4  Prefactor     .94370        .21337        .17268E-03   -.94631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77696e-10
Minuit parameter uncertainties:
  1  0.774297
  2  1.39797
  3  0.643694
  4  0.213559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913937': 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) = 1669.89846265
delta logL = 0.0634946354758

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  4.637e-01  7.743e-01  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  2.343e+00  1.398e+00  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:  9.437e-01  2.136e-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:  9.061e-01  6.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.34 +/- 1.40
Photon Flux (Free Index): 9.95e-08 +/- 1.63e-07
Energy Flux (Free Index): 3.62e-05 +/- 4.89e-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/913937/cmap_HighResolution_542851201_545443201_4FGL_J0222.6+4302_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-04', comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='3.62e-05', photon_flux_error='7.75e-08', dlogl='6.35e-02', energy_flux='5.07e-05', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-10-10 10:40:32.099647', photon_index_error2='1.40', photon_index2='2.34', ts='1.36', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.09e-07', energy_flux_error2='4.89e-05', EG='0.95', time_epoch_completed='1633887632.1', return_code='0', job_id='913937', GAL2='0.94', EG2='0.91', return_code2='0', energy_flux_error='6.42e-05', photon_flux_error2='1.63e-07', ts2='1.50', photon_index='1.89' WHERE bin_id='118' AND source_name='4FGL J0222.6+4302' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 10 10:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 913937: <4FGL_J0222.6+4302_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0222.6+4302_monthly_bin118> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct 10 10:30:18 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 10 10:30:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 10 10:30:19 2021
Terminated at Sun Oct 10 10:40:32 2021
Results reported at Sun Oct 10 10:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_monthly_bin118 35.6696 43.0357 542851201 545443201 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 :                                   584.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            614 sec.

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

