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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1007
RA = 183.001, Dec = -23.4494
tmin = 500342401, tmax = 500601601
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='408704', job_status='RUN', time_executed='2021-09-05 03:57:37.517585', time_epoch_executed='1630839457.52' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408704/ft1_4FGL_J1212.0-2326_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408704/ft1_4FGL_J1212.0-2326_daily_bin1007.fits outfile=/scratch/kocevski/408704/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1007.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=500342401.0 tmax=500601601.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.65
user 4.40
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.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/408704/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.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.66
user 0.33
sys 0.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/408704/ltcube_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.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/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits
.....................!
real 12.04
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/408704/ltcube_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits outfile=/scratch/kocevski/408704/expmap_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.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/408704/ltcube_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits
.....................!
real 192.63
user 187.96
sys 4.26

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits outfile=/scratch/kocevski/408704/cmap_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.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=183.001 yref=-23.4494 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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits outfile=/scratch/kocevski/408704/cmap_HighResolution_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.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=183.001 yref=-23.4494 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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408704/Model_4FGL_J1212.0-2326_daily_bin1007.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/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits.....................!
real 73.57
user 69.50
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits', '/scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits', expMap='/scratch/kocevski/408704/expmap_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits', expCube='/scratch/kocevski/408704/ltcube_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408704/Model_4FGL_J1212.0-2326_daily_bin1007.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408704/ft1_filtered_4FGL_J1212.0-2326_daily_bin1007.fits
Spacecraft file(s): /scratch/kocevski/408704/ft2_4FGL_J1212.0-2326_daily_bin1007.fits
Exposure map: /scratch/kocevski/408704/expmap_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits
Exposure cube: /scratch/kocevski/408704/ltcube_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408704/Model_4FGL_J1212.0-2326_daily_bin1007.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) = 8830.48646703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19689E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7652       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.214       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3955       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5936       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67463       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8830.443     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2360 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.0873        .10121    ** at limit **
   2  Prefactor     2.6388        118.83        .61190E-02    .78409E-04
   3  norm          2.5626        1.0366        .63755E-03    .24536E-04
   4  Prefactor     .10014E-03    14.885        .90712E-02** at limit **
   5  Prefactor     5.8049        5.2117        .41672E-02   -.79218E-03
   6  Prefactor     .10000E-03    8.8461        .90712E-02** at limit **
   7  norm          10.013        17.846        .31655E-02   -.16294E-03
   8  Prefactor     11.495        13.178        .29537E-02    .74592E-03
   9  norm          4.4008        4.8879        .47998E-02    .46349E-03
  10  Prefactor     .26408        2.0525        .69883E-01    .71437E-03
  11  Prefactor     .10005E-03    15.901        .90712E-02** at limit **
  12  Prefactor     12.125        20.360        .28761E-02    .75717E-03
  13  Prefactor     .10000E-03    8.6970        .90712E-02** at limit **
  14  Prefactor     .10002E-03    13.614        .90712E-02** at limit **
  15  Prefactor     .10000E-03    4.1166        .90712E-02** at limit **
  16  Prefactor     .10000E-03    3.5042        .90712E-02** at limit **
  17  Prefactor     8.6604        2.5386        .34055E-02   -.49524E-04
  18  Prefactor     19.214        12.529        .22843E-02   -.10339E-03
  19  norm          1.3954        .82577        .91897E-02    .42694E-03
  20  Prefactor     .10000E-03    47.221        .90712E-02** at limit **
  21  norm          14.843        6.3684        .25992E-02   -.69888E-04
  22  Prefactor     2.5937        3.7127        .63339E-02    .49384E-03
  23  Normalizat    .67463        .22541        .95431E-01    .10681E-03
  24  Prefactor     1.2073        .11547        .34461E-01    .12833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 2.63882
  norm       = 2.56258
  Prefactor  = 0.000100138
  Prefactor  = 5.80486
  Prefactor  = 0.000100004
  norm       = 10.0129
  Prefactor  = 11.4954
  norm       = 4.4008
  Prefactor  = 0.264082
  Prefactor  = 0.000100049
  Prefactor  = 12.1255
  Prefactor  = 0.000100003
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66044
  Prefactor  = 19.2136
  norm       = 1.39541
  Prefactor  = 0.000100002
  norm       = 14.8427
  Prefactor  = 2.59369
  Normalizat = 0.67463
  Prefactor  = 1.20734
 **********
 **   18 **HESSE 
 **********

 FCN=   8830.443     FROM HESSE     STATUS=OK           411 CALLS     2771 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.5607        .79809E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6388        118.99        .24476E-03   -1.5383    
   3  norm          2.5626        1.0358        .25502E-04   -1.5388    
   4  Prefactor     .10014E-03    14.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8049        5.1946        .16669E-03   -1.5226    
   6  Prefactor     .10000E-03    8.8491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.013        17.856        .12662E-03   -1.5075    
   8  Prefactor     11.495        13.106        .11815E-03   -1.5030    
   9  norm          4.4008        4.8548        .17504E-03   -1.5288    
  10  Prefactor     .26408        11.131        .24695E-02   -1.5605    
  11  Prefactor     .10005E-03    15.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.125        20.244        .11505E-03   -1.5011    
  13  Prefactor     .10000E-03    8.7150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    13.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5493        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6604        2.5375        .78859E-04   -1.5119    
  18  Prefactor     19.214        12.524        .91372E-04   -1.4831    
  19  norm          1.3954        .81852        .63060E-04   -1.5472    
  20  Prefactor     .10000E-03    47.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.843        6.3426        .10397E-03   -1.4937    
  22  Prefactor     2.5937        3.6861        .19962E-03   -1.5386    
  23  Normalizat    .67463        .24786        .42286E-03   -1.0490    
  24  Prefactor     1.2073        .12928        .17234E-03   -.86106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83957e-08
Minuit parameter uncertainties:
  1  0.000478066
  2  35.5138
  3  1.03585
  4  0.0028696
  5  5.19505
  6  0.000362853
  7  17.8659
  8  13.1096
  9  4.85521
  10  3.42897
  11  0.00176309
  12  20.255
  13  0.000323131
  14  0.00115377
  15  1.47409e-06
  16  1.22816e-06
  17  2.5375
  18  12.5259
  19  0.818528
  20  0.000583685
  21  6.34291
  22  3.6864
  23  0.248268
  24  0.129314
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.231e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.207e+00  1.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.746e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408704/likelihoodResults_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.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) = 8830.44316119
delta logL = -0.000546517307157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8830.44261472
delta logL = -5.08698576596e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8818       1.0000          .0000       10.000    
     3 'Normalizat'    .67470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8830.443     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0697        .90712E-02** at limit **
   2  Index         1.8666        8.5720        .50000        .12791E-04
   3  Normalizat    .67463        .30178E-02    .95431E-01    .59911E-04
   4  Prefactor     1.2073        .16096E-02    .34460E-01    .25337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86662
  Normalizat = 0.67463
  Prefactor  = 1.20734
 **********
 **   18 **HESSE 
 **********

 FCN=   8830.443     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8666        5.9092        .50000       -.67728    
   3  Normalizat    .67463        .85920E-02    .42286E-03   -1.0490    
   4  Prefactor     1.2073        .45970E-02    .17234E-03   -.86106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76913e-08
Minuit parameter uncertainties:
  1  7.08735e-05
  2  51.9036
  3  0.00859205
  4  0.00459704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408704': 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) = 8830.44261456
delta logL = 1.06225343188e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.087e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.867e+00  5.190e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.207e+00  4.597e-03  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.746e-01  8.592e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/408704/cmap_HighResolution_500342401_500601601_4FGL_J1212.0-2326_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-05 04:11:22.223534', job_id='408704', GAL2='1.21', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630840282.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1007' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 408704: <4FGL_J1212.0-2326_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1007> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:47 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:49 2021
Terminated at Sun Sep  5 04:11:23 2021
Results reported at Sun Sep  5 04:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1007 183.001 -23.4494 500342401 500601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   814.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

