/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 129 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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)

WARNDone.


Performing analysis on: 4FGL_J0212.9+2244_daily_bin1770
RA = 33.2427, Dec = 22.7466
tmin = 698112001, tmax = 698371201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = Done.


Performing analysis on: 4FGL_J0212.9+2244_daily_bin1770
RA = 33.2427, Dec = 22.7466
tmin = 698112001, tmax = 698371201
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='475082', job_status='RUN', time_executed='2023-02-18 00:07:53.566082', time_epoch_executed='1676707673.57' WHERE source_name='4FGL J0212.9+2244' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475082/ft1_4FGL_J0212.9+2244_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475082/ft1_4FGL_J0212.9+2244_daily_bin1770.fits outfile=/scratch/kocevski/475082/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1770.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.48
user 4.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.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/475082/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 880

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/475082/ltcube_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.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/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits
.....................!
real 14.19
user 13.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/475082/ltcube_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits outfile=/scratch/kocevski/475082/expmap_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.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/475082/ltcube_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits
.....................!
real 189.46
user 185.02
sys 4.13

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0212.9+2244 @ 33.2427 22.7466

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits outfile=/scratch/kocevski/475082/cmap_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.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=33.2427 yref=22.7466 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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits outfile=/scratch/kocevski/475082/cmap_HighResolution_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.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=33.2427 yref=22.7466 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475082/Model_4FGL_J0212.9+2244_daily_bin1770.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
Working on...
/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits....................!
real 117.57
user 116.29
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits', '/scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits', expMap='/scratch/kocevski/475082/expmap_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits', expCube='/scratch/kocevski/475082/ltcube_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475082/Model_4FGL_J0212.9+2244_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0212.9+2244'

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.178e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475082/ft1_filtered_4FGL_J0212.9+2244_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/475082/ft2_4FGL_J0212.9+2244_daily_bin1770.fits
Exposure map: /scratch/kocevski/475082/expmap_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits
Exposure cube: /scratch/kocevski/475082/ltcube_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475082/Model_4FGL_J0212.9+2244_daily_bin1770.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) = 9678.70859875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.566       1.0000          .0000       .10000E+07
     2 'Prefactor '    17.967       1.0000          .0000       .10000E+07
     3 'norm      '    4.1695       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4994       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42498E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .73275E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    10.183       1.0000          .0000       .10000E+07
     8 'Prefactor '    .59175       1.0000          .0000       .10000E+07
     9 'norm      '    .66449E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.5882       1.0000          .0000       .10000E+07
    11 'norm      '    .21826       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23976E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.596       1.0000          .0000       .10000E+07
    14 'Prefactor '    .97172E-03   1.0000          .0000       .10000E+07
    15 'norm      '    2.9099       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.8460       1.0000          .0000       .10000E+07
    17 'norm      '    1.0908       1.0000          .0000       .10000E+07
    18 'Prefactor '    .65834E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .86739E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.0497       1.0000          .0000       .10000E+07
    21 'Prefactor '    .64239E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .54397E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    .92679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9678.670     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1988 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.413        4.2087        .12887E-07    .34177E-01
   2  Prefactor     18.899        46.288       -.19301E-06   -.44284E-02
   3  norm          4.1702        .96218        .18357E-08    .71086E-02
   4  Prefactor     1.4977        8.2961       -.28407E-09    .19833E-02
   5  Prefactor     .44298E-07    5.1548       -.13006E-07** at limit **
   6  norm           .0000        1.4528       -.46696E-08** at limit **
   7  Prefactor     10.187        3.6992       -.36448E-08    .29514E-02
   8  Prefactor     .55106        7.1305        .37890E-06    .17342E-01
   9  norm          .11102E-09    3.0459       -.78771E-08** at limit **
  10  Prefactor     3.5884        3.7575       -.13028E-07   -.10473E-02
  11  norm          .31768E-05    28.792       -.15041E-06** at limit **
  12  Prefactor      .0000        23.356        .77824E-08** at limit **
  13  Prefactor     41.057        37.401       -.71502E-07    .18091E-01
  14  Prefactor     .36082E-07    3.6029       -.16276E-07** at limit **
  15  norm          2.9144        2.1008        .16382E-08    .71253E-03
  16  Prefactor     2.8524        5.6555       -.60532E-07   -.27008E-01
  17  norm          1.0914        .52719        .61084E-08    .86275E-02
  18  Prefactor     .55511E-10    11.361        .10777E-07** at limit **
  19  Prefactor     .83988E-07    3.2126        .42158E-07** at limit **
  20  Prefactor     6.0509        7.5001       -.12683E-06    .58830E-01
  21  Prefactor     .31641E-08    8.3039       -.30330E-07** at limit **
  22  norm           .0000        2.2949       -.13299E-07** at limit **
  23  Normalizat    .92674        .22726        .63421E-06    .13972E-03
  24  Prefactor     1.0415        .10756        .63907E-08    .20040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4126
  Prefactor  = 18.899
  norm       = 4.17021
  Prefactor  = 1.49774
  Prefactor  = 4.42979e-08
  norm       = 0
  Prefactor  = 10.1865
  Prefactor  = 0.551063
  norm       = 1.11022e-10
  Prefactor  = 3.58844
  norm       = 3.17685e-06
  Prefactor  = 0
  Prefactor  = 41.0566
  Prefactor  = 3.60822e-08
  norm       = 2.91439
  Prefactor  = 2.85244
  norm       = 1.09142
  Prefactor  = 5.55112e-11
  Prefactor  = 8.39884e-08
  Prefactor  = 6.05085
  Prefactor  = 3.16414e-09
  norm       = 0
  Normalizat = 0.926736
  Prefactor  = 1.04154
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.670     FROM HESSE     STATUS=OK           447 CALLS     2435 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.413        16.585        .20604E-03   -1.5611    
   2  Prefactor     18.899        46.882        .23601E-03   -1.5621    
   3  norm          4.1702        .96303        .49335E-03   -1.5667    
   4  Prefactor     1.4977        8.3201        .87426E-03   -1.5683    
   5  Prefactor     .44298E-07    5.4146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.4487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.187        3.6963        .31376E-03   -1.5644    
   8  Prefactor     .55106        7.4039        .69970E-03   -1.5693    
   9  norm          .11102E-09    3.0414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5884        3.7602        .53322E-03   -1.5670    
  11  norm          .31768E-05    46.824        .11460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        23.163        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.057        38.376        .15696E-03   -1.5580    
  14  Prefactor     .36082E-07    4.6016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9144        2.1115        .59535E-03   -1.5674    
  16  Prefactor     2.8524        9.9515        .60245E-03   -1.5674    
  17  norm          1.0914        .57623        .10417E-02   -1.5687    
  18  Prefactor     .55511E-10    11.388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .83988E-07    4.6885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0509        8.3884        .40797E-03   -1.5659    
  21  Prefactor     .31641E-08    8.3134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.2943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92674        .20817        .88465E-01   -.95527    
  24  Prefactor     1.0415        .95725E-01    .40421E-01   -.91357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17388e-07
Minuit parameter uncertainties:
  1  16.5854
  2  46.8825
  3  0.963026
  4  7.06013
  5  0.000979397
  6  1.26817e-07
  7  3.69633
  8  4.03983
  9  3.45567e-05
  10  3.76021
  11  0.0243932
  12  2.14937e-05
  13  38.3761
  14  0.000815157
  15  2.11155
  16  9.95156
  17  0.57623
  18  5.03513e-05
  19  0.00125487
  20  8.38843
  21  0.000324216
  22  7.00888e-07
  23  0.208352
  24  0.0957405
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  3.588e+00  3.760e+00  0.000e+00  1.000e+06 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.042e+00  9.574e-02  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  9.267e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 33.243 22.747
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.23e-05

TS (Fixed Index): 2.64
Ra Dec: 33.243 22.747
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475082/likelihoodResults_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.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) = 9678.24738371
delta logL = 0.423038392672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9678.24665569
delta logL = 0.423766417447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2101       1.0000          .0000       .10000E+07
     2 'Index     '    1.4058       1.0000          .0000       10.000    
     3 'Normalizat'    .93588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+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=   9678.247     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2102        4.6637        .19636E-04   -.27050E-02
   2  Index         1.4057        .66630        .13747E-01   -.56432E-04
   3  Normalizat    .93589        .21636        .38999E-03    .17083E-04
   4  Prefactor     1.0408        .10575        .18025E-03    .34033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21019
  Index      = 1.40565
  Normalizat = 0.935887
  Prefactor  = 1.04078
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.247     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2102        4.7280        .78542E-06   -1.5667    
   2  Index         1.4057        .67559        .54990E-03   -.80217    
   3  Normalizat    .93589        .21647        .15599E-04   -.95210    
   4  Prefactor     1.0408        .10581        .36051E-04   -.91382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88027e-10
Minuit parameter uncertainties:
  1  4.72803
  2  0.679915
  3  0.216669
  4  0.105833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475082': 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) = 9678.24665564
delta logL = 0.423766465317

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  4.210e+00  4.728e+00  0.000e+00  1.000e+06 ( 1.000e-13)
213        Index:  1.406e+00  6.799e-01  0.000e+00  1.000e+01 (-1.000e+00)
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.041e+00  1.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  9.359e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 33.243 22.747
Photon Index (Free Index): 1.41 +/- 0.68
Photon Flux (Free Index): 7.46e-09 +/- 1.15e-08
Energy Flux (Free Index): 3.24e-05 +/- 5.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/475082/cmap_HighResolution_698112001_698371201_4FGL_J0212.9+2244_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='3.24e-05', photon_flux_error='2.02e-08', dlogl='4.24e-01', energy_flux='1.17e-05', photon_flux2='7.46e-09', job_status='DONE', time_completed='2023-02-18 00:20:41.536827', photon_index_error2='0.68', photon_index2='1.41', ts='2.64', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.88e-08', energy_flux_error2='5.02e-05', EG='0.93', time_epoch_completed='1676708441.54', return_code='0', job_id='475082', GAL2='1.04', EG2='0.94', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='1.15e-08', ts2='3.49', photon_index='2.05' WHERE bin_id='1770' AND source_name='4FGL J0212.9+2244' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:20:41 PST 2023

_J0212.9+2244_daily_bin1770> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Feb 18 00:05:21 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:05:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:05:36 2023
Terminated at Sat Feb 18 00:19:41 2023
Results reported at Sat Feb 18 00:19:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_daily_bin1770 33.2427 22.7466 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            860 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 475082: <4FGL_J0212.9+2244_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0212.9+2244_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 00:05:15 2023
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:05:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:05:27 2023
Terminated at Sat Feb 18 00:20:42 2023
Results reported at Sat Feb 18 00:20:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_daily_bin1770 33.2427 22.7466 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            927 sec.

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

