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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1277
RA = 183.001, Dec = -23.4494
tmin = 570326401, tmax = 570585601
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='410279', job_status='RUN', time_executed='2021-09-05 04:01:37.371284', time_epoch_executed='1630839697.37' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410279/ft1_4FGL_J1212.0-2326_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410279/ft1_4FGL_J1212.0-2326_daily_bin1277.fits outfile=/scratch/kocevski/410279/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1277.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=570326401.0 tmax=570585601.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.61
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/410279/ltcube_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.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/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits
.....................!
real 11.77
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/410279/ltcube_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits outfile=/scratch/kocevski/410279/expmap_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.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/410279/ltcube_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits
.....................!
real 190.81
user 184.92
sys 3.93

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/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits scfile=/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits outfile=/scratch/kocevski/410279/cmap_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits scfile=/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits outfile=/scratch/kocevski/410279/cmap_HighResolution_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410279/Model_4FGL_J1212.0-2326_daily_bin1277.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/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits.....................!
real 55.19
user 53.85
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits', '/scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits', expMap='/scratch/kocevski/410279/expmap_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits', expCube='/scratch/kocevski/410279/ltcube_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410279/Model_4FGL_J1212.0-2326_daily_bin1277.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/410279/ft1_filtered_4FGL_J1212.0-2326_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/410279/ft2_4FGL_J1212.0-2326_daily_bin1277.fits
Exposure map: /scratch/kocevski/410279/expmap_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits
Exposure cube: /scratch/kocevski/410279/ltcube_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410279/Model_4FGL_J1212.0-2326_daily_bin1277.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) = 6268.84221292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.067       1.0000         .10000E-03   10000.    
     3 'norm      '    .72822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25437E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4337       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0968       1.0000         .10000E-03   10000.    
     9 'norm      '    .19554E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12173E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    84.318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3728       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.062       1.0000         .10000E-03   10000.    
    19 'norm      '    .98219E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.0882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3225       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90632       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6268.807     FROM MIGRAD    STATUS=FAILED       968 CALLS     3237 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7511        .18142E-02** at limit **
   2  Prefactor     65.077        55.560        .24876E-03   -.58955E-05
   3  norm          .72824        .74298        .64338E-03   -.85682E-04
   4  Prefactor     .10000E-03    24.703        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.2061        .13814E-02** at limit **
   6  Prefactor     .10000E-03    26.352        .13426    ** at limit **
   7  norm          7.4300        100.86        .14710E-03   -.77286E-07
   8  Prefactor     1.1729        60.645        .49441E-02    .98254E-03
   9  norm          .10000E-03    12.763        .30320E-02** at limit **
  10  Prefactor     .10000E-03    3.3482        .14110E-02** at limit **
  11  Prefactor     .10000E-03    15.986        .18142E-02** at limit **
  12  Prefactor     84.284        58.909        .43747E-04    .15592E-06
  13  Prefactor     .10000E-03    23.373        .18142E-02** at limit **
  14  Prefactor     .10000E-03    16.081        .18142E-02** at limit **
  15  Prefactor     .10000E-03    13.715        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.8925        .16972E-02** at limit **
  17  Prefactor     6.3724        2.4200        .73560E-04   -.42811E-04
  18  Prefactor     30.066        15.784        .73074E-04   -.35783E-05
  19  norm          .10358        2.3688        .11985E-02    .33193E-03
  20  Prefactor     .10000E-03    34.508        .18142E-02** at limit **
  21  norm          9.0892        7.7705        .13295E-03   -.14879E-04
  22  Prefactor     3.3225        6.2200        .22208E-03    .27798E-04
  23  Normalizat    1.6094        .33139        .33401E-03   -.20286E-04
  24  Prefactor     .90630        .16510        .21055E-03   -.41523E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6268.807     FROM SIMPLEX   STATUS=UNCHANGED   1390 CALLS     4627 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7511        .31778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.077        55.560        .10189E-05   -1.4093    
   3  norm          .72824        .74298        .11233E-05   -1.5537    
   4  Prefactor     .10000E-03    24.703        .13626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2061        .26080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.352        .90954E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4300        100.86        .10954E-05   -1.5163    
   8  Prefactor     1.1729        60.645        .11209E-05   -1.5491    
   9  norm          .10000E-03    12.763        .34588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3482        .19672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.986        .19746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     84.284        58.909        .10019E-05   -1.3869    
  13  Prefactor     .10000E-03    23.373        .23260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.081        .34900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.715        .51606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8925        .16404E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3724        2.4200        .10989E-05   -1.5203    
  18  Prefactor     30.066        15.784        .10560E-05   -1.4611    
  19  norm          .10358        2.3688        .11306E-05   -1.5644    
  20  Prefactor     .10000E-03    34.508        .50627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.0892        7.7705        .10918E-05   -1.5105    
  22  Prefactor     3.3225        6.2200        .11090E-05   -1.5343    
  23  Normalizat    1.6094        .33139        .54027E-06   -.74749    
  24  Prefactor     .90630        .16510        .69330E-06   -.95921    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6268.807     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     5019 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7517        .36285E-03** at limit **
   2  Prefactor     65.077        55.557        .99504E-05     .0000    
   3  norm          .72824        .74300        .25735E-04   -.22088E-05
   4  Prefactor     .10000E-03    24.704        .36285E-03** at limit **
   5  Prefactor     .10000E-03    3.2064        .27628E-03** at limit **
   6  Prefactor     .10000E-03    26.021        .13577    ** at limit **
   7  norm          7.4300        100.90        .58840E-05     .0000    
   8  Prefactor     1.1729        59.946        .98882E-03    .39242E-04
   9  norm          .10000E-03    12.785        .60639E-03** at limit **
  10  Prefactor     .10000E-03    3.3484        .28221E-03** at limit **
  11  Prefactor     .10000E-03    15.986        .36285E-03** at limit **
  12  Prefactor     84.284        58.906        .87494E-05    .25987E-06
  13  Prefactor     .10000E-03    23.391        .36285E-03** at limit **
  14  Prefactor     .10000E-03    16.082        .36285E-03** at limit **
  15  Prefactor     .10000E-03    13.716        .36285E-03** at limit **
  16  Prefactor     .10000E-03    4.8947        .33944E-03** at limit **
  17  Prefactor     6.3724        2.4197        .29424E-05    .15455E-05
  18  Prefactor     30.066        15.783        .29230E-05    .77789E-06
  19  norm          .10358        2.3626        .47939E-04    .69722E-05
  20  Prefactor     .10000E-03    34.509        .36285E-03** at limit **
  21  norm          9.0892        7.7678        .53179E-05    .12827E-05
  22  Prefactor     3.3225        6.2177        .88831E-05    .76789E-06
  23  Normalizat    1.6094        .33144        .13361E-04    .22124E-05
  24  Prefactor     .90630        .16510        .84219E-05    .40497E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.077
  norm       = 0.72824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42996
  Prefactor  = 1.17286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.2841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.37244
  Prefactor  = 30.0663
  norm       = 0.103576
  Prefactor  = 0.0001
  norm       = 9.08917
  Prefactor  = 3.32253
  Normalizat = 1.6094
  Prefactor  = 0.9063
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.807     FROM HESSE     STATUS=OK           385 CALLS     5404 TOTAL
                     EDM=   .56E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7517        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.077        55.557        .99504E-05   -1.4093    
   3  norm          .72824        .74300        .51471E-05   -1.5537    
   4  Prefactor     .10000E-03    24.704        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2064        .55257E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.059        .13557       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4300        100.89        .58840E-05   -1.5163    
   8  Prefactor     1.1729        59.794        .19776E-03   -1.5491    
   9  norm          .10000E-03    12.786        .12128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3484        .56441E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.986        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     84.284        58.977        .17499E-05   -1.3869    
  13  Prefactor     .10000E-03    23.392        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.082        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.716        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8948        .67889E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3724        2.4198        .58848E-06   -1.5203    
  18  Prefactor     30.066        15.775        .58459E-06   -1.4611    
  19  norm          .10358        2.3621        .95877E-05   -1.5644    
  20  Prefactor     .10000E-03    34.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.0892        7.7676        .10636E-05   -1.5105    
  22  Prefactor     3.3225        6.2201        .17766E-05   -1.5343    
  23  Normalizat    1.6094        .33141        .26721E-05   -.74749    
  24  Prefactor     .90630        .16517        .16844E-05   -.95921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64575e-14
Minuit parameter uncertainties:
  1  4.47945e-08
  2  55.6008
  3  0.743006
  4  1.03697e-07
  5  1.77208e-08
  6  3.32842e-05
  7  54.8697
  8  16.7657
  9  5.88079e-07
  10  7.17245e-09
  11  4.09831e-08
  12  59.0178
  13  3.03494e-07
  14  4.88329e-08
  15  1.84379e-08
  16  9.54674e-08
  17  2.41981
  18  15.7773
  19  0.988812
  20  3.39037e-09
  21  7.76846
  22  6.22129
  23  0.331859
  24  0.165265
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.035e-07  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:  9.063e-01  1.653e-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:  1.609e+00  3.319e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410279/likelihoodResults_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.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) = 6268.8067112
delta logL = -0.000203850676371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6268.80650728
delta logL = 6.3481820689e-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.9959       1.0000          .0000       10.000    
     3 'Normalizat'    1.6094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90630       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=   6268.807     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3029        .90712E-02** at limit **
   2  Index         2.0038        8.9610        .50000       -.24081E-05
   3  Normalizat    1.6094        .26431E-02    .75485E-01    .11199E-04
   4  Prefactor     .90630        .13057E-02    .45085E-01   -.11104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.00385
  Normalizat = 1.6094
  Prefactor  = 0.906299
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.807     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0038        8.7808        .50000       -.64254    
   3  Normalizat    1.6094        .24021E-01    .33401E-03   -.74749    
   4  Prefactor     .90630        .11875E-01    .21055E-03   -.95921    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.83712e-09
Minuit parameter uncertainties:
  1  0.00110133
  2  140.364
  3  0.0240216
  4  0.0118748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410279': 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) = 6268.80650726
delta logL = 9.03537511476e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.101e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.004e+00  1.404e+02  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:  9.063e-01  1.187e-02  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:  1.609e+00  2.402e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/410279/cmap_HighResolution_570326401_570585601_4FGL_J1212.0-2326_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-05 04:15:52.495429', job_id='410279', GAL2='0.91', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1630840552.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1277' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 410279: <4FGL_J1212.0-2326_daily_bin1277> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1277> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:47 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:00:48 2021
Terminated at Sun Sep  5 04:15:54 2021
Results reported at Sun Sep  5 04:15:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1277 183.001 -23.4494 570326401 570585601 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 :                                   844.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

