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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1480
RA = 35.6696, Dec = 43.0357
tmin = 622944001, tmax = 623203201
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='344994', job_status='RUN', time_executed='2021-08-15 19:34:47.401187', time_epoch_executed='1629081287.4' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344994/ft1_4FGL_J0222.6+4302_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344994/ft1_4FGL_J0222.6+4302_daily_bin1480.fits outfile=/scratch/kocevski/344994/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1480.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=622944001.0 tmax=623203201.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 5.07
user 2.81
sys 2.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344994/ft1_filtered_4FGL_J0222.6+4302_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/344994/ltcube_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.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/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits
.....................!
real 18.40
user 14.58
sys 2.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344994/ft1_filtered_4FGL_J0222.6+4302_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/344994/ltcube_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.fits outfile=/scratch/kocevski/344994/expmap_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.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/344994/ltcube_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.fits
.....................!
real 194.54
user 185.94
sys 7.58

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/344994/ft1_filtered_4FGL_J0222.6+4302_daily_bin1480.fits scfile=/scratch/kocevski/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits outfile=/scratch/kocevski/344994/cmap_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.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.47
user 0.36
sys 2.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344994/ft1_filtered_4FGL_J0222.6+4302_daily_bin1480.fits scfile=/scratch/kocevski/344994/ft2_4FGL_J0222.6+4302_daily_bin1480.fits outfile=/scratch/kocevski/344994/cmap_HighResolution_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.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 2.50
user 0.40
sys 2.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1688.1       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40295E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    15.913       1.0000         .10000E-03   10000.    
     4 'norm      '    .14619E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11534E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12488E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11836E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.9542       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.655       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1084       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10873E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12380E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4494       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9205       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15711E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2716       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0428       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95980       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=   3504.767     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     3289 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1686.7        2987.8       -.38608E-03    .10320E-04
   2  Prefactor     .10000E-03    6164.6       -.11098E-02** at limit **
   3  norm          15.945        30.821        .16067E-04    .10362E-04
   4  norm          .10001E-03    14.024       -.55499E-05** at limit **
   5  Prefactor     .10000E-03    107.92       -.19972E-04** at limit **
   6  Prefactor     .10000E-03    9.9814        .40941E-05** at limit **
   7  Prefactor     .10000E-03    89.510        .25108E-04** at limit **
   8  Prefactor     .10000E-03    106.22       -.14055E-04** at limit **
   9  Prefactor     .10000E-03    43.818       -.31240E-04** at limit **
  10  norm          8.9398        20.294        .64893E-05   -.24646E-03
  11  Prefactor     29.707        51.878        .56532E-04    .57212E-04
  12  norm          2.1103        4.4474       -.71622E-05   -.79518E-03
  13  norm          .10000E-03    .29820        .44084E-07** at limit **
  14  Prefactor     .10000E-03    63.039        .13966E-04** at limit **
  15  Prefactor     .10000E-03    13.202        .73465E-05** at limit **
  16  norm          .10000E-03    10.199       -.48044E-05** at limit **
  17  Prefactor     .10000E-03    71.317        .28989E-04** at limit **
  18  norm          .10000E-03    19.031       -.84532E-06** at limit **
  19  Prefactor     1.4431        4.6584       -.75110E-06   -.54896E-03
  20  norm          5.9148        6.3223       -.10695E-05   -.18773E-04
  21  Prefactor     .10006E-03    11.586       -.22433E-05** at limit **
  22  Prefactor     .10000E-03    31.330        .12010E-04** at limit **
  23  norm          1.2715        .76650       -.58742E-07    .15043E-02
  24  Normalizat    1.0419        .50429        .48081E-05    .14697E-03
  25  Prefactor     .96013        .12422        .10890E-05    .32851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1686.69
  Prefactor  = 0.000100002
  norm       = 15.9453
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.93984
  Prefactor  = 29.7069
  norm       = 2.11029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44308
  norm       = 5.91482
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  norm       = 1.27153
  Normalizat = 1.04187
  Prefactor  = 0.960126
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.767     FROM HESSE     STATUS=OK           417 CALLS     3706 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1686.7        2979.6        .53392E-04   -.72437    
   2  Prefactor     .10000E-03    6162.2        .19485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.945        30.807        .10040E-03   -1.4909    
   4  norm          .10001E-03    14.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    89.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    106.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.9398        20.639        .13394E-03   -1.5110    
  11  Prefactor     29.707        51.763        .73573E-04   -1.4617    
  12  norm          2.1103        4.4884        .10066E-03   -1.5417    
  13  norm          .10000E-03    .30250        .31534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4431        4.6076        .20065E-03   -1.5468    
  20  norm          5.9148        6.3214        .14498E-03   -1.5222    
  21  Prefactor     .10006E-03    54.886        .35789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2715        .73090        .36649E-04   -1.5482    
  24  Normalizat    1.0419        .52122        .55263E-03   -.91641    
  25  Prefactor     .96013        .13429        .14540E-03   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25645e-09
Minuit parameter uncertainties:
  1  3445.62
  2  0.00430106
  3  30.8375
  4  0.000829458
  5  0.000375413
  6  4.07356e-05
  7  0.000160717
  8  8.98081e-05
  9  0.000394057
  10  20.6553
  11  51.8413
  12  4.48911
  13  2.25875e-06
  14  1.28313e-05
  15  1.88906e-06
  16  2.05907e-06
  17  3.56271e-06
  18  4.85954e-05
  19  4.60873
  20  6.32215
  21  0.00361912
  22  2.86633e-06
  23  0.730901
  24  0.523811
  25  0.134335
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  2.259e-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:  9.601e-01  1.343e-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.042e+00  5.238e-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: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344994/likelihoodResults_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.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) = 3504.76676987
delta logL = -9.11641741368e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3504.76667853
delta logL = 1.71349711309e-07

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.9018       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96013       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.

 FCN=   3504.767     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79986        .31551E-03** at limit **
   2  alpha         2.0261        3.3069        .50000       -.54581E-07
   3  Normalizat    1.0419        .49056        .55262E-03   -.22478E-03
   4  Prefactor     .96013        .12612        .14540E-03   -.88185E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.02613
  Normalizat = 1.04186
  Prefactor  = 0.960126
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.767     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .31315        .63101E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0261        2.8939        .50000       -.19070    
   3  Normalizat    1.0419        .49069        .22105E-04   -.91641    
   4  Prefactor     .96013        .12616        .29081E-04   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27456e-10
Minuit parameter uncertainties:
  1  3.24086e-07
  2  60.9157
  3  0.492842
  4  0.126197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344994': 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) = 3504.76667711
delta logL = 1.58904231284e-06

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  3.241e-07  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  2.026e+00  6.092e+01  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.601e-01  1.262e-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.042e+00  4.928e-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/344994/cmap_HighResolution_622944001_623203201_4FGL_J0222.6+4302_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-04', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-08-15 19:45:15.983939', job_id='344994', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629081915.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1480' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 344994: <4FGL_J0222.6+4302_daily_bin1480> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1480> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 19:30:35 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:30:52 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:30:52 2021
Terminated at Sun Aug 15 19:45:17 2021
Results reported at Sun Aug 15 19:45:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1480 35.6696 43.0357 622944001 623203201 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            882 sec.

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

