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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin767
RA = 333.226, Dec = -25.4335
tmin = 438134401, tmax = 438393601
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='222846', job_status='RUN', time_executed='2021-09-28 07:05:52.224195', time_epoch_executed='1632837952.22' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222846

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222846/ft1_4FGL_J2212.9-2526_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222846/ft1_4FGL_J2212.9-2526_daily_bin767.fits outfile=/scratch/kocevski/222846/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin767.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=438134401.0 tmax=438393601.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.25
user 5.92
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.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/222846/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/222846/ltcube_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.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/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits
.....................!
real 12.26
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/222846/ltcube_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits outfile=/scratch/kocevski/222846/expmap_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.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/222846/ltcube_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits
.....................!
real 190.45
user 184.74
sys 5.31

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

Setting source of interest to:
4FGL J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits outfile=/scratch/kocevski/222846/cmap_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.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=333.226 yref=-25.4335 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits outfile=/scratch/kocevski/222846/cmap_HighResolution_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.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=333.226 yref=-25.4335 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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222846/Model_4FGL_J2212.9-2526_daily_bin767.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/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits.....................!
real 38.31
user 36.97
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits', '/scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits', expMap='/scratch/kocevski/222846/expmap_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits', expCube='/scratch/kocevski/222846/ltcube_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222846/Model_4FGL_J2212.9-2526_daily_bin767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/222846/ft1_filtered_4FGL_J2212.9-2526_daily_bin767.fits
Spacecraft file(s): /scratch/kocevski/222846/ft2_4FGL_J2212.9-2526_daily_bin767.fits
Exposure map: /scratch/kocevski/222846/expmap_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits
Exposure cube: /scratch/kocevski/222846/ltcube_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222846/Model_4FGL_J2212.9-2526_daily_bin767.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) = 3888.89297261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7104       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.137       1.0000         .10000E-03   10000.    
     4 'norm      '    .15601E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0517       1.0000         .10000E-03   10000.    
    10 'norm      '    .56777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.198       1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.79       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2276       1.0000         .10000E-03   10000.    
    20 'norm      '    .20917E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.354       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3888.863     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3108 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1246        7.4814        .51798E-07    .72004E-06
   2  Prefactor     4.7106        5.7253        .15531E-06    .30123E-04
   3  Prefactor     13.114        25.816       -.12017E-05   -.13089E-03
   4  norm          .10000E-03    6.5044        .34738E-06** at limit **
   5  Prefactor     46.354        32.314       -.10712E-05   -.15582E-03
   6  Prefactor     .10000E-03    14.854       -.35611E-06** at limit **
   7  Prefactor     .10002E-03    59.263        .83930E-05** at limit **
   8  norm          .10000E-03    2.2876        .39774E-07** at limit **
   9  Prefactor     3.0583        45.944        .19024E-05    .10653E-04
  10  norm          .56776        .34719        .34264E-08   -.94717E-04
  11  Prefactor     14.379        15.752        .11009E-06    .23817E-05
  12  Prefactor     .10000E-03    36.144       -.20377E-05** at limit **
  13  Prefactor     25.196        13.546       -.23436E-06   -.44420E-04
  14  Prefactor     105.75        84.965       -.51789E-05   -.23304E-03
  15  norm          .10000E-03    8.0112        .37583E-07** at limit **
  16  Prefactor     .10000E-03    7.2637        .62825E-07** at limit **
  17  norm          7.3628        3.4313       -.14165E-06   -.13599E-03
  18  Prefactor     .10001E-03    83.321       -.76233E-05** at limit **
  19  Prefactor     4.2282        12.086        .76091E-05   -.17837E-03
  20  norm          .10016E-03    3.5727        .11244E-05** at limit **
  21  Prefactor     13.373        13.033       -.13848E-06   -.20047E-03
  22  Prefactor     .10000E-03    4.6837        .17707E-07** at limit **
  23  norm          .10000E-03    .22595        .17533E-07** at limit **
  24  Prefactor     .10000E-03    2.5967        .83569E-08** at limit **
  25  Normalizat    1.2483        .24384       -.53537E-06   -.14126E-03
  26  Prefactor     .68549        .18756        .12140E-06   -.15557E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12457
  Prefactor  = 4.71057
  Prefactor  = 13.1137
  norm       = 0.000100002
  Prefactor  = 46.3536
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 3.05827
  norm       = 0.567759
  Prefactor  = 14.3794
  Prefactor  = 0.000100001
  Prefactor  = 25.1956
  Prefactor  = 105.747
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.36282
  Prefactor  = 0.000100014
  Prefactor  = 4.22825
  norm       = 0.000100158
  Prefactor  = 13.3726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24828
  Prefactor  = 0.685489
 **********
 **   18 **HESSE 
 **********

 FCN=   3888.863     FROM HESSE     STATUS=OK           454 CALLS     3562 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1246        7.4880        .16223E-03   -1.5213    
   2  Prefactor     4.7106        5.7252        .15930E-03   -1.5274    
   3  Prefactor     13.114        26.030        .11051E-03   -1.4984    
   4  norm          .10000E-03    25.047        .30846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.354        32.344        .58885E-04   -1.4345    
   6  Prefactor     .10000E-03    14.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    61.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3205        .92022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0583        45.615        .23224E-03   -1.5358    
  10  norm          .56776        .34775        .27901E-04   -1.5557    
  11  Prefactor     14.379        15.754        .10561E-03   -1.4949    
  12  Prefactor     .10000E-03    36.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.196        13.620        .79801E-04   -1.4704    
  14  Prefactor     105.75        87.418        .19549E-03   -1.3648    
  15  norm          .10000E-03    8.0123        .17240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2858        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3628        3.4244        .75985E-04   -1.5165    
  18  Prefactor     .10001E-03    85.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2282        12.692        .97990E-03   -1.5297    
  20  norm          .10016E-03    22.098        .21476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.373        12.629        .10961E-03   -1.4976    
  22  Prefactor     .10000E-03    4.6970        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .23219        .57531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.5976        .98138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2483        .29269        .24161E-03   -.85124    
  26  Prefactor     .68549        .22310        .24562E-03   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28598e-09
Minuit parameter uncertainties:
  1  7.48916
  2  5.72591
  3  26.0522
  4  0.000413744
  5  32.3565
  6  2.65967e-05
  7  0.00215094
  8  1.07315e-06
  9  23.6436
  10  0.347749
  11  15.759
  12  0.000411794
  13  13.6219
  14  87.5244
  15  3.01458e-07
  16  3.64314e-06
  17  3.42454
  18  0.00219236
  19  12.7002
  20  0.00373787
  21  12.6313
  22  1.93125e-05
  23  1.85081e-06
  24  1.82072e-06
  25  0.293082
  26  0.223389
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  4.118e-04  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.855e-01  2.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.248e+00  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222846/likelihoodResults_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.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) = 3888.86299321
delta logL = -0.00013043105082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3888.86286309
delta logL = -3.0341971069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1842       1.0000          .0000       10.000    
     3 'Normalizat'    1.2483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   3888.863     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      276 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7747.3        .18142E-02** at limit **
   2  Index         2.2405        5.6159        .50000       -.16543E-04
   3  Normalizat    1.2483        .13279        .24161E-03   -.18234E-04
   4  Prefactor     .68549        .10353        .24562E-03   -.57857E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.2405
  Normalizat = 1.24828
  Prefactor  = 0.685489
 **********
 **   18 **HESSE 
 **********

 FCN=   3888.863     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2405        6.1150        .50000       -.58464    
   3  Normalizat    1.2483        .27236        .96642E-05   -.85124    
   4  Prefactor     .68549        .21252        .98249E-05   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22059e-10
Minuit parameter uncertainties:
  1  0.00122513
  2  4.38098
  3  0.272667
  4  0.21277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222846': 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) = 3888.86286284
delta logL = -5.83563632972e-08

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.225e-03  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.241e+00  4.381e+00  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.855e-01  2.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.248e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 333.226 -25.433

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/222846/cmap_HighResolution_438134401_438393601_4FGL_J2212.9-2526_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 07:15:05.384427', job_id='222846', GAL2='0.69', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632838505.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-5.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='767' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:15:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 222846: <4FGL_J2212.9-2526_daily_bin767> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin767> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:05:35 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:05:37 2021
Terminated at Tue Sep 28 07:15:06 2021
Results reported at Tue Sep 28 07:15:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin767 333.226 -25.4335 438134401 438393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

