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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin1147
RA = 333.226, Dec = -25.4335
tmin = 536630401, tmax = 536889601
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='224494', job_status='RUN', time_executed='2021-09-28 07:11:28.612083', time_epoch_executed='1632838288.61' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224494/ft1_4FGL_J2212.9-2526_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224494/ft1_4FGL_J2212.9-2526_daily_bin1147.fits outfile=/scratch/kocevski/224494/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin1147.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=536630401.0 tmax=536889601.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 3.53
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/224494/ltcube_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.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/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits
.....................!
real 14.39
user 14.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/224494/ltcube_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits outfile=/scratch/kocevski/224494/expmap_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.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/224494/ltcube_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits
.....................!
real 191.22
user 185.37
sys 5.52

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/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits scfile=/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits outfile=/scratch/kocevski/224494/cmap_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits scfile=/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits outfile=/scratch/kocevski/224494/cmap_HighResolution_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224494/Model_4FGL_J2212.9-2526_daily_bin1147.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/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits.....................!
real 44.42
user 43.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits', '/scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits', expMap='/scratch/kocevski/224494/expmap_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits', expCube='/scratch/kocevski/224494/ltcube_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/224494/Model_4FGL_J2212.9-2526_daily_bin1147.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/224494/ft1_filtered_4FGL_J2212.9-2526_daily_bin1147.fits
Spacecraft file(s): /scratch/kocevski/224494/ft2_4FGL_J2212.9-2526_daily_bin1147.fits
Exposure map: /scratch/kocevski/224494/expmap_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits
Exposure cube: /scratch/kocevski/224494/ltcube_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/224494/Model_4FGL_J2212.9-2526_daily_bin1147.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) = 4614.53159639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.492       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8051       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    161.63       1.0000         .10000E-03   10000.    
    15 'norm      '    23.412       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7722       1.0000         .10000E-03   10000.    
    20 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0019       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6449       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.1508       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .21298       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=   4614.529     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3112 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0310        5.7721        .85828E-07   -.19291E-04
   2  Prefactor     .10000E-03    3.5107       -.38606E-07** at limit **
   3  Prefactor     26.488        20.958       -.63478E-07    .79243E-04
   4  norm          .10000E-03    3.5942       -.22008E-07** at limit **
   5  Prefactor     .10000E-03    11.126       -.74911E-06** at limit **
   6  Prefactor     .10000E-03    8.5622        .21177E-06** at limit **
   7  Prefactor     .10000E-03    27.946        .57843E-07** at limit **
   8  norm          1.8462        5.7313        .24355E-07   -.15623E-04
   9  Prefactor     .10000E-03    5.8164        .86195E-06** at limit **
  10  norm          1.8051        .55750       -.78781E-10    .27229E-03
  11  Prefactor     .10000E-03    6.0304       -.69064E-06** at limit **
  12  Prefactor     1.2674        18.521        .81305E-05   -.10046E-04
  13  Prefactor     .10000E-03    106.62        .35361E-04** at limit **
  14  Prefactor     161.63        118.05       -.19467E-06   -.74543E-05
  15  norm          23.410        34.972        .37643E-07   -.60757E-04
  16  Prefactor     .10000E-03    13.330       -.32602E-07** at limit **
  17  norm          6.8404        3.8491       -.24021E-06   -.10578E-02
  18  Prefactor     .10000E-03    114.33        .10432E-05** at limit **
  19  Prefactor     4.7732        14.966        .22213E-06   -.74152E-05
  20  norm          .10000E-03    2.6952       -.53619E-07** at limit **
  21  Prefactor     7.9992        22.136       -.96853E-06   -.22654E-03
  22  Prefactor     .10000E-03    10.377        .19557E-06** at limit **
  23  norm          2.6442        1.0461       -.39155E-07   -.20282E-02
  24  Prefactor     .10000E-03    5.2811       -.20448E-06** at limit **
  25  Normalizat    2.1505        .29967        .90245E-06    .10920E-03
  26  Prefactor     .21321        .20955       -.10380E-05    .22947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03098
  Prefactor  = 0.0001
  Prefactor  = 26.4884
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8462
  Prefactor  = 0.0001
  norm       = 1.80514
  Prefactor  = 0.0001
  Prefactor  = 1.26743
  Prefactor  = 0.000100001
  Prefactor  = 161.632
  norm       = 23.4099
  Prefactor  = 0.0001
  norm       = 6.8404
  Prefactor  = 0.000100001
  Prefactor  = 4.77319
  norm       = 0.0001
  Prefactor  = 7.9992
  Prefactor  = 0.0001
  norm       = 2.64421
  Prefactor  = 0.0001
  Normalizat = 2.15051
  Prefactor  = 0.213208
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.529     FROM HESSE     STATUS=OK           454 CALLS     3566 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0310        5.7876        .95452E-03   -1.5306    
   2  Prefactor     .10000E-03    3.5225        .12430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.488        20.835        .77832E-04   -1.4678    
   4  norm          .10000E-03    3.5981        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8462        5.7237        .26424E-03   -1.5436    
   9  Prefactor     .10000E-03    5.8192        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8051        .55722        .26489E-04   -1.5439    
  11  Prefactor     .10000E-03    6.0522        .16279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2674        126.51        .19720E-02   -1.5483    
  13  Prefactor     .10000E-03    107.19        .42452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     161.63        118.26        .31720E-04   -1.3158    
  15  norm          23.410        34.936        .82784E-04   -1.4740    
  16  Prefactor     .10000E-03    13.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8404        3.8589        .94938E-04   -1.5185    
  18  Prefactor     .10000E-03    114.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7732        15.026        .18418E-03   -1.5271    
  20  norm          .10000E-03    2.7051        .10874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9992        22.559        .14174E-03   -1.5142    
  22  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6442        1.0702        .38283E-04   -1.5383    
  24  Prefactor     .10000E-03    5.2867        .15245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    2.1505        .29504        .22934E-03   -.60829    
  26  Prefactor     .21321        .19947        .45833E-03   -1.2777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98095e-10
Minuit parameter uncertainties:
  1  5.78841
  2  4.42222e-06
  3  20.8406
  4  6.48911e-06
  5  3.11967e-05
  6  9.41167e-06
  7  1.55062e-05
  8  5.72542
  9  1.18802e-05
  10  0.557221
  11  8.86265e-06
  12  25.38
  13  0.000704278
  14  118.437
  15  34.9667
  16  0.000105398
  17  3.85907
  18  0.000614532
  19  15.038
  20  7.81049e-06
  21  22.5828
  22  2.74832e-05
  23  1.07019
  24  1.11325e-05
  25  0.295297
  26  0.200104
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.267e+00  2.538e+01  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:  2.132e-01  2.001e-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:  2.151e+00  2.953e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224494/likelihoodResults_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.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) = 4614.46250756
delta logL = 0.0660140258378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4614.44229969
delta logL = 0.0862218956354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61586       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1815       1.0000          .0000       10.000    
     3 'Normalizat'    2.0993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23561       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.

 FCN=   4614.442     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      234 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61291        28.439        .11735E-01    .10643E-02
   2  Index         4.1826        3.6521        .15275        .73043E-04
   3  Normalizat    2.1003        .41698E-01    .52343E-01   -.44893E-05
   4  Prefactor     .23516        .29422E-01    .98782E-01    .55164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.61291
  Index      = 4.18259
  Normalizat = 2.10026
  Prefactor  = 0.235162
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61291        146.04        .11262E-03   -1.5551    
   2  Index         4.1826        5.4153        .87983E-02   -.16422    
   3  Normalizat    2.1003        .23402        .23136E-03   -.62061    
   4  Prefactor     .23516        .15991        .43761E-03   -1.2629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.4767e-07
Minuit parameter uncertainties:
  1  18.9675
  2  14.6995
  3  0.23415
  4  0.160204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224494': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4614.44229364
delta logL = 0.0862279395369

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  6.129e-01  1.897e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  4.183e+00  1.470e+01  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:  2.352e-01  1.602e-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:  2.100e+00  2.341e-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/224494/cmap_HighResolution_536630401_536889601_4FGL_J2212.9-2526_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-28 07:21:20.633558', job_id='224494', GAL2='0.24', fit_tolerance='1e-08', EG2='2.10', EG='2.15', time_epoch_completed='1632838880.63', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.21', dlogl='8.62e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1147' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 224494: <4FGL_J2212.9-2526_daily_bin1147> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin1147> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 07:10:58 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:10:59 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:10:59 2021
Terminated at Tue Sep 28 07:21:21 2021
Results reported at Tue Sep 28 07:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin1147 333.226 -25.4335 536630401 536889601 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

