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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1207
RA = 35.6696, Dec = 43.0357
tmin = 552182401, tmax = 552441601
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='342498', job_status='RUN', time_executed='2021-08-15 19:25:13.294014', time_epoch_executed='1629080713.29' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342498/ft1_4FGL_J0222.6+4302_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342498/ft1_4FGL_J0222.6+4302_daily_bin1207.fits outfile=/scratch/kocevski/342498/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1207.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=552182401.0 tmax=552441601.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 6.51
user 3.53
sys 2.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.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/342498/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/342498/ft1_filtered_4FGL_J0222.6+4302_daily_bin1207.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 3.04
user 0.34
sys 2.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342498/ft1_filtered_4FGL_J0222.6+4302_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/342498/ltcube_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.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/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits
.....................!
real 16.16
user 12.98
sys 3.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342498/ft1_filtered_4FGL_J0222.6+4302_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/342498/ltcube_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.fits outfile=/scratch/kocevski/342498/expmap_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.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/342498/ltcube_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.fits
.....................!
real 195.55
user 186.54
sys 8.54

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/342498/ft1_filtered_4FGL_J0222.6+4302_daily_bin1207.fits scfile=/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits outfile=/scratch/kocevski/342498/cmap_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.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 2.97
user 0.39
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342498/ft1_filtered_4FGL_J0222.6+4302_daily_bin1207.fits scfile=/scratch/kocevski/342498/ft2_4FGL_J0222.6+4302_daily_bin1207.fits outfile=/scratch/kocevski/342498/cmap_HighResolution_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.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 3.01
user 0.38
sys 2.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9136       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2614       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1532       1.0000         .10000E-03   10000.    
    13 'norm      '    .49554E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7635       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3228       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85153       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=   2485.576     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2885 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.14       -.12126E-05** at limit **
   2  Prefactor     .10000E-03    125.09        .13289E-03** at limit **
   3  norm          1.9136        1.8484       -.16020E-06    .85072E-04
   4  norm          .10000E-03    1.2309       -.48909E-08** at limit **
   5  Prefactor     .10000E-03    18.462        .80346E-06** at limit **
   6  Prefactor     .10000E-03    6.2843        .15897E-08** at limit **
   7  Prefactor     .10000E-03    9.2667        .29865E-06** at limit **
   8  Prefactor     .10000E-03    84.107       -.59724E-04** at limit **
   9  Prefactor     6.2626        11.327       -.40779E-05   -.42234E-04
  10  norm          .10000E-03    4.8500       -.69063E-07** at limit **
  11  Prefactor     .10000E-03    20.782       -.11190E-05** at limit **
  12  norm          4.1521        1.6192       -.11030E-06    .65874E-03
  13  norm          .50757E-01    .88720       -.28065E-06   -.12806E-03
  14  Prefactor     .10000E-03    8481.6       -.19509E-02** at limit **
  15  Prefactor     .10000E-03    5.4606        .35095E-07** at limit **
  16  norm          8.0202        19.374        .42176E-06    .56330E-04
  17  Prefactor     .10000E-03    94.330       -.28702E-04** at limit **
  18  norm          .10000E-03    390.00       -.15484E-03** at limit **
  19  Prefactor     .10000E-03    67.203        .30768E-04** at limit **
  20  norm          .10000E-03    13.604        .18947E-06** at limit **
  21  Prefactor     60.979        73.253       -.45541E-04    .81654E-04
  22  Prefactor     .10000E-03    95.140       -.25673E-04** at limit **
  23  norm          4.7630        3.0036        .37467E-05   -.45485E-03
  24  Normalizat    1.3229        .46129        .56599E-05    .68434E-04
  25  Prefactor     .85145        .20056        .37196E-05    .83279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91362
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26256
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15205
  norm       = 0.0507571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.02024
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.9786
  Prefactor  = 0.000100001
  norm       = 4.76298
  Normalizat = 1.3229
  Prefactor  = 0.851447
 **********
 **   18 **HESSE 
 **********

 FCN=   2485.576     FROM HESSE     STATUS=OK           417 CALLS     3302 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    125.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9136        1.8628        .64840E-04   -1.5431    
   4  norm          .10000E-03    1.2335        .54021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3372        .12197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2673        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    84.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2626        11.349        .16042E-03   -1.5207    
  10  norm          .10000E-03    4.8879        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1521        1.6220        .35951E-04   -1.5300    
  13  norm          .50757E-01    5.4672        .86246E-03   -1.5663    
  14  Prefactor     .10000E-03    8483.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4646        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0202        19.471        .14157E-03   -1.5141    
  17  Prefactor     .10000E-03    94.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    390.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    67.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.609        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.979        73.679        .51355E-04   -1.4145    
  22  Prefactor     .10000E-03    95.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7630        3.0258        .54384E-04   -1.5271    
  24  Normalizat    1.3229        .52147        .39768E-03   -.82885    
  25  Prefactor     .85145        .22746        .21418E-03   -.97859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46503e-10
Minuit parameter uncertainties:
  1  1.8282e-05
  2  0.000275159
  3  1.86282
  4  2.80074e-06
  5  7.27111e-05
  6  4.27862e-05
  7  9.77574e-07
  8  5.88903e-05
  9  11.3531
  10  1.31684e-05
  11  4.20024e-05
  12  1.62198
  13  1.05262
  14  0.0005741
  15  3.91008e-06
  16  19.4861
  17  8.56888e-05
  18  8.64955e-06
  19  8.98737e-06
  20  3.25263e-05
  21  73.7891
  22  0.000458984
  23  3.0259
  24  0.523565
  25  0.227712
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  5.076e-02  1.053e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.514e-01  2.277e-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.323e+00  5.236e-01  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.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342498/likelihoodResults_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.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) = 2485.53600063
delta logL = 0.0398884828023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2485.49542195
delta logL = 0.0804671586206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21753       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6155       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84820       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=   2485.495     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21874        15.170        .10057E-01    .80148E-03
   2  alpha         2.6142        3.3963        .41207        .10153E-04
   3  Normalizat    1.3028        .85290E-01    .90284E-01   -.14693E-04
   4  Prefactor     .84819        .38514E-01    .44341E-01   -.10865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.218745
  alpha      = 2.61418
  Normalizat = 1.30282
  Prefactor  = 0.848189
 **********
 **   18 **HESSE 
 **********

 FCN=   2485.495     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21874        .77555        .57532E-04   -1.5614    
   2  alpha         2.6142        1.6270        .18102E-01    .45687E-01
   3  Normalizat    1.3028        .49636        .39984E-03   -.83482    
   4  Prefactor     .84819        .22100        .21431E-03   -.97976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59559e-09
Minuit parameter uncertainties:
  1  0.775585
  2  1.77193
  3  0.498188
  4  0.221231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342498': 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) = 2485.49542014
delta logL = 0.0804689745391

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  2.187e-01  7.756e-01  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  2.614e+00  1.772e+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:  8.482e-01  2.212e-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.303e+00  4.982e-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/342498/cmap_HighResolution_552182401_552441601_4FGL_J0222.6+4302_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-04', job_status='DONE', photon_flux_upper_limit='2.98e-07', time_completed='2021-08-15 19:34:05.182033', job_id='342498', GAL2='0.85', fit_tolerance='1e-08', EG2='1.30', EG='1.32', time_epoch_completed='1629081245.18', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.05e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1207' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:34:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 342498: <4FGL_J0222.6+4302_daily_bin1207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1207 35.6696 43.0357 552182401 552441601 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 :                                   555.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            812 sec.

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

