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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1240
RA = 35.6696, Dec = 43.0357
tmin = 560736001, tmax = 560995201
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='342547', job_status='RUN', time_executed='2021-08-15 19:25:35.430461', time_epoch_executed='1629080735.43' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342547/ft1_4FGL_J0222.6+4302_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342547/ft1_4FGL_J0222.6+4302_daily_bin1240.fits outfile=/scratch/kocevski/342547/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1240.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=560736001.0 tmax=560995201.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 13.14
user 3.56
sys 9.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.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/342547/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/342547/ft1_filtered_4FGL_J0222.6+4302_daily_bin1240.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.88
user 0.35
sys 8.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342547/ft1_filtered_4FGL_J0222.6+4302_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/342547/ltcube_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.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/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits
.....................!
real 23.88
user 13.06
sys 10.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342547/ft1_filtered_4FGL_J0222.6+4302_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/342547/ltcube_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.fits outfile=/scratch/kocevski/342547/expmap_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.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/342547/ltcube_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.fits
.....................!
real 203.93
user 186.51
sys 16.95

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/342547/ft1_filtered_4FGL_J0222.6+4302_daily_bin1240.fits scfile=/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits outfile=/scratch/kocevski/342547/cmap_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.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 9.85
user 0.38
sys 9.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342547/ft1_filtered_4FGL_J0222.6+4302_daily_bin1240.fits scfile=/scratch/kocevski/342547/ft2_4FGL_J0222.6+4302_daily_bin1240.fits outfile=/scratch/kocevski/342547/cmap_HighResolution_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.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.95
user 0.40
sys 8.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9804       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24596E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    122.99       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15133E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .40583       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7280       1.0000         .10000E-03   10000.    
    16 'norm      '    11.184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98648E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10564E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6758       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65991       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1858.617     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      591 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    643.33        .26966E-04** at limit **
   2  Prefactor     .10000E-03    379.31       -.10610E-04** at limit **
   3  norm          .10000E-03    1.6626        .74462E-06** at limit **
   4  norm          .10000E-03    3.7145       -.42473E-06** at limit **
   5  Prefactor     .10000E-03    40.119        .92123E-06** at limit **
   6  Prefactor     16.342        13.694        .15514E-05    .12856E-03
   7  Prefactor     37.913        2.6599        .30873E-06    .21791E-02
   8  Prefactor     136.97        292.85        .55776E-04    .91902E-05
   9  Prefactor     .10000E-03    4.4101       -.77993E-06** at limit **
  10  norm          .10000E-03    2.6176        .33795E-06** at limit **
  11  Prefactor     .10000E-03    68.772        .73021E-07** at limit **
  12  norm          .40625        .86779       -.24218E-06   -.22514E-04
  13  norm          .10000E-03    .65179       -.16462E-07** at limit **
  14  Prefactor     3.4443        1.0109         .0000         .0000    
  15  Prefactor     8.8299        19.671        .39762E-05    .51942E-04
  16  norm          10.920        29.880        .49679E-05    .11361E-03
  17  Prefactor     .10000E-03    23.161       -.13604E-06** at limit **
  18  norm          .10000E-03    342.36        .35038E-05** at limit **
  19  Prefactor     .10000E-03    22.043        .72361E-05** at limit **
  20  norm          27.898        25.582        .70624E-06    .48695E-04
  21  Prefactor     .10000E-03    39.385        .56717E-06** at limit **
  22  Prefactor     .10000E-03    65.883       -.77205E-05** at limit **
  23  norm          3.6789        1.7082        .12136E-06   -.11907E-04
  24  Normalizat    .66052        .55963        .41807E-06    .21038E-04
  25  Prefactor     .87572        .23801        .36053E-08    .50855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3416
  Prefactor  = 37.913
  Prefactor  = 136.968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406247
  norm       = 0.0001
  Prefactor  = 3.44432
  Prefactor  = 8.82995
  norm       = 10.9204
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 27.8976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67892
  Normalizat = 0.660519
  Prefactor  = 0.875722
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1858.617     FROM HESSE     STATUS=FAILED        65 CALLS      656 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    643.64        .97726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    378.57        .50540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.227        .10017E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.342        12.252        .24628E-02   -1.4899    
   7  Prefactor     37.913        40.212        .16286E-02   -1.4476    
   8  Prefactor     136.97        270.45        .90732E-03   -1.3362    
   9  Prefactor     .10000E-03    4.4095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.5918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.321        .67411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .40625        .86544        .10880E-01   -1.5581    
  13  norm          .10000E-03    .62806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     548.70        545.18         .0000       -1.5337    
  15  Prefactor     8.8299        1.0075        .39762E-05   -1.5114    
  16  norm          10.920        .98916        .49679E-05   -1.5047    
  17  Prefactor     .10000E-03    .26965       -.13604E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .13998        .35038E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571        .72361E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.898        1.0010        .70624E-06   -1.4651    
  21  Prefactor     .10000E-03    .20571        .56717E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20592       -.77205E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6789        1.0100        .12136E-06   -1.5324    
  24  Normalizat    .66052        .99950        .41807E-06   -1.0547    
  25  Prefactor     .87572        1.2221        .36053E-08   -.96995    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.8014e-11
Minuit parameter uncertainties:
  1  0.00691372
  2  0.0010907
  3  4.15168e-06
  4  4.33433e-06
  5  1.44744e-05
  6  12.2542
  7  40.2405
  8  272.95
  9  7.3302e-06
  10  8.34236e-07
  11  3.86996e-05
  12  0.865471
  13  1.53479e-07
  14  1.01094
  15  1.00748
  16  0.989165
  17  1.7116e-07
  18  2.19789e-05
  19  8.1344e-06
  20  1.00101
  21  2.03617e-06
  22  1.08604e-05
  23  1.00999
  24  1.02914
  25  1.26379
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  1.535e-07  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:  8.757e-01  1.264e+00  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:  6.605e-01  1.029e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/342547/likelihoodResults_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.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) = 1858.61734376
delta logL = -0.000300608805219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1858.61704349
delta logL = -3.34626292897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9160       1.0000          .0000       5.0000    
     3 'Normalizat'    .66053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87569       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=   1858.617     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      255 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1141        .15941E-01** at limit **
   2  alpha         2.4647        3.1802        .41895        .17337E-06
   3  Normalizat    .66051        .17589E-01    .10612        .12743E-04
   4  Prefactor     .87572        .76138E-02    .44694E-01   -.54532E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46469
  Normalizat = 0.660515
  Prefactor  = 0.875721
 **********
 **   18 **HESSE 
 **********

 FCN=   1858.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    82.744        .62341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4647        3.7294        .50000       -.14125E-01
   3  Normalizat    .66051        .13993        .47058E-03   -1.0547    
   4  Prefactor     .87572        .60808E-01    .17762E-03   -.96995    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36013e-09
Minuit parameter uncertainties:
  1  4.92683e-06
  2  670.793
  3  0.140001
  4  0.0608126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342547': 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): 102
logL (Free Index) = 1858.61702634
delta logL = 1.68124893207e-05

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  4.927e-06  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  2.465e+00  6.708e+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:  8.757e-01  6.081e-02  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:  6.605e-01  1.400e-01  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/342547/cmap_HighResolution_560736001_560995201_4FGL_J0222.6+4302_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-04', job_status='DONE', photon_flux_upper_limit='2.82e-07', time_completed='2021-08-15 19:34:09.569779', job_id='342547', GAL2='0.88', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1629081249.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.88', dlogl='1.68e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1240' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 342547: <4FGL_J0222.6+4302_daily_bin1240> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1240> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 19:20:37 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:22:01 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:22:01 2021
Terminated at Sun Aug 15 19:34:11 2021
Results reported at Sun Aug 15 19:34:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1240 35.6696 43.0357 560736001 560995201 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 :                                   657.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            814 sec.

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

